1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_COMPAT=(python{2_7,3_3})
8 PYTHON_REQ_USE="xml(+)"
12 DESCRIPTION="Collection of administration scripts for Gentoo"
13 HOMEPAGE="https://www.gentoo.org/proj/en/portage/tools/index.xml"
14 SRC_URI="mirror://gentoo/${P}.tar.gz"
20 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
22 DEPEND="sys-apps/portage"
24 !<=app-portage/gentoolkit-dev-0.2.7
25 || ( >=sys-apps/coreutils-8.15 app-misc/realpath sys-freebsd/freebsd-bin )
31 python_prepare_all() {
33 echo VERSION="${PVR}" "${PYTHON}" setup.py set_version
34 VERSION="${PVR}" "${PYTHON}" setup.py set_version
35 mv ./bin/revdep-rebuild{,.py} || die
36 distutils-r1_python_prepare_all
39 python_install_all() {
40 distutils-r1_python_install_all
42 # Rename the python versions of revdep-rebuild, since we are not ready
43 # to switch to the python version yet. Link /usr/bin/revdep-rebuild to
44 # revdep-rebuild.sh. Leaving the python version available for potential
45 # testing by a wider audience.
46 dosym revdep-rebuild.sh /usr/bin/revdep-rebuild
48 # TODO: Fix this as it is now a QA violation
49 # Create cache directory for revdep-rebuild
50 keepdir /var/cache/revdep-rebuild
51 use prefix || fowners root:0 /var/cache/revdep-rebuild
52 fperms 0700 /var/cache/revdep-rebuild
54 # remove on Gentoo Prefix platforms where it's broken anyway
56 elog "The revdep-rebuild command is removed, the preserve-libs"
57 elog "feature of portage will handle issues."
58 rm "${ED}"/usr/bin/revdep-rebuild*
59 rm "${ED}"/usr/share/man/man1/revdep-rebuild.1
60 rm -rf "${ED}"/etc/revdep-rebuild
66 # Only show the elog information on a new install
67 if [[ ! ${REPLACING_VERSIONS} ]]; then
69 elog "For further information on gentoolkit, please read the gentoolkit"
70 elog "guide: https://www.gentoo.org/doc/en/gentoolkit.xml"
72 elog "Another alternative to equery is app-portage/portage-utils"
74 elog "Additional tools that may be of interest:"
76 elog " app-admin/eclean-kernel"
77 elog " app-portage/diffmask"
78 elog " app-portage/flaggie"
79 elog " app-portage/install-mask"
80 elog " app-portage/portpeek"
81 elog " app-portage/smart-live-rebuild"