Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/python: python-2.6.2-r2.ebuild python-3.1.1-r1.ebuild python-2.5.4-r3.ebuild python-2.4.6.ebuild
Date: Sun, 27 Sep 2009 18:33:41
Message-Id: E1MryZ0-00058t-JY@stork.gentoo.org
1 arfrever 09/09/27 18:33:38
2
3 Modified: python-2.6.2-r2.ebuild python-3.1.1-r1.ebuild
4 python-2.5.4-r3.ebuild python-2.4.6.ebuild
5 Log:
6 Don't duplicate code.
7 (Portage version: 14444-svn/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.6 dev-lang/python/python-2.6.2-r2.ebuild
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.6.2-r2.ebuild?rev=1.6&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.6.2-r2.ebuild?rev=1.6&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.6.2-r2.ebuild?r1=1.5&r2=1.6
15
16 Index: python-2.6.2-r2.ebuild
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.6.2-r2.ebuild,v
19 retrieving revision 1.5
20 retrieving revision 1.6
21 diff -u -r1.5 -r1.6
22 --- python-2.6.2-r2.ebuild 27 Sep 2009 17:56:00 -0000 1.5
23 +++ python-2.6.2-r2.ebuild 27 Sep 2009 18:33:37 -0000 1.6
24 @@ -1,6 +1,6 @@
25 # Copyright 1999-2009 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.6.2-r2.ebuild,v 1.5 2009/09/27 17:56:00 arfrever Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.6.2-r2.ebuild,v 1.6 2009/09/27 18:33:37 arfrever Exp $
29
30 EAPI="2"
31
32 @@ -281,7 +281,7 @@
33 fi
34 }
35
36 -pkg_postinst() {
37 +eselect_python_update() {
38 local ignored_python_slots
39 [[ "$(eselect python show)" == "python2."* ]] && ignored_python_slots="--ignore 3.0 --ignore 3.1 --ignore 3.2"
40
41 @@ -289,6 +289,10 @@
42 eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 > /dev/null
43
44 eselect python update ${ignored_python_slots}
45 +}
46 +
47 +pkg_postinst() {
48 + eselect_python_update
49
50 python_mod_optimize -x "(site-packages|test)" /usr/lib/python${PYVER}
51 [[ "$(get_libdir)" != "lib" ]] && python_mod_optimize -x "(site-packages|test)" /usr/$(get_libdir)/python${PYVER}
52 @@ -307,13 +311,7 @@
53 }
54
55 pkg_postrm() {
56 - local ignored_python_slots
57 - [[ "$(eselect python show)" == "python2."* ]] && ignored_python_slots="--ignore 3.0 --ignore 3.1 --ignore 3.2"
58 -
59 - # Create python2 symlink.
60 - eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 > /dev/null
61 -
62 - eselect python update ${ignored_python_slots}
63 + eselect_python_update
64
65 python_mod_cleanup /usr/lib/python${PYVER}
66 [[ "$(get_libdir)" != "lib" ]] && python_mod_cleanup /usr/$(get_libdir)/python${PYVER}
67
68
69
70 1.6 dev-lang/python/python-3.1.1-r1.ebuild
71
72 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-3.1.1-r1.ebuild?rev=1.6&view=markup
73 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-3.1.1-r1.ebuild?rev=1.6&content-type=text/plain
74 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-3.1.1-r1.ebuild?r1=1.5&r2=1.6
75
76 Index: python-3.1.1-r1.ebuild
77 ===================================================================
78 RCS file: /var/cvsroot/gentoo-x86/dev-lang/python/python-3.1.1-r1.ebuild,v
79 retrieving revision 1.5
80 retrieving revision 1.6
81 diff -u -r1.5 -r1.6
82 --- python-3.1.1-r1.ebuild 27 Sep 2009 17:56:00 -0000 1.5
83 +++ python-3.1.1-r1.ebuild 27 Sep 2009 18:33:37 -0000 1.6
84 @@ -1,6 +1,6 @@
85 # Copyright 1999-2009 Gentoo Foundation
86 # Distributed under the terms of the GNU General Public License v2
87 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-3.1.1-r1.ebuild,v 1.5 2009/09/27 17:56:00 arfrever Exp $
88 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-3.1.1-r1.ebuild,v 1.6 2009/09/27 18:33:37 arfrever Exp $
89
90 EAPI="2"
91
92 @@ -258,7 +258,7 @@
93 fi
94 }
95
96 -pkg_postinst() {
97 +eselect_python_update() {
98 local ignored_python_slots
99 [[ "$(eselect python show)" == "python2."* ]] && ignored_python_slots="--ignore 3.0 --ignore 3.1 --ignore 3.2"
100
101 @@ -266,6 +266,10 @@
102 eselect python update > /dev/null
103
104 eselect python update ${ignored_python_slots}
105 +}
106 +
107 +pkg_postinst() {
108 + eselect_python_update
109
110 python_mod_optimize -x "(site-packages|test)" /usr/lib/python${PYVER}
111 [[ "$(get_libdir)" != "lib" ]] && python_mod_optimize -x "(site-packages|test)" /usr/$(get_libdir)/python${PYVER}
112 @@ -294,13 +298,7 @@
113 }
114
115 pkg_postrm() {
116 - local ignored_python_slots
117 - [[ "$(eselect python show)" == "python2."* ]] && ignored_python_slots="--ignore 3.0 --ignore 3.1 --ignore 3.2"
118 -
119 - # Create python3 symlink.
120 - eselect python update > /dev/null
121 -
122 - eselect python update ${ignored_python_slots}
123 + eselect_python_update
124
125 python_mod_cleanup /usr/lib/python${PYVER}
126 [[ "$(get_libdir)" != "lib" ]] && python_mod_cleanup /usr/$(get_libdir)/python${PYVER}
127
128
129
130 1.20 dev-lang/python/python-2.5.4-r3.ebuild
131
132 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.5.4-r3.ebuild?rev=1.20&view=markup
133 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.5.4-r3.ebuild?rev=1.20&content-type=text/plain
134 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.5.4-r3.ebuild?r1=1.19&r2=1.20
135
136 Index: python-2.5.4-r3.ebuild
137 ===================================================================
138 RCS file: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.5.4-r3.ebuild,v
139 retrieving revision 1.19
140 retrieving revision 1.20
141 diff -u -r1.19 -r1.20
142 --- python-2.5.4-r3.ebuild 27 Sep 2009 17:56:00 -0000 1.19
143 +++ python-2.5.4-r3.ebuild 27 Sep 2009 18:33:37 -0000 1.20
144 @@ -1,6 +1,6 @@
145 # Copyright 1999-2009 Gentoo Foundation
146 # Distributed under the terms of the GNU General Public License v2
147 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.5.4-r3.ebuild,v 1.19 2009/09/27 17:56:00 arfrever Exp $
148 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.5.4-r3.ebuild,v 1.20 2009/09/27 18:33:37 arfrever Exp $
149
150 EAPI="1"
151
152 @@ -268,7 +268,7 @@
153 fi
154 }
155
156 -pkg_postinst() {
157 +eselect_python_update() {
158 local ignored_python_slots
159 [[ "$(eselect python show)" == "python2."* ]] && ignored_python_slots="--ignore 3.0 --ignore 3.1 --ignore 3.2"
160
161 @@ -276,6 +276,10 @@
162 eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 > /dev/null
163
164 eselect python update ${ignored_python_slots}
165 +}
166 +
167 +pkg_postinst() {
168 + eselect_python_update
169
170 python_mod_optimize -x "(site-packages|test)" /usr/lib/python${PYVER}
171 [[ "$(get_libdir)" != "lib" ]] && python_mod_optimize -x "(site-packages|test)" /usr/$(get_libdir)/python${PYVER}
172 @@ -294,13 +298,7 @@
173 }
174
175 pkg_postrm() {
176 - local ignored_python_slots
177 - [[ "$(eselect python show)" == "python2."* ]] && ignored_python_slots="--ignore 3.0 --ignore 3.1 --ignore 3.2"
178 -
179 - # Create python2 symlink.
180 - eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 > /dev/null
181 -
182 - eselect python update ${ignored_python_slots}
183 + eselect_python_update
184
185 python_mod_cleanup /usr/lib/python${PYVER}
186 [[ "$(get_libdir)" != "lib" ]] && python_mod_cleanup /usr/$(get_libdir)/python${PYVER}
187
188
189
190 1.18 dev-lang/python/python-2.4.6.ebuild
191
192 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.4.6.ebuild?rev=1.18&view=markup
193 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.4.6.ebuild?rev=1.18&content-type=text/plain
194 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.4.6.ebuild?r1=1.17&r2=1.18
195
196 Index: python-2.4.6.ebuild
197 ===================================================================
198 RCS file: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.4.6.ebuild,v
199 retrieving revision 1.17
200 retrieving revision 1.18
201 diff -u -r1.17 -r1.18
202 --- python-2.4.6.ebuild 27 Sep 2009 17:56:00 -0000 1.17
203 +++ python-2.4.6.ebuild 27 Sep 2009 18:33:37 -0000 1.18
204 @@ -1,6 +1,6 @@
205 # Copyright 1999-2009 Gentoo Foundation
206 # Distributed under the terms of the GNU General Public License v2
207 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.4.6.ebuild,v 1.17 2009/09/27 17:56:00 arfrever Exp $
208 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.4.6.ebuild,v 1.18 2009/09/27 18:33:37 arfrever Exp $
209
210 EAPI="1"
211
212 @@ -263,7 +263,7 @@
213 fi
214 }
215
216 -pkg_postinst() {
217 +eselect_python_update() {
218 local ignored_python_slots
219 [[ "$(eselect python show)" == "python2."* ]] && ignored_python_slots="--ignore 3.0 --ignore 3.1 --ignore 3.2"
220
221 @@ -271,6 +271,10 @@
222 eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 > /dev/null
223
224 eselect python update ${ignored_python_slots}
225 +}
226 +
227 +pkg_postinst() {
228 + eselect_python_update
229
230 python_mod_optimize -x "(site-packages|test)" /usr/lib/python${PYVER}
231 [[ "$(get_libdir)" != "lib" ]] && python_mod_optimize -x "(site-packages|test)" /usr/$(get_libdir)/python${PYVER}
232 @@ -289,13 +293,7 @@
233 }
234
235 pkg_postrm() {
236 - local ignored_python_slots
237 - [[ "$(eselect python show)" == "python2."* ]] && ignored_python_slots="--ignore 3.0 --ignore 3.1 --ignore 3.2"
238 -
239 - # Create python2 symlink.
240 - eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 > /dev/null
241 -
242 - eselect python update ${ignored_python_slots}
243 + eselect_python_update
244
245 python_mod_cleanup /usr/lib/python${PYVER}
246 [[ "$(get_libdir)" != "lib" ]] && python_mod_cleanup /usr/$(get_libdir)/python${PYVER}