Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-portage/portage-utils: portage-utils-0.9.ebuild ChangeLog
Date: Sat, 31 Dec 2011 11:39:17
Message-Id: 20111231113907.EDC562004B@flycatcher.gentoo.org
1 grobian 11/12/31 11:39:07
2
3 Modified: portage-utils-0.9.ebuild ChangeLog
4 Log:
5 Added Prefix changes, bug #395827. Added Prefix keywords.
6
7 (Portage version: 2.2.01.20043-prefix/cvs/Darwin i386)
8
9 Revision Changes Path
10 1.2 app-portage/portage-utils/portage-utils-0.9.ebuild
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/portage-utils/portage-utils-0.9.ebuild?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/portage-utils/portage-utils-0.9.ebuild?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/portage-utils/portage-utils-0.9.ebuild?r1=1.1&r2=1.2
15
16 Index: portage-utils-0.9.ebuild
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-portage/portage-utils/portage-utils-0.9.ebuild,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- portage-utils-0.9.ebuild 22 Dec 2011 20:46:03 -0000 1.1
23 +++ portage-utils-0.9.ebuild 31 Dec 2011 11:39:07 -0000 1.2
24 @@ -1,6 +1,6 @@
25 # Copyright 1999-2011 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-portage/portage-utils/portage-utils-0.9.ebuild,v 1.1 2011/12/22 20:46:03 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-portage/portage-utils/portage-utils-0.9.ebuild,v 1.2 2011/12/31 11:39:07 grobian Exp $
29
30 EAPI="3"
31
32 @@ -12,14 +12,14 @@
33
34 LICENSE="GPL-2"
35 SLOT="0"
36 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
37 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~ppc-aix ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
38 IUSE="static"
39
40 src_configure() {
41 use static && append-ldflags -static
42
43 # Avoid slow configure+gnulib+make if on an up-to-date Linux system
44 - if ! use kernel_linux ; then
45 + if use prefix || ! use kernel_linux ; then
46 econf --with-eprefix="${EPREFIX}"
47 else
48 tc-export CC
49 @@ -34,22 +34,28 @@
50 doexe "${FILESDIR}"/post_sync || die
51 insinto /etc/portage/postsync.d
52 doins "${FILESDIR}"/q-reinitialize || die
53 +
54 + # Portage fixes shebangs, we just need to fix the paths in the files
55 + sed -i \
56 + -e "s:\(/etc/portage/postsync.d\|/usr/bin/q\):${EPREFIX}&:g" \
57 + "${ED}"/etc/portage/bin/post_sync \
58 + "${ED}"/etc/portage/postsync.d/q-reinitialize || die
59 }
60
61 pkg_preinst() {
62 # preserve +x bit on postsync files #301721
63 local x
64 - pushd "${D}" >/dev/null
65 + pushd "${ED}" >/dev/null
66 for x in etc/portage/postsync.d/* ; do
67 - [[ -x ${ROOT}/${x} ]] && chmod +x "${x}"
68 + [[ -x ${EROOT}/${x} ]] && chmod +x "${x}"
69 done
70 }
71
72 pkg_postinst() {
73 - elog "/etc/portage/postsync.d/q-reinitialize has been installed for convenience"
74 + elog "${EPREFIX}/etc/portage/postsync.d/q-reinitialize has been installed for convenience"
75 elog "If you wish for it to be automatically run at the end of every --sync:"
76 - elog " # chmod +x /etc/portage/postsync.d/q-reinitialize"
77 + elog " # chmod +x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
78 elog "Normally this should only take a few seconds to run but file systems"
79 elog "such as ext3 can take a lot longer. To disable, simply do:"
80 - elog " # chmod -x /etc/portage/postsync.d/q-reinitialize"
81 + elog " # chmod -x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
82 }
83
84
85
86 1.121 app-portage/portage-utils/ChangeLog
87
88 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/portage-utils/ChangeLog?rev=1.121&view=markup
89 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/portage-utils/ChangeLog?rev=1.121&content-type=text/plain
90 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/portage-utils/ChangeLog?r1=1.120&r2=1.121
91
92 Index: ChangeLog
93 ===================================================================
94 RCS file: /var/cvsroot/gentoo-x86/app-portage/portage-utils/ChangeLog,v
95 retrieving revision 1.120
96 retrieving revision 1.121
97 diff -u -r1.120 -r1.121
98 --- ChangeLog 22 Dec 2011 20:46:03 -0000 1.120
99 +++ ChangeLog 31 Dec 2011 11:39:07 -0000 1.121
100 @@ -1,6 +1,9 @@
101 # ChangeLog for app-portage/portage-utils
102 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
103 -# $Header: /var/cvsroot/gentoo-x86/app-portage/portage-utils/ChangeLog,v 1.120 2011/12/22 20:46:03 vapier Exp $
104 +# $Header: /var/cvsroot/gentoo-x86/app-portage/portage-utils/ChangeLog,v 1.121 2011/12/31 11:39:07 grobian Exp $
105 +
106 + 31 Dec 2011; Fabian Groffen <grobian@g.o> portage-utils-0.9.ebuild:
107 + Added Prefix changes, bug #395827. Added Prefix keywords.
108
109 *portage-utils-0.9 (22 Dec 2011)