diff options
Diffstat (limited to 'app-portage/gentoolkit')
-rw-r--r-- | app-portage/gentoolkit/Manifest | 15 | ||||
-rw-r--r-- | app-portage/gentoolkit/files/0.3.0.8-revdep-rebuild-476740.patch | 33 | ||||
-rw-r--r-- | app-portage/gentoolkit/files/0.3.0.8-revdep-rebuild-484340.patch | 46 | ||||
-rw-r--r-- | app-portage/gentoolkit/files/0.3.2-helpers.py-589686.patch | 30 | ||||
-rw-r--r-- | app-portage/gentoolkit/gentoolkit-0.3.0.8-r2.ebuild | 82 | ||||
-rw-r--r-- | app-portage/gentoolkit/gentoolkit-0.3.2-r1.ebuild | 74 | ||||
-rw-r--r-- | app-portage/gentoolkit/gentoolkit-0.3.3.ebuild | 70 | ||||
-rw-r--r-- | app-portage/gentoolkit/gentoolkit-0.4.0.ebuild | 66 | ||||
-rw-r--r-- | app-portage/gentoolkit/gentoolkit-9999.ebuild | 72 | ||||
-rw-r--r-- | app-portage/gentoolkit/metadata.xml | 14 |
10 files changed, 502 insertions, 0 deletions
diff --git a/app-portage/gentoolkit/Manifest b/app-portage/gentoolkit/Manifest new file mode 100644 index 000000000000..29e77202f2c1 --- /dev/null +++ b/app-portage/gentoolkit/Manifest @@ -0,0 +1,15 @@ +AUX 0.3.0.8-revdep-rebuild-476740.patch 990 SHA256 0e41b1ca96b59112af756e6b199349b1165d9ee23d81d0c17a862d52ba30f426 SHA512 9aaff1a7c277a1aefa57213ada599b520f5cea0f76f9d08b94c29324e380223c1e682804ae8e7d683077c436ec007cf2df31ff8285f38d349f5f6478e8df733f WHIRLPOOL 65db69af095d40799e11525439068f68de0eced22b5b7391b3a9e10bbb1f23fef244f7e10395cdaa9e1d0ce2e3bd8f6314e7bab25bfae201ec54f7ff87fb6151 +AUX 0.3.0.8-revdep-rebuild-484340.patch 1696 SHA256 b82e965072f10d11af4ae89c1633b773c1ffce0454862b26eaa6f153cdfd07fc SHA512 330caf60a34508847323e4f129d8195286b2093c3d2bb023a1a4e7dbee09d8d18f657bd584af8977a4ba46df8d5043fc72fd4fd54caa1076cae544ded15afc3c WHIRLPOOL f8198bcca4fb7764220cad90f8edb9efa32a57cd6c189f5e9733a36dca2ad0490a5e772aa12b4bf23418c43c470ba2b8b1b3ed99f397d3bac71f3d290acbe7d3 +AUX 0.3.2-helpers.py-589686.patch 821 SHA256 a7b5a2e1c0c3e32375e8f83560f2f6b673adff3fef8cd3e592ee96c963416772 SHA512 6b164bd281de47b99bb888386c1de181d78149cac89f7e9fa452827e2a1b2bd7f2d238e4fba672ff603294858ac90f59d589c9793b0810f896e7379a6f8aba79 WHIRLPOOL 53f49efc15d5c20aba32df2ad4907b1ba76433ed83566b90b3709c177dbee4e00350f23949c3eb617b5360d8c544077add38efdcdccc64ea7829b4d41c0f96fd +DIST gentoolkit-0.3.0.8.tar.gz 3192497 SHA256 0338dee7c295c32b60a84e529b764d2bc61536fa3aca021cd5a75c6e534864a6 SHA512 50efd701d0d056740bcf7c7cdce652ae7c9e2786f799f5d30946e752b8aa735489d3e0dc5c7664a5810a0f22cec05b9bc7ccc10292b07ac4dd0777658651f72d WHIRLPOOL 5a2455e50d4e0f4df8abab5b81deb6bb00e078dfed1687ae046ce97a0427eafea2d3de9b83ac6de8155d207653d001c6684ac92226fa2320515c6e14c8fea6e0 +DIST gentoolkit-0.3.2.tar.gz 3198294 SHA256 f3bb38d663c1b153447556b5265df5a11b6ed78411e761335b692111c823d9dd SHA512 e174ac7f12d45703515876ea558a661e1d0c5d4cc71d2d64ee793786e2a2d3d2b309500b6e1891774e3415de74922efc77553c0103d695f5dda91def9a6ac637 WHIRLPOOL 67192702f72f437cc31aeeef8bf005c83a4a9322e9fa0de3c1e0d229bfb95d7363f14a8902da5ffbf49dee45cd587286899ea1ead017cd7d18d0f852cc7fd9fb +DIST gentoolkit-0.3.3.tar.gz 3197037 SHA256 bb1fd78a6063efffd4e8402cd799f2c22ed2bbf440c26390aab68bfb6f4ee982 SHA512 ad142c2c66e7f7a2e4184c8f95e394ee783cd57808e6254e9f5df0f3f60ad842042f773716ca0fd6d7545bb8a2d11c1c167a4ec471eb3238c8ee3a519f70a691 WHIRLPOOL 81c2aa8cb36d9c6abef99729b07c9cc5402d66ccfd8523a4cee57ed99d2b4c2ab0db6c77dccdc90597bd11d60e11823130dd1136eeaba9b2a18383da3e9c5f25 +DIST gentoolkit-0.4.0.tar.gz 3215377 SHA256 3696b45b304b4b789f21d897e09311cf08474dcd9247dd3143bce95ffba5a220 SHA512 6cf693c588d4a2f5bd06fff4e78ef98007e613348048ec993c5430e168baef6c1da01e1843903f3e87ca8e47dd1ffb207acccbc5c0e881fa3093a7880fec9a56 WHIRLPOOL 0114e0e2274b198aca5bbadce6baf5b6595be92e48d322c759826d1143d7d82ea2deb91ba2f8133e5b554567b7ce62081b5e7df24fa3b029bb50041ce99509db +EBUILD gentoolkit-0.3.0.8-r2.ebuild 2569 SHA256 e20a5852712f094eecda0895280fd72836a18e9237f160e6c4f961a6f4985d5e SHA512 0796f45a84f363d3c868445d4e34e6e87d65c00d3cc01c398e44071d33040fb1d65aa2132386374e4e16c8c654f03f34fd3f2a18f28ff5810f48db995fdda3f9 WHIRLPOOL fee5219af98ab4c9b3484b88ae577851ad769e3c94d1cace0f5abc74232bb2b1487ed09d3e423007c0a45b3ecff1df1976e821c47d22cec825d76a83313fe34a +EBUILD gentoolkit-0.3.2-r1.ebuild 2244 SHA256 0e7b5fc22d0415f1493f931e4ee7b5fd16e1873b96f93a022efeca009f4e778a SHA512 0f7841b73128a56f85889480d7358d7472b5e40ec5eb1f53c7191bf2ef37e73b6744d340acc0f94fcdffb211f568ee0d87e73f03fcfb47dfb2b214eda50090d7 WHIRLPOOL 5ee1e6733481143b95aba28bd655205b9fb69d53aeca5efb3dcb622d77215d4d77400a2a9cff5d977963088606a0eb041e106b74b6dfe4e6c1b0312394f58b73 +EBUILD gentoolkit-0.3.3.ebuild 2190 SHA256 96abe4ba43ac0dcd731c08fb7609f60d6477060c350fb9270455245ea6ddd889 SHA512 6f95f1af8e2ae139ef6058b3798f75e331890bc05efb8abb4cc3c0e4014176424a424e9663f748f3cbae510186d8a7dce1b9d11e0813aa5e65ac9e4ee6d3aaa8 WHIRLPOOL 0476bfb125e2fb141398ed5a9a483de7fe5ba34c35be9591b43e2c92ace976b4bcc1c137ca4220bb3c63a72973930579a8d50c9b188dd4eab92ae70c90fbef18 +EBUILD gentoolkit-0.4.0.ebuild 2172 SHA256 5ce7288d045c189da6f3364875603923fd75b046b386766a0acc4406311cd600 SHA512 f782b097d20fb1803a25786368b2ea98173d0e8b4781ece7290f70310c0bcd0ac611c4c280e44aa2a76bf3739273d6eae2c4abb6054fe50069731f5eff798a92 WHIRLPOOL 9c7af0b2348e66264a026bf839b380342921b57773b19a11c91c8dfa3985b8f0b83b9778401b77fcd113629a8dfadcf1634967f98278c9339e065d5fc30d1d70 +EBUILD gentoolkit-9999.ebuild 1972 SHA256 d581494f29bafdb6b585d48dd54b5fc494a1d6e765ca1b03c8a8102dc46c276b SHA512 3c4443aa492625e7636854c651a1c70fb7059dd22e0168765bf27fb89dcb473f9c18dbc479a278067eda756021bca20e482e941a2b4ffcdd48f987cd800ba2c2 WHIRLPOOL 914f86d7971d167ae2c06241946397974d03724445e20af5ec4f1a47f1a9a1331098eac7ac2bca07e8045adcc457777b5d771b29f2993ec2fb5efa45e65a1aa1 +MISC ChangeLog 7216 SHA256 ecd70d2fd05932d6ba807c47f2f141c856d6fdbc60e7541c7a3f446916ba15ea SHA512 a9ab9e5e6eba30938c756ecf6a6af5671dab5a567384f6d7d124724d7e8eb5daba3975c31a736a1e31077456736a6b311188b1c3569ce8e1066cf2a9acdbbba1 WHIRLPOOL 44d726f589915c8b348775ff61f6fcad879b9853aabd7316f8a8483bd94f6fb68334feee9d1cdf17212f34d2c3b1931524e8fe65ccbe13aca062e41296e162b4 +MISC ChangeLog-2015 81145 SHA256 2be0115c31ea5a66f6ec2cab2d1280dd85d47c7fcb68dbd2ab81ae732b2adbf1 SHA512 a4a8f6cc06b49b8be331a0eeefa5bfa9c18ae4599025c0e6846497af0ba39cf627f4520082d50b818eb21716b65005bb155de466bf25a61f9c3f739119327b28 WHIRLPOOL ce50e41dbd48411c01c2390ab9c5eec9953c4a3c4128a4f104aca579c59b73d37910621d959049a8dac16c1e2cf2c39833f02666c683fcb50ca5ac7d7e396cfc +MISC metadata.xml 558 SHA256 c900e08a1c08dc178959f027ac0818ea138ae31768161b31b2382eba443c2235 SHA512 8e57275ae720065361529af42999f9bfe871007e45592ee6f539eec4ce61e6b141f44c65316ee10798bfaecc86a814fa18353becbb31ffc5e2c38df100ac3704 WHIRLPOOL b4866a09bcdcdf95579f6bfcb16d1b3ec7bfcf3b827cbce435a55cd815e7a5839942fb9854ebe84f0e174f99eabb20c82f11d9510b2dd8141b2ceebeccf1230e diff --git a/app-portage/gentoolkit/files/0.3.0.8-revdep-rebuild-476740.patch b/app-portage/gentoolkit/files/0.3.0.8-revdep-rebuild-476740.patch new file mode 100644 index 000000000000..8832838bd33f --- /dev/null +++ b/app-portage/gentoolkit/files/0.3.0.8-revdep-rebuild-476740.patch @@ -0,0 +1,33 @@ +From 87a01450ab33220f6f0821d4f4209004cdc3aa8b Mon Sep 17 00:00:00 2001 +From: Paul Varner <fuzzyray@gentoo.org> +Date: Tue, 10 Sep 2013 13:52:28 -0500 +Subject: [PATCH] Fix Ctrl-C handling when running emerge (Bug 476740). + +--- + bin/revdep-rebuild.sh | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/bin/revdep-rebuild.sh b/bin/revdep-rebuild.sh +index 6cb5608..09f5135 100755 +--- a/bin/revdep-rebuild.sh ++++ b/bin/revdep-rebuild.sh +@@ -1052,6 +1052,7 @@ portage_settings() { + if [[ -n ${REVDEP_REBUILD_DEFAULT_OPTS} ]]; then + EMERGE_DEFAULT_OPTS=("${REVDEP_REBUILD_DEFAULT_OPTS[@]}") + fi ++ + } + + ## +@@ -1138,7 +1139,7 @@ rebuild() { + REBUILD_LIST=$(sort -u "$EBUILDS_FILE") + fi + +- trap - SIGHUP SIGINT SIGQUIT SIGABRT SIGTERM ++ trap "kill 0" SIGHUP SIGINT SIGQUIT SIGABRT SIGTERM + + [[ $QUIET -ne 1 ]] && einfo 'All prepared. Starting rebuild' + echo "emerge --complete-graph=y --oneshot ${EMERGE_DEFAULT_OPTS[@]} ${EMERGE_OPTIONS[@]} $REBUILD_LIST" +-- +1.8.3.2 + diff --git a/app-portage/gentoolkit/files/0.3.0.8-revdep-rebuild-484340.patch b/app-portage/gentoolkit/files/0.3.0.8-revdep-rebuild-484340.patch new file mode 100644 index 000000000000..1a0393dac48d --- /dev/null +++ b/app-portage/gentoolkit/files/0.3.0.8-revdep-rebuild-484340.patch @@ -0,0 +1,46 @@ +From db997501ec8e0ef0c5e4426649c17d2498b40e06 Mon Sep 17 00:00:00 2001 +From: Paul Varner <fuzzyray@gentoo.org> +Date: Tue, 10 Sep 2013 10:59:31 -0500 +Subject: [PATCH] Fix use of REVDEP_REBUILD_DEFAULT_OPTS (Bug 484340). + +--- + bin/revdep-rebuild.sh | 7 ++----- + 1 file changed, 2 insertions(+), 5 deletions(-) + +diff --git a/bin/revdep-rebuild.sh b/bin/revdep-rebuild.sh +index 7f848bc..6cb5608 100755 +--- a/bin/revdep-rebuild.sh ++++ b/bin/revdep-rebuild.sh +@@ -1034,27 +1034,24 @@ portage_settings() { + local ORIG_SEARCH_DIRS="$SEARCH_DIRS" + local ORIG_SEARCH_DIRS_MASK="$SEARCH_DIRS_MASK" + local ORIG_LD_LIBRARY_MASK="$LD_LIBRARY_MASK" +- local ORIG_REVDEP_REBUILD_DEFAULT_OPTS="$REVDEP_REBUILD_DEFAULT_OPTS" + unset SEARCH_DIRS + unset SEARCH_DIRS_MASK + unset LD_LIBRARY_MASK +- unset REVDEP_REBUILD_DEFAULT_OPTS + + eval $(portageq envvar -v PORTAGE_ROOT PORTAGE_NICENESS EMERGE_DEFAULT_OPTS NOCOLOR SEARCH_DIRS SEARCH_DIRS_MASK LD_LIBRARY_MASK REVDEP_REBUILD_DEFAULT_OPTS) + export NOCOLOR + + # Convert quoted paths to array. + eval "EMERGE_DEFAULT_OPTS=(${EMERGE_DEFAULT_OPTS})" ++ eval "REVDEP_REBUILD_DEFAULT_OPTS=(${REVDEP_REBUILD_DEFAULT_OPTS})" + SEARCH_DIRS="$ORIG_SEARCH_DIRS $SEARCH_DIRS" + SEARCH_DIRS_MASK="$ORIG_SEARCH_DIRS_MASK $SEARCH_DIRS_MASK" + LD_LIBRARY_MASK="$ORIG_LD_LIBRARY_MASK $LD_LIBRARY_MASK" +- REVDEP_REBUILD_DEFAULT_OPTS="$ORIG_REVDEP_REBUILD_DEFAULT_OPTS $REVDEP_REBUILD_DEFAULT_OPTS" + + # Replace EMERGE_DEFAULT_OPTS with REVDEP_REBUILD_DEFAULT_OPTS (if it exists) + if [[ -n ${REVDEP_REBUILD_DEFAULT_OPTS} ]]; then +- EMERGE_DEFAULT_OPTS=("$REVDEP_REBUILD_DEFAULT_OPTS") ++ EMERGE_DEFAULT_OPTS=("${REVDEP_REBUILD_DEFAULT_OPTS[@]}") + fi +- + } + + ## +-- +1.8.3.2 + diff --git a/app-portage/gentoolkit/files/0.3.2-helpers.py-589686.patch b/app-portage/gentoolkit/files/0.3.2-helpers.py-589686.patch new file mode 100644 index 000000000000..282846c47246 --- /dev/null +++ b/app-portage/gentoolkit/files/0.3.2-helpers.py-589686.patch @@ -0,0 +1,30 @@ +From bc92540f8ce498e8305103619c7085b670ba19b1 Mon Sep 17 00:00:00 2001 +From: Paul Varner <fuzzyray@gentoo.org> +Date: Mon, 25 Jul 2016 13:01:06 -0500 +Subject: Add missing import of io.open when using python2.7 + +This fixes the traceback when running equery changes with Python 2.7 + +X-Gentoo-bug: 589686 +X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=589686 +--- + pym/gentoolkit/helpers.py | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/pym/gentoolkit/helpers.py b/pym/gentoolkit/helpers.py +index 0d985b6..8d25393 100644 +--- a/pym/gentoolkit/helpers.py ++++ b/pym/gentoolkit/helpers.py +@@ -26,6 +26,9 @@ __docformat__ = 'epytext' + # ======= + + import os ++import sys ++if sys.hexversion < 0x3000000: ++ from io import open + import re + from functools import partial + from itertools import chain +-- +cgit v0.12 + diff --git a/app-portage/gentoolkit/gentoolkit-0.3.0.8-r2.ebuild b/app-portage/gentoolkit/gentoolkit-0.3.0.8-r2.ebuild new file mode 100644 index 000000000000..040f9c34ec97 --- /dev/null +++ b/app-portage/gentoolkit/gentoolkit-0.3.0.8-r2.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +PYTHON_COMPAT=(python2_7) +PYTHON_REQ_USE="xml(+),threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Collection of administration scripts for Gentoo" +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage-Tools" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +DEPEND="sys-apps/portage" +RDEPEND="${DEPEND} + !<=app-portage/gentoolkit-dev-0.2.7 + sys-apps/gawk" + +PATCHES=( + "${FILESDIR}"/${PV}-revdep-rebuild-484340.patch + "${FILESDIR}"/${PV}-revdep-rebuild-476740.patch +) + +python_prepare_all() { + python_setup + echo VERSION="${PVR}" "${PYTHON}" setup.py set_version + VERSION="${PVR}" "${PYTHON}" setup.py set_version + mv ./bin/revdep-rebuild{,.py} || die + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all + + # Rename the python versions of revdep-rebuild, since we are not ready + # to switch to the python version yet. Link /usr/bin/revdep-rebuild to + # revdep-rebuild.sh. Leaving the python version available for potential + # testing by a wider audience. + dosym revdep-rebuild.sh /usr/bin/revdep-rebuild + + # Create cache directory for revdep-rebuild + keepdir /var/cache/revdep-rebuild + use prefix || fowners root:0 /var/cache/revdep-rebuild + fperms 0700 /var/cache/revdep-rebuild + + # remove on Gentoo Prefix platforms where it's broken anyway + if use prefix; then + elog "The revdep-rebuild command is removed, the preserve-libs" + elog "feature of portage will handle issues." + rm "${ED}"/usr/bin/revdep-rebuild* + rm "${ED}"/usr/share/man/man1/revdep-rebuild.1 + rm -rf "${ED}"/etc/revdep-rebuild + rm -rf "${ED}"/var + fi +} + +pkg_postinst() { + # Only show the elog information on a new install + if [[ ! ${REPLACING_VERSIONS} ]]; then + elog + elog "For further information on gentoolkit, please read the gentoolkit" + elog "guide: https://wiki.gentoo.org/wiki/Gentoolkit" + elog + elog "Another alternative to equery is app-portage/portage-utils" + elog + elog "Additional tools that may be of interest:" + elog + elog " app-admin/eclean-kernel" + elog " app-portage/diffmask" + elog " app-portage/flaggie" + elog " app-portage/install-mask" + elog " app-portage/portpeek" + elog " app-portage/smart-live-rebuild" + fi +} diff --git a/app-portage/gentoolkit/gentoolkit-0.3.2-r1.ebuild b/app-portage/gentoolkit/gentoolkit-0.3.2-r1.ebuild new file mode 100644 index 000000000000..eeca23d3292b --- /dev/null +++ b/app-portage/gentoolkit/gentoolkit-0.3.2-r1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PYTHON_COMPAT=(python{2_7,3_4,3_5} pypy) +PYTHON_REQ_USE="xml(+),threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Collection of administration scripts for Gentoo" +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage-Tools" +SRC_URI="https://dev.gentoo.org/~dolsen/releases/gentoolkit/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +DEPEND="sys-apps/portage[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND} + !<=app-portage/gentoolkit-dev-0.2.7 + sys-apps/gawk + sys-apps/gentoo-functions" + +PATCHES=( + "${FILESDIR}"/${PV}-helpers.py-589686.patch +) + +python_prepare_all() { + python_setup + echo VERSION="${PVR}" "${PYTHON}" setup.py set_version + VERSION="${PVR}" "${PYTHON}" setup.py set_version + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all + + # remove on Gentoo Prefix platforms where it's broken anyway + if use prefix; then + elog "The revdep-rebuild command is removed, the preserve-libs" + elog "feature of portage will handle issues." + rm "${ED}"/usr/bin/revdep-rebuild* + rm "${ED}"/usr/share/man/man1/revdep-rebuild.1 + rm -rf "${ED}"/etc/revdep-rebuild + rm -rf "${ED}"/var + fi +} + +pkg_postinst() { + # Create cache directory for revdep-rebuild + mkdir -p -m 0755 "${EROOT%/}"/var/cache + mkdir -p -m 0700 "${EROOT%/}"/var/cache/revdep-rebuild + + # Only show the elog information on a new install + if [[ ! ${REPLACING_VERSIONS} ]]; then + elog + elog "For further information on gentoolkit, please read the gentoolkit" + elog "guide: https://wiki.gentoo.org/wiki/Gentoolkit" + elog + elog "Another alternative to equery is app-portage/portage-utils" + elog + elog "Additional tools that may be of interest:" + elog + elog " app-admin/eclean-kernel" + elog " app-portage/diffmask" + elog " app-portage/flaggie" + elog " app-portage/install-mask" + elog " app-portage/portpeek" + elog " app-portage/smart-live-rebuild" + fi +} diff --git a/app-portage/gentoolkit/gentoolkit-0.3.3.ebuild b/app-portage/gentoolkit/gentoolkit-0.3.3.ebuild new file mode 100644 index 000000000000..c57b96514b09 --- /dev/null +++ b/app-portage/gentoolkit/gentoolkit-0.3.3.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PYTHON_COMPAT=(python{2_7,3_4,3_5} pypy) +PYTHON_REQ_USE="xml(+),threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Collection of administration scripts for Gentoo" +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage-Tools" +SRC_URI="https://dev.gentoo.org/~fuzzyray/distfiles/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +DEPEND="sys-apps/portage[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND} + !<=app-portage/gentoolkit-dev-0.2.7 + sys-apps/gawk + sys-apps/gentoo-functions" + +python_prepare_all() { + python_setup + echo VERSION="${PVR}" "${PYTHON}" setup.py set_version + VERSION="${PVR}" "${PYTHON}" setup.py set_version + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all + + # remove on Gentoo Prefix platforms where it's broken anyway + if use prefix; then + elog "The revdep-rebuild command is removed, the preserve-libs" + elog "feature of portage will handle issues." + rm "${ED}"/usr/bin/revdep-rebuild* + rm "${ED}"/usr/share/man/man1/revdep-rebuild.1 + rm -rf "${ED}"/etc/revdep-rebuild + rm -rf "${ED}"/var + fi +} + +pkg_postinst() { + # Create cache directory for revdep-rebuild + mkdir -p -m 0755 "${EROOT%/}"/var/cache + mkdir -p -m 0700 "${EROOT%/}"/var/cache/revdep-rebuild + + # Only show the elog information on a new install + if [[ ! ${REPLACING_VERSIONS} ]]; then + elog + elog "For further information on gentoolkit, please read the gentoolkit" + elog "guide: https://wiki.gentoo.org/wiki/Gentoolkit" + elog + elog "Another alternative to equery is app-portage/portage-utils" + elog + elog "Additional tools that may be of interest:" + elog + elog " app-admin/eclean-kernel" + elog " app-portage/diffmask" + elog " app-portage/flaggie" + elog " app-portage/install-mask" + elog " app-portage/portpeek" + elog " app-portage/smart-live-rebuild" + fi +} diff --git a/app-portage/gentoolkit/gentoolkit-0.4.0.ebuild b/app-portage/gentoolkit/gentoolkit-0.4.0.ebuild new file mode 100644 index 000000000000..83450c7fa03e --- /dev/null +++ b/app-portage/gentoolkit/gentoolkit-0.4.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PYTHON_COMPAT=(python{2_7,3_4,3_5,3_6} pypy) +PYTHON_REQ_USE="xml(+),threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Collection of administration scripts for Gentoo" +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage-Tools" +SRC_URI="https://dev.gentoo.org/~dolsen/releases/gentoolkit/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +KEYWORDS="~alpha ~amd64 ~arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +DEPEND="sys-apps/portage[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND} + !app-portage/gentoolkit-dev + sys-apps/gawk + sys-apps/gentoo-functions" + +python_prepare_all() { + python_setup + echo VERSION="${PVR}" "${PYTHON}" setup.py set_version + VERSION="${PVR}" "${PYTHON}" setup.py set_version + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all +} + +pkg_postinst() { + # Create cache directory for revdep-rebuild + mkdir -p -m 0755 "${EROOT%/}"/var/cache + mkdir -p -m 0700 "${EROOT%/}"/var/cache/revdep-rebuild + + einfo "Starting with this version, ebump, ekeyword and imlate are now" + einfo "part of the gentoolkit package." + einfo "The gentoolkit-dev package is now deprecated in favor of a single" + einfo "gentoolkit package. The remaining tools from gentoolkit-dev" + einfo "are now obsolete/unused with the git based tree." + + # Only show the elog information on a new install + if [[ ! ${REPLACING_VERSIONS} ]]; then + elog + elog "For further information on gentoolkit, please read the gentoolkit" + elog "guide: https://wiki.gentoo.org/wiki/Gentoolkit" + elog + elog "Another alternative to equery is app-portage/portage-utils" + elog + elog "Additional tools that may be of interest:" + elog + elog " app-admin/eclean-kernel" + elog " app-portage/diffmask" + elog " app-portage/flaggie" + elog " app-portage/install-mask" + elog " app-portage/portpeek" + elog " app-portage/smart-live-rebuild" + fi +} diff --git a/app-portage/gentoolkit/gentoolkit-9999.ebuild b/app-portage/gentoolkit/gentoolkit-9999.ebuild new file mode 100644 index 000000000000..db87f0f2dcb0 --- /dev/null +++ b/app-portage/gentoolkit/gentoolkit-9999.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +PYTHON_COMPAT=(python{2_7,3_4,3_5} pypy) +PYTHON_REQ_USE="xml(+),threads(+)" + +inherit distutils-r1 git-r3 + +EGIT_REPO_URI="git://anongit.gentoo.org/proj/gentoolkit.git" + +DESCRIPTION="Collection of administration scripts for Gentoo" +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage-Tools" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +KEYWORDS="" + +DEPEND="sys-apps/portage[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND} + !app-portage/gentoolkit-dev + sys-apps/gawk + sys-apps/gentoo-functions" + +python_prepare_all() { + python_setup + echo VERSION="9999-${EGIT_VERSION}" "${PYTHON}" setup.py set_version + VERSION="9999-${EGIT_VERSION}" "${PYTHON}" setup.py set_version + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all + + # remove on Gentoo Prefix platforms where it's broken anyway + if use prefix; then + elog "The revdep-rebuild command is removed, the preserve-libs" + elog "feature of portage will handle issues." + rm "${ED}"/usr/bin/revdep-rebuild* + rm "${ED}"/usr/share/man/man1/revdep-rebuild.1 + rm -rf "${ED}"/etc/revdep-rebuild + rm -rf "${ED}"/var + fi +} + +pkg_postinst() { + # Create cache directory for revdep-rebuild + mkdir -p -m 0755 "${EROOT%/}"/var/cache + mkdir -p -m 0700 "${EROOT%/}"/var/cache/revdep-rebuild + + # Only show the elog information on a new install + if [[ ! ${REPLACING_VERSIONS} ]]; then + elog + elog "For further information on gentoolkit, please read the gentoolkit" + elog "guide: https://wiki.gentoo.org/wiki/Gentoolkit" + elog + elog "Another alternative to equery is app-portage/portage-utils" + elog + elog "Additional tools that may be of interest:" + elog + elog " app-admin/eclean-kernel" + elog " app-portage/diffmask" + elog " app-portage/flaggie" + elog " app-portage/install-mask" + elog " app-portage/portpeek" + elog " app-portage/smart-live-rebuild" + fi +} diff --git a/app-portage/gentoolkit/metadata.xml b/app-portage/gentoolkit/metadata.xml new file mode 100644 index 000000000000..011e78ec7428 --- /dev/null +++ b/app-portage/gentoolkit/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>tools-portage@gentoo.org</email> + <name>Gentoo Portage tools team</name> + </maintainer> + <longdescription> +Gentoolkit is a collection of useful adminstration scripts particular to +the Gentoo Linux distribution. It contains rough drafts and +implementations of features that may in time make it into Portage, or +into full-fledged tools in their own right. +</longdescription> +</pkgmetadata> |