You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-portage/gentoolkit/gentoolkit-9999.ebuild

82 lines
2.3 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-portage/gentoolkit/gentoolkit-9999.ebuild,v 1.26 2013/01/02 22:56:29 fuzzyray Exp $
EAPI="5"
PYTHON_COMPAT=(python{2_6,2_7,3_1,3_2,3_3} pypy1_9 )
PYTHON_REQ_USE="xml"
EGIT_MASTER="gentoolkit"
EGIT_BRANCH="gentoolkit"
inherit distutils-r1 git-2
EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/gentoolkit.git"
DESCRIPTION="Collection of administration scripts for Gentoo"
HOMEPAGE="http://www.gentoo.org/proj/en/portage/tools/index.xml"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
IUSE=""
KEYWORDS=""
DEPEND="sys-apps/portage"
RDEPEND="${DEPEND}
!<=app-portage/gentoolkit-dev-0.2.7
|| ( >=sys-apps/coreutils-8.15 app-misc/realpath sys-freebsd/freebsd-bin )
sys-apps/gawk
sys-apps/grep
virtual/python-argparse[${PYTHON_USEDEP}]"
python_prepare_all() {
python_export_best
echo VERSION="9999-${EGIT_VERSION}" "${PYTHON}" setup.py set_version
VERSION="9999-${EGIT_VERSION}" "${PYTHON}" setup.py set_version
}
python_install_all() {
distutils-r1_python_install_all
# Create cache directory for revdep-rebuild
keepdir /var/cache/revdep-rebuild
use prefix || fowners root:root /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
# Can distutils handle this?
dosym eclean /usr/bin/eclean-dist
dosym eclean /usr/bin/eclean-pkg
}
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: http://www.gentoo.org/doc/en/gentoolkit.xml"
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
}