Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/gentoolkit/
Date: Sun, 26 Jan 2020 15:30:00
Message-Id: 1580052280.94b8432f088f2232cf4dd3b472776cade49a2c88.mgorny@gentoo
1 commit: 94b8432f088f2232cf4dd3b472776cade49a2c88
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 26 15:24:40 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 26 15:24:40 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94b8432f
7
8 app-portage/gentoolkit: Bump to 0.4.7
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 app-portage/gentoolkit/Manifest | 1 +
13 app-portage/gentoolkit/gentoolkit-0.4.7.ebuild | 75 ++++++++++++++++++++++++++
14 2 files changed, 76 insertions(+)
15
16 diff --git a/app-portage/gentoolkit/Manifest b/app-portage/gentoolkit/Manifest
17 index 472aa5efdcc..85682a50421 100644
18 --- a/app-portage/gentoolkit/Manifest
19 +++ b/app-portage/gentoolkit/Manifest
20 @@ -1 +1,2 @@
21 DIST gentoolkit-0.4.6.tar.gz 3205641 BLAKE2B 7da91a313c8a9263eb7b4abd6207ece9dd602a5069a87f1e78ada13fc9f396e1f2afddaf0637c473445034cf57b5ca7631e209361a88fa3892d302b20f4cc986 SHA512 3aa3c9af7e994313400607943b9090fd813227ddd6d550b50fbcf7eeb4053da8bcdb41c9ef2579d957d2f279fdcc4e2f2ceca1091c5fd457df4204dd11792d6e
22 +DIST gentoolkit-0.4.7.tar.gz 3205669 BLAKE2B e5f64b85546bc10ad16e7fa42d288965539177375e8796b40df699859efa13fb98bb86aec58e60363c955b2d5e4b2e6379a7597252ee4fdbeec49559de67b328 SHA512 0fab600b4323d23e12009eeb4ade595950880a88b05bcfbfeada1a9b9af615b96d31c568285629bf6e5de7b45ed857bdf98b6261dc54974fbaf70c924e093c76
23
24 diff --git a/app-portage/gentoolkit/gentoolkit-0.4.7.ebuild b/app-portage/gentoolkit/gentoolkit-0.4.7.ebuild
25 new file mode 100644
26 index 00000000000..4ecbc9343c9
27 --- /dev/null
28 +++ b/app-portage/gentoolkit/gentoolkit-0.4.7.ebuild
29 @@ -0,0 +1,75 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +DISTUTILS_USE_SETUPTOOLS=no
36 +PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
37 +PYTHON_REQ_USE="xml(+),threads(+)"
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Collection of administration scripts for Gentoo"
42 +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage-Tools"
43 +SRC_URI="https://gitweb.gentoo.org/proj/gentoolkit.git/snapshot/${P}.tar.gz"
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +IUSE=""
48 +
49 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
50 +
51 +DEPEND="
52 + sys-apps/portage[${PYTHON_USEDEP}]"
53 +RDEPEND="${DEPEND}
54 + sys-apps/gawk
55 + sys-apps/gentoo-functions"
56 +
57 +python_prepare_all() {
58 + python_setup
59 + echo VERSION="${PVR}" "${PYTHON}" setup.py set_version
60 + VERSION="${PVR}" "${PYTHON}" setup.py set_version
61 + distutils-r1_python_prepare_all
62 +}
63 +
64 +python_install_all() {
65 + distutils-r1_python_install_all
66 +}
67 +
68 +pkg_preinst() {
69 + if has_version "<${CATEGORY}/${PN}-0.4.0"; then
70 + SHOW_GENTOOKIT_DEV_DEPRECATED_MSG=1
71 + fi
72 +}
73 +
74 +pkg_postinst() {
75 + # Create cache directory for revdep-rebuild
76 + mkdir -p -m 0755 "${EROOT}"/var/cache
77 + mkdir -p -m 0700 "${EROOT}"/var/cache/revdep-rebuild
78 +
79 + if [[ ${SHOW_GENTOOKIT_DEV_DEPRECATED_MSG} ]]; then
80 + elog "Starting with version 0.4.0, ebump, ekeyword and imlate are now"
81 + elog "part of the gentoolkit package."
82 + elog "The gentoolkit-dev package is now deprecated in favor of a single"
83 + elog "gentoolkit package. The remaining tools from gentoolkit-dev"
84 + elog "are now obsolete/unused with the git based tree."
85 + fi
86 +
87 + # Only show the elog information on a new install
88 + if [[ ! ${REPLACING_VERSIONS} ]]; then
89 + elog
90 + elog "For further information on gentoolkit, please read the gentoolkit"
91 + elog "guide: https://wiki.gentoo.org/wiki/Gentoolkit"
92 + elog
93 + elog "Another alternative to equery is app-portage/portage-utils"
94 + elog
95 + elog "Additional tools that may be of interest:"
96 + elog
97 + elog " app-admin/eclean-kernel"
98 + elog " app-portage/diffmask"
99 + elog " app-portage/flaggie"
100 + elog " app-portage/install-mask"
101 + elog " app-portage/portpeek"
102 + elog " app-portage/smart-live-rebuild"
103 + fi
104 +}