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