Gentoo Archives: gentoo-commits

From: "Ali Polatel (hawking)" <hawking@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/yum: yum-3.2.8.ebuild yum-2.6.1.ebuild ChangeLog
Date: Thu, 29 May 2008 18:05:05
Message-Id: E1K1mUl-0006ta-26@stork.gentoo.org
1 hawking 08/05/29 18:04:59
2
3 Modified: yum-3.2.8.ebuild yum-2.6.1.ebuild ChangeLog
4 Log:
5 python_mod_{cleanup,optimize} is ROOT aware. Remove redundant python_version in pkg_*. Quoting.
6 (Portage version: 2.1.5.2)
7
8 Revision Changes Path
9 1.5 sys-apps/yum/yum-3.2.8.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/yum/yum-3.2.8.ebuild?rev=1.5&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/yum/yum-3.2.8.ebuild?rev=1.5&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/yum/yum-3.2.8.ebuild?r1=1.4&r2=1.5
14
15 Index: yum-3.2.8.ebuild
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/sys-apps/yum/yum-3.2.8.ebuild,v
18 retrieving revision 1.4
19 retrieving revision 1.5
20 diff -u -r1.4 -r1.5
21 --- yum-3.2.8.ebuild 6 Jan 2008 18:39:03 -0000 1.4
22 +++ yum-3.2.8.ebuild 29 May 2008 18:04:58 -0000 1.5
23 @@ -1,9 +1,9 @@
24 # Copyright 1999-2008 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/yum/yum-3.2.8.ebuild,v 1.4 2008/01/06 18:39:03 vapier Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/yum/yum-3.2.8.ebuild,v 1.5 2008/05/29 18:04:58 hawking Exp $
28
29 NEED_PYTHON=1
30 -inherit python eutils
31 +inherit python eutils multilib
32
33 DESCRIPTION="automatic updater and package installer/remover for rpm systems"
34 HOMEPAGE="http://linux.duke.edu/projects/yum/"
35 @@ -42,9 +42,12 @@
36 }
37
38 pkg_postinst() {
39 - python_mod_optimize "${ROOT}"/usr/$(get_libdir)/python${PYVER}/site-packages/{yum,rpmUtils} "${ROOT}"/usr/share/yum-cli
40 + python_version
41 + python_mod_optimize \
42 + /usr/$(get_libdir)/python${PYVER}/site-packages/{yum,rpmUtils} \
43 + /usr/share/yum-cli
44 }
45
46 pkg_postrm() {
47 - python_mod_cleanup "${ROOT}"/usr/$(get_libdir)/python${PYVER}/site-packages/{yum,rpmUtils} "${ROOT}"/usr/share/yum-cli
48 + python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/{yum,rpmUtils} /usr/share/yum-cli
49 }
50
51
52
53 1.4 sys-apps/yum/yum-2.6.1.ebuild
54
55 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/yum/yum-2.6.1.ebuild?rev=1.4&view=markup
56 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/yum/yum-2.6.1.ebuild?rev=1.4&content-type=text/plain
57 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/yum/yum-2.6.1.ebuild?r1=1.3&r2=1.4
58
59 Index: yum-2.6.1.ebuild
60 ===================================================================
61 RCS file: /var/cvsroot/gentoo-x86/sys-apps/yum/yum-2.6.1.ebuild,v
62 retrieving revision 1.3
63 retrieving revision 1.4
64 diff -u -r1.3 -r1.4
65 --- yum-2.6.1.ebuild 12 Jul 2007 05:10:21 -0000 1.3
66 +++ yum-2.6.1.ebuild 29 May 2008 18:04:58 -0000 1.4
67 @@ -1,6 +1,6 @@
68 -# Copyright 1999-2006 Gentoo Foundation
69 +# Copyright 1999-2008 Gentoo Foundation
70 # Distributed under the terms of the GNU General Public License v2
71 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/yum/yum-2.6.1.ebuild,v 1.3 2007/07/12 05:10:21 mr_bones_ Exp $
72 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/yum/yum-2.6.1.ebuild,v 1.4 2008/05/29 18:04:58 hawking Exp $
73
74 inherit python distutils eutils
75
76 @@ -44,28 +44,26 @@
77 }
78
79 src_install() {
80 - make DESTDIR=${D} install || die "make install failed"
81 + make DESTDIR="${D}" install || die "make install failed"
82
83 dodoc README AUTHORS ChangeLog TODO
84 useq doc && dodoc PLUGINS
85
86 # Makefile explicitly compiles python files
87 - find ${D}/usr/ -name *.py[co] -exec rm {} \;
88 + find "${D}"/usr/ -name *.py[co] -exec rm {} \;
89
90 # yum's auto-update functionality doesn't make
91 # sense for a system managed by portage
92 - rm -rf ${D}/etc/cron.{daily,weekly}
93 - rm -rf ${D}/etc/{rc.d,yum}
94 + rm -rf "${D}"/etc/cron.{daily,weekly}
95 + rm -rf "${D}"/etc/{rc.d,yum}
96 }
97
98 pkg_postinst() {
99 - python_version
100 - python_mod_optimize ${ROOT}usr/share/${PN}-cli
101 + python_mod_optimize /usr/share/${PN}-cli
102 distutils_pkg_postinst
103 }
104
105 pkg_postrm() {
106 - python_version
107 - python_mod_cleanup ${ROOT}usr/share/${PN}-cli
108 + python_mod_cleanup /usr/share/${PN}-cli
109 distutils_pkg_postrm
110 }
111
112
113
114 1.6 sys-apps/yum/ChangeLog
115
116 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/yum/ChangeLog?rev=1.6&view=markup
117 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/yum/ChangeLog?rev=1.6&content-type=text/plain
118 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/yum/ChangeLog?r1=1.5&r2=1.6
119
120 Index: ChangeLog
121 ===================================================================
122 RCS file: /var/cvsroot/gentoo-x86/sys-apps/yum/ChangeLog,v
123 retrieving revision 1.5
124 retrieving revision 1.6
125 diff -u -r1.5 -r1.6
126 --- ChangeLog 6 Jan 2008 18:38:27 -0000 1.5
127 +++ ChangeLog 29 May 2008 18:04:58 -0000 1.6
128 @@ -1,6 +1,11 @@
129 # ChangeLog for sys-apps/yum
130 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
131 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/yum/ChangeLog,v 1.5 2008/01/06 18:38:27 vapier Exp $
132 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/yum/ChangeLog,v 1.6 2008/05/29 18:04:58 hawking Exp $
133 +
134 + 29 May 2008; Ali Polatel <hawking@g.o> yum-2.6.1.ebuild,
135 + yum-3.2.8.ebuild:
136 + python_mod_{cleanup,optimize} is ROOT aware. Remove redundant
137 + python_version in pkg_*. Quoting.
138
139 06 Jan 2008; Mike Frysinger <vapier@g.o> yum-3.2.8.ebuild:
140 Force python-2.5 as we need the sqlite stuff #204634.
141
142
143
144 --
145 gentoo-commits@l.g.o mailing list