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

92 lines
2.6 KiB

# Copyright 1999-2012 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.25 2012/11/13 21:59:47 fuzzyray Exp $
EAPI="3"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="2.[45]"
PYTHON_USE_WITH="xml"
PYTHON_NONVERSIONED_EXECUTABLES=(".*")
EGIT_MASTER="gentoolkit"
EGIT_BRANCH="gentoolkit"
inherit distutils python 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=""
# Note: dev-lang/python dependencies are so emerge will print a blocker if any
# installed slot of python is not built with +xml. This is used since
# PYTHON_USE_WITH just dies in the middle of the emerge. See bug 399331.
DEPEND="sys-apps/portage"
RDEPEND="${DEPEND}
>=dev-lang/python-2.6[xml]
!>=dev-lang/python-2.6[-xml]
!<=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"
distutils_src_compile_pre_hook() {
echo VERSION="9999-${EGIT_VERSION}" "$(PYTHON)" setup.py set_version
VERSION="9999-${EGIT_VERSION}" "$(PYTHON)" setup.py set_version
}
src_compile() {
distutils_src_compile
}
src_install() {
python_convert_shebangs -r "" build-*/scripts-*
distutils_src_install
# Create cache directory for revdep-rebuild
dodir /var/cache/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() {
distutils_pkg_postinst
einfo
einfo "For further information on gentoolkit, please read the gentoolkit"
einfo "guide: http://www.gentoo.org/doc/en/gentoolkit.xml"
einfo
einfo "Another alternative to equery is app-portage/portage-utils"
einfo
einfo "Additional tools that may be of interest:"
einfo
einfo " app-admin/eclean-kernel"
einfo " app-portage/diffmask"
einfo " app-portage/flaggie"
einfo " app-portage/install-mask"
einfo " app-portage/portpeek"
einfo " app-portage/smart-live-rebuild"
}