Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-portage/gentoolkit: gentoolkit-0.3.0.7-r1.ebuild ChangeLog
Date: Mon, 25 Feb 2013 18:03:57
Message-Id: 20130225180353.0ECDF20081@flycatcher.gentoo.org
1 vapier 13/02/25 18:03:52
2
3 Modified: ChangeLog
4 Added: gentoolkit-0.3.0.7-r1.ebuild
5 Log:
6 Add fix for ROOT handling #160815.
7
8 (Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
9
10 Revision Changes Path
11 1.292 app-portage/gentoolkit/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/gentoolkit/ChangeLog?rev=1.292&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/gentoolkit/ChangeLog?rev=1.292&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/gentoolkit/ChangeLog?r1=1.291&r2=1.292
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-portage/gentoolkit/ChangeLog,v
20 retrieving revision 1.291
21 retrieving revision 1.292
22 diff -u -r1.291 -r1.292
23 --- ChangeLog 22 Feb 2013 18:07:16 -0000 1.291
24 +++ ChangeLog 25 Feb 2013 18:03:52 -0000 1.292
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-portage/gentoolkit
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-portage/gentoolkit/ChangeLog,v 1.291 2013/02/22 18:07:16 zmedico Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-portage/gentoolkit/ChangeLog,v 1.292 2013/02/25 18:03:52 vapier Exp $
30 +
31 +*gentoolkit-0.3.0.7-r1 (25 Feb 2013)
32 +
33 + 25 Feb 2013; Mike Frysinger <vapier@g.o> +files/0.3.0.7-root.patch,
34 + +gentoolkit-0.3.0.7-r1.ebuild:
35 + Add fix for ROOT handling #160815.
36
37 22 Feb 2013; Zac Medico <zmedico@g.o> gentoolkit-0.3.0.7.ebuild:
38 Add ~arm-linux keyword.
39
40
41
42 1.1 app-portage/gentoolkit/gentoolkit-0.3.0.7-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/gentoolkit/gentoolkit-0.3.0.7-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/gentoolkit/gentoolkit-0.3.0.7-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: gentoolkit-0.3.0.7-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-portage/gentoolkit/gentoolkit-0.3.0.7-r1.ebuild,v 1.1 2013/02/25 18:03:52 vapier Exp $
52
53 EAPI="3"
54 SUPPORT_PYTHON_ABIS="1"
55 RESTRICT_PYTHON_ABIS="2.[45]"
56 PYTHON_USE_WITH="xml"
57 PYTHON_NONVERSIONED_EXECUTABLES=(".*")
58
59 inherit distutils python eutils
60
61 DESCRIPTION="Collection of administration scripts for Gentoo"
62 HOMEPAGE="http://www.gentoo.org/proj/en/portage/tools/index.xml"
63 SRC_URI="mirror://gentoo/${P}.tar.gz"
64
65 LICENSE="GPL-2"
66 SLOT="0"
67 IUSE=""
68
69 KEYWORDS="~alpha ~amd64 ~arm ~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"
70
71 # Note: dev-lang/python dependencies are so emerge will print a blocker if any
72 # installed slot of python is not built with +xml. This is used since
73 # PYTHON_USE_WITH just dies in the middle of the emerge. See bug 399331.
74 DEPEND="sys-apps/portage"
75 RDEPEND="${DEPEND}
76 >=dev-lang/python-2.6[xml]
77 !>=dev-lang/python-2.6[-xml]
78 !<=app-portage/gentoolkit-dev-0.2.7
79 || ( >=sys-apps/coreutils-8.15 app-misc/realpath sys-freebsd/freebsd-bin )
80 sys-apps/gawk
81 sys-apps/grep
82 virtual/python-argparse"
83
84 distutils_src_compile_pre_hook() {
85 echo VERSION="${PVR}" "$(PYTHON)" setup.py set_version
86 VERSION="${PVR}" "$(PYTHON)" setup.py set_version \
87 || die "setup.py set_version failed"
88 }
89
90 src_prepare() {
91 epatch "${FILESDIR}"/${PV}-root.patch
92 }
93
94 src_install() {
95 python_convert_shebangs -r "" build-*/scripts-*
96 distutils_src_install
97
98 # Rename the python versions of revdep-rebuild, since we are not ready
99 # to switch to the python version yet. Link /usr/bin/revdep-rebuild to
100 # revdep-rebuild.sh. Leaving the python version available for potential
101 # testing by a wider audience.
102 mv "${ED}"/usr/bin/revdep-rebuild "${ED}"/usr/bin/revdep-rebuild.py
103 dosym revdep-rebuild.sh /usr/bin/revdep-rebuild
104
105 # Create cache directory for revdep-rebuild
106 dodir /var/cache/revdep-rebuild
107 keepdir /var/cache/revdep-rebuild
108 use prefix || fowners root:root /var/cache/revdep-rebuild
109 fperms 0700 /var/cache/revdep-rebuild
110
111 # remove on Gentoo Prefix platforms where it's broken anyway
112 if use prefix; then
113 elog "The revdep-rebuild command is removed, the preserve-libs"
114 elog "feature of portage will handle issues."
115 rm "${ED}"/usr/bin/revdep-rebuild*
116 rm "${ED}"/usr/share/man/man1/revdep-rebuild.1
117 rm -rf "${ED}"/etc/revdep-rebuild
118 rm -rf "${ED}"/var
119 fi
120
121 # Can distutils handle this?
122 dosym eclean /usr/bin/eclean-dist
123 dosym eclean /usr/bin/eclean-pkg
124 }
125
126 pkg_postinst() {
127 distutils_pkg_postinst
128
129 einfo
130 einfo "For further information on gentoolkit, please read the gentoolkit"
131 einfo "guide: http://www.gentoo.org/doc/en/gentoolkit.xml"
132 einfo
133 einfo "Another alternative to equery is app-portage/portage-utils"
134 einfo
135 einfo "Additional tools that may be of interest:"
136 einfo
137 einfo " app-admin/eclean-kernel"
138 einfo " app-portage/diffmask"
139 einfo " app-portage/flaggie"
140 einfo " app-portage/install-mask"
141 einfo " app-portage/portpeek"
142 einfo " app-portage/smart-live-rebuild"
143 }