Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 90 lines (75 sloc) 2.996 kb
f0c8845 @angryvincent gentoolkit updates in current
angryvincent authored
1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-portage/gentoolkit/gentoolkit-0.3.0.6.ebuild,v 1.1 2012/04/11 21:41:28 fuzzyray Exp $
4
5 EAPI="3"
6 SUPPORT_PYTHON_ABIS="1"
7 RESTRICT_PYTHON_ABIS="2.[45]"
8 PYTHON_USE_WITH="xml"
9 PYTHON_NONVERSIONED_EXECUTABLES=(".*")
10
11 inherit distutils python eutils
12
13 DESCRIPTION="Collection of administration scripts for Gentoo"
14 HOMEPAGE="http://www.gentoo.org/proj/en/portage/tools/index.xml"
15 SRC_URI="mirror://gentoo/${P}.tar.gz"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 IUSE=""
20
21 KEYWORDS="~*"
22
23 # Note: argparse is provided in python 2.7 and 3.2 (Bug 346005)
24 # Note: dev-lang/python dependencies are so emerge will print a blocker if any
25 # installed slot of python is not built with +xml. This is used since
26 # PYTHON_USE_WITH just dies in the middle of the emerge. See bug 399331.
27 DEPEND="sys-apps/portage"
28 RDEPEND="${DEPEND}
29 >=dev-lang/python-2.6[xml]
30 !>=dev-lang/python-2.6[-xml]
31 !<=app-portage/gentoolkit-dev-0.2.7
32 virtual/python-argparse
33 >=sys-apps/coreutils-8.15
34 sys-apps/gawk
35 sys-apps/grep"
36
37 distutils_src_compile_pre_hook() {
38 echo VERSION="${PVR}" "$(PYTHON)" setup.py set_version
39 VERSION="${PVR}" "$(PYTHON)" setup.py set_version \
40 || die "setup.py set_version failed"
41 }
42
43 src_install() {
44 python_convert_shebangs -r "" build-*/scripts-*
45 distutils_src_install
46
47 # Rename the python versions of revdep-rebuild, since we are not ready
48 # to switch to the python version yet. Link /usr/bin/revdep-rebuild to
49 # revdep-rebuild.sh. Leaving the python version available for potential
50 # testing by a wider audience.
51 mv "${ED}"/usr/bin/revdep-rebuild "${ED}"/usr/bin/revdep-rebuild.py
52 dosym revdep-rebuild.sh /usr/bin/revdep-rebuild
53
54 # Create cache directory for revdep-rebuild
55 dodir /var/cache/revdep-rebuild
56 keepdir /var/cache/revdep-rebuild
57 use prefix || fowners root:root /var/cache/revdep-rebuild
58 fperms 0700 /var/cache/revdep-rebuild
59
60 # remove on Gentoo Prefix platforms where it's broken anyway
61 if use prefix; then
62 elog "The revdep-rebuild command is removed, the preserve-libs"
63 elog "feature of portage will handle issues."
64 rm "${ED}"/usr/bin/revdep-rebuild
65 rm "${ED}"/usr/bin/revdep-rebuild.py
66 rm "${ED}"/usr/share/man/man1/revdep-rebuild.1
67 rm -rf "${ED}"/etc/revdep-rebuild
68 rm -rf "${ED}"/var
69 fi
70
71 # Can distutils handle this?
72 dosym eclean /usr/bin/eclean-dist
73 dosym eclean /usr/bin/eclean-pkg
74 }
75
76 pkg_postinst() {
77 distutils_pkg_postinst
78
79 einfo
80 einfo "For further information on gentoolkit, please read the gentoolkit"
81 einfo "guide: http://www.gentoo.org/doc/en/gentoolkit.xml"
82 einfo
83 einfo "Another alternative to equery is app-portage/portage-utils"
84 ewarn
85 ewarn "glsa-check since gentoolkit 0.3 has modified some output,"
86 ewarn "options and default behavior. The list of injected GLSAs"
87 ewarn "has moved to /var/lib/portage/glsa_injected, please"
88 ewarn "run 'glsa-check -p affected' before copying the existing checkfile."
89 }
Something went wrong with that request. Please try again.