1 |
arfrever 09/09/27 17:56:01 |
2 |
|
3 |
Modified: python-2.6.2-r2.ebuild python-3.1.1-r1.ebuild |
4 |
python-2.5.4-r3.ebuild ChangeLog |
5 |
python-2.4.6.ebuild |
6 |
Log: |
7 |
Enable "ncurses" and "readline" USE flags by default. Don't activate Python 2 when Python 3 is already active. Ensure that Python 2 is installed. |
8 |
(Portage version: 14444-svn/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.5 dev-lang/python/python-2.6.2-r2.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.6.2-r2.ebuild?rev=1.5&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.6.2-r2.ebuild?rev=1.5&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.6.2-r2.ebuild?r1=1.4&r2=1.5 |
16 |
|
17 |
Index: python-2.6.2-r2.ebuild |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.6.2-r2.ebuild,v |
20 |
retrieving revision 1.4 |
21 |
retrieving revision 1.5 |
22 |
diff -u -r1.4 -r1.5 |
23 |
--- python-2.6.2-r2.ebuild 24 Sep 2009 14:31:26 -0000 1.4 |
24 |
+++ python-2.6.2-r2.ebuild 27 Sep 2009 17:56:00 -0000 1.5 |
25 |
@@ -1,11 +1,6 @@ |
26 |
# Copyright 1999-2009 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.6.2-r2.ebuild,v 1.4 2009/09/24 14:31:26 arfrever Exp $ |
29 |
- |
30 |
-# NOTE about python-portage interactions : |
31 |
-# - Do not add a pkg_setup() check for a certain version of portage |
32 |
-# in dev-lang/python. It _WILL_ stop people installing from |
33 |
-# Gentoo 1.4 images. |
34 |
+# $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 $ |
35 |
|
36 |
EAPI="2" |
37 |
|
38 |
@@ -29,12 +24,12 @@ |
39 |
LICENSE="PSF-2.2" |
40 |
SLOT="2.6" |
41 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
42 |
-IUSE="-berkdb build doc elibc_uclibc examples gdbm ipv6 ncurses readline sqlite ssl +threads tk ucs2 wininst +xml" |
43 |
+IUSE="-berkdb build doc elibc_uclibc examples gdbm ipv6 +ncurses +readline sqlite ssl +threads tk ucs2 wininst +xml" |
44 |
|
45 |
# NOTE: dev-python/{elementtree,celementtree,pysqlite,ctypes} |
46 |
# do not conflict with the ones in python proper. - liquidx |
47 |
|
48 |
-RDEPEND=">=app-admin/eselect-python-20080925 |
49 |
+RDEPEND=">=app-admin/eselect-python-20090606 |
50 |
>=sys-libs/zlib-1.1.3 |
51 |
!build? ( |
52 |
berkdb? ( || ( |
53 |
@@ -59,8 +54,8 @@ |
54 |
!m68k? ( !mips? ( !sparc-fbsd? ( virtual/libffi ) ) )" |
55 |
DEPEND="${RDEPEND} |
56 |
!m68k? ( !mips? ( !sparc-fbsd? ( dev-util/pkgconfig ) ) )" |
57 |
-PDEPEND="${RDEPEND} app-admin/python-updater" |
58 |
RDEPEND+=" !build? ( app-misc/mime-types )" |
59 |
+PDEPEND="app-admin/python-updater" |
60 |
|
61 |
PROVIDE="virtual/python" |
62 |
|
63 |
@@ -256,7 +251,7 @@ |
64 |
sed -e "s:^OPT=.*:OPT=-DNDEBUG:" -i "${D}usr/$(get_libdir)/python${PYVER}/config/Makefile" |
65 |
|
66 |
if use build; then |
67 |
- rm -fr "${D}usr/$(get_libdir)/python${PYVER}/"{bsddb,email,encodings,lib-tk,sqlite3,test} |
68 |
+ rm -fr "${D}usr/$(get_libdir)/python${PYVER}/"{bsddb,email,lib-tk,sqlite3,test} |
69 |
else |
70 |
use elibc_uclibc && rm -fr "${D}usr/$(get_libdir)/python${PYVER}/"{bsddb/test,test} |
71 |
use berkdb || rm -fr "${D}usr/$(get_libdir)/python${PYVER}/"{bsddb,test/test_bsddb*} |
72 |
@@ -287,7 +282,13 @@ |
73 |
} |
74 |
|
75 |
pkg_postinst() { |
76 |
- eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 |
77 |
+ local ignored_python_slots |
78 |
+ [[ "$(eselect python show)" == "python2."* ]] && ignored_python_slots="--ignore 3.0 --ignore 3.1 --ignore 3.2" |
79 |
+ |
80 |
+ # Create python2 symlink. |
81 |
+ eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 > /dev/null |
82 |
+ |
83 |
+ eselect python update ${ignored_python_slots} |
84 |
|
85 |
python_mod_optimize -x "(site-packages|test)" /usr/lib/python${PYVER} |
86 |
[[ "$(get_libdir)" != "lib" ]] && python_mod_optimize -x "(site-packages|test)" /usr/$(get_libdir)/python${PYVER} |
87 |
@@ -297,7 +298,7 @@ |
88 |
ewarn "\e[1;31m************************************************************************\e[0m" |
89 |
ewarn |
90 |
ewarn "You have just upgraded from an older version of Python." |
91 |
- ewarn "You should run 'python-updater' to rebuild Python modules." |
92 |
+ ewarn "You should run 'python-updater \${options}' to rebuild Python modules." |
93 |
ewarn |
94 |
ewarn "\e[1;31m************************************************************************\e[0m" |
95 |
ewarn |
96 |
@@ -306,7 +307,13 @@ |
97 |
} |
98 |
|
99 |
pkg_postrm() { |
100 |
- eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 |
101 |
+ local ignored_python_slots |
102 |
+ [[ "$(eselect python show)" == "python2."* ]] && ignored_python_slots="--ignore 3.0 --ignore 3.1 --ignore 3.2" |
103 |
+ |
104 |
+ # Create python2 symlink. |
105 |
+ eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 > /dev/null |
106 |
+ |
107 |
+ eselect python update ${ignored_python_slots} |
108 |
|
109 |
python_mod_cleanup /usr/lib/python${PYVER} |
110 |
[[ "$(get_libdir)" != "lib" ]] && python_mod_cleanup /usr/$(get_libdir)/python${PYVER} |
111 |
|
112 |
|
113 |
|
114 |
1.5 dev-lang/python/python-3.1.1-r1.ebuild |
115 |
|
116 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-3.1.1-r1.ebuild?rev=1.5&view=markup |
117 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-3.1.1-r1.ebuild?rev=1.5&content-type=text/plain |
118 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-3.1.1-r1.ebuild?r1=1.4&r2=1.5 |
119 |
|
120 |
Index: python-3.1.1-r1.ebuild |
121 |
=================================================================== |
122 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/python/python-3.1.1-r1.ebuild,v |
123 |
retrieving revision 1.4 |
124 |
retrieving revision 1.5 |
125 |
diff -u -r1.4 -r1.5 |
126 |
--- python-3.1.1-r1.ebuild 25 Sep 2009 17:20:04 -0000 1.4 |
127 |
+++ python-3.1.1-r1.ebuild 27 Sep 2009 17:56:00 -0000 1.5 |
128 |
@@ -1,6 +1,6 @@ |
129 |
# Copyright 1999-2009 Gentoo Foundation |
130 |
# Distributed under the terms of the GNU General Public License v2 |
131 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-3.1.1-r1.ebuild,v 1.4 2009/09/25 17:20:04 zmedico Exp $ |
132 |
+# $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 $ |
133 |
|
134 |
EAPI="2" |
135 |
|
136 |
@@ -24,25 +24,28 @@ |
137 |
LICENSE="PSF-2.2" |
138 |
SLOT="3.1" |
139 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
140 |
-IUSE="build doc elibc_uclibc examples gdbm ipv6 ncurses readline sqlite ssl +threads tk ucs2 wininst +xml" |
141 |
+IUSE="build doc elibc_uclibc examples gdbm ipv6 +ncurses +readline sqlite ssl +threads tk ucs2 wininst +xml" |
142 |
|
143 |
-RDEPEND=">=app-admin/eselect-python-20080925 |
144 |
+RDEPEND=">=app-admin/eselect-python-20090606 |
145 |
>=sys-libs/zlib-1.1.3 |
146 |
!build? ( |
147 |
- sqlite? ( >=dev-db/sqlite-3 ) |
148 |
- tk? ( >=dev-lang/tk-8.0 ) |
149 |
- ncurses? ( >=sys-libs/ncurses-5.2 |
150 |
- readline? ( >=sys-libs/readline-4.1 ) ) |
151 |
+ doc? ( dev-python/python-docs:${SLOT} ) |
152 |
gdbm? ( sys-libs/gdbm ) |
153 |
+ ncurses? ( |
154 |
+ >=sys-libs/ncurses-5.2 |
155 |
+ readline? ( >=sys-libs/readline-4.1 ) |
156 |
+ ) |
157 |
+ sqlite? ( >=dev-db/sqlite-3 ) |
158 |
ssl? ( dev-libs/openssl ) |
159 |
- doc? ( dev-python/python-docs:${SLOT} ) |
160 |
+ tk? ( >=dev-lang/tk-8.0 ) |
161 |
xml? ( >=dev-libs/expat-2 ) |
162 |
) |
163 |
!m68k? ( !mips? ( !sparc-fbsd? ( virtual/libffi ) ) )" |
164 |
DEPEND="${RDEPEND} |
165 |
!m68k? ( !mips? ( !sparc-fbsd? ( dev-util/pkgconfig ) ) )" |
166 |
-PDEPEND="${RDEPEND} app-admin/python-updater" |
167 |
RDEPEND+=" !build? ( app-misc/mime-types )" |
168 |
+PDEPEND="app-admin/python-updater |
169 |
+ =dev-lang/python-2*" |
170 |
|
171 |
PROVIDE="virtual/python" |
172 |
|
173 |
@@ -183,6 +186,7 @@ |
174 |
|
175 |
# test_debuglevel from test_telnetlib.py fails sometimes with |
176 |
# socket.error: [Errno 104] Connection reset by peer |
177 |
+ # http://bugs.python.org/issue6748 |
178 |
skip_tests+=" telnetlib" |
179 |
|
180 |
# test_ctypes fails with PAX kernel (bug #234498). |
181 |
@@ -245,27 +249,58 @@ |
182 |
newconfd "${FILESDIR}/pydoc.conf" pydoc-${SLOT} |
183 |
} |
184 |
|
185 |
+pkg_preinst() { |
186 |
+ if has_version "<${CATEGORY}/${PN}-${SLOT}" && ! has_version ">=${CATEGORY}/${PN}-${SLOT}_alpha"; then |
187 |
+ # Delete this check after global switching to Python 3. |
188 |
+ if [[ "$(eselect python show)" == "python3."* ]]; then |
189 |
+ python_updater_warning="1" |
190 |
+ fi |
191 |
+ fi |
192 |
+} |
193 |
+ |
194 |
pkg_postinst() { |
195 |
- # Update symlink temporarily for byte-compiling. |
196 |
- eselect python update |
197 |
+ local ignored_python_slots |
198 |
+ [[ "$(eselect python show)" == "python2."* ]] && ignored_python_slots="--ignore 3.0 --ignore 3.1 --ignore 3.2" |
199 |
+ |
200 |
+ # Create python3 symlink. |
201 |
+ eselect python update > /dev/null |
202 |
+ |
203 |
+ eselect python update ${ignored_python_slots} |
204 |
|
205 |
python_mod_optimize -x "(site-packages|test)" /usr/lib/python${PYVER} |
206 |
[[ "$(get_libdir)" != "lib" ]] && python_mod_optimize -x "(site-packages|test)" /usr/$(get_libdir)/python${PYVER} |
207 |
|
208 |
- # Update symlink back to old version. |
209 |
- # Remove this after testing is done. |
210 |
- eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 |
211 |
- |
212 |
- ewarn |
213 |
- ewarn "WARNING!" |
214 |
- ewarn "Many Python modules haven't been ported yet to Python 3.*." |
215 |
- ewarn "Python 3 hasn't been activated and Python wrapper is still configured to use Python 2." |
216 |
- ewarn |
217 |
- ebeep |
218 |
+ if [[ "$(eselect python show)" == "python2."* ]]; then |
219 |
+ ewarn |
220 |
+ ewarn "WARNING!" |
221 |
+ ewarn "Many Python modules haven't been ported yet to Python 3.*." |
222 |
+ ewarn "Python 3 hasn't been activated and Python wrapper is still configured to use Python 2." |
223 |
+ ewarn "You can manually activate Python ${SLOT} using \`eselect python set python${SLOT}\`." |
224 |
+ ewarn |
225 |
+ ebeep 6 |
226 |
+ fi |
227 |
+ |
228 |
+ if [[ "${python_updater_warning}" == "1" ]]; then |
229 |
+ ewarn |
230 |
+ ewarn "\e[1;31m************************************************************************\e[0m" |
231 |
+ ewarn |
232 |
+ ewarn "You have just upgraded from an older version of Python." |
233 |
+ ewarn "You should run 'python-updater \${options}' to rebuild Python modules." |
234 |
+ ewarn |
235 |
+ ewarn "\e[1;31m************************************************************************\e[0m" |
236 |
+ ewarn |
237 |
+ ebeep 12 |
238 |
+ fi |
239 |
} |
240 |
|
241 |
pkg_postrm() { |
242 |
- eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 |
243 |
+ local ignored_python_slots |
244 |
+ [[ "$(eselect python show)" == "python2."* ]] && ignored_python_slots="--ignore 3.0 --ignore 3.1 --ignore 3.2" |
245 |
+ |
246 |
+ # Create python3 symlink. |
247 |
+ eselect python update > /dev/null |
248 |
+ |
249 |
+ eselect python update ${ignored_python_slots} |
250 |
|
251 |
python_mod_cleanup /usr/lib/python${PYVER} |
252 |
[[ "$(get_libdir)" != "lib" ]] && python_mod_cleanup /usr/$(get_libdir)/python${PYVER} |
253 |
|
254 |
|
255 |
|
256 |
1.19 dev-lang/python/python-2.5.4-r3.ebuild |
257 |
|
258 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.5.4-r3.ebuild?rev=1.19&view=markup |
259 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.5.4-r3.ebuild?rev=1.19&content-type=text/plain |
260 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.5.4-r3.ebuild?r1=1.18&r2=1.19 |
261 |
|
262 |
Index: python-2.5.4-r3.ebuild |
263 |
=================================================================== |
264 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.5.4-r3.ebuild,v |
265 |
retrieving revision 1.18 |
266 |
retrieving revision 1.19 |
267 |
diff -u -r1.18 -r1.19 |
268 |
--- python-2.5.4-r3.ebuild 23 Sep 2009 15:29:49 -0000 1.18 |
269 |
+++ python-2.5.4-r3.ebuild 27 Sep 2009 17:56:00 -0000 1.19 |
270 |
@@ -1,11 +1,6 @@ |
271 |
# Copyright 1999-2009 Gentoo Foundation |
272 |
# Distributed under the terms of the GNU General Public License v2 |
273 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.5.4-r3.ebuild,v 1.18 2009/09/23 15:29:49 arfrever Exp $ |
274 |
- |
275 |
-# NOTE about python-portage interactions : |
276 |
-# - Do not add a pkg_setup() check for a certain version of portage |
277 |
-# in dev-lang/python. It _WILL_ stop people installing from |
278 |
-# Gentoo 1.4 images. |
279 |
+# $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 $ |
280 |
|
281 |
EAPI="1" |
282 |
|
283 |
@@ -29,12 +24,12 @@ |
284 |
LICENSE="PSF-2.2" |
285 |
SLOT="2.5" |
286 |
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd" |
287 |
-IUSE="-berkdb build doc elibc_uclibc examples gdbm ipv6 ncurses readline sqlite ssl +threads tk ucs2 wininst +xml" |
288 |
+IUSE="-berkdb build doc elibc_uclibc examples gdbm ipv6 +ncurses +readline sqlite ssl +threads tk ucs2 wininst +xml" |
289 |
|
290 |
# NOTE: dev-python/{elementtree,celementtree,pysqlite,ctypes} |
291 |
# do not conflict with the ones in python proper. - liquidx |
292 |
|
293 |
-DEPEND=">=app-admin/eselect-python-20080925 |
294 |
+RDEPEND=">=app-admin/eselect-python-20090606 |
295 |
>=sys-libs/zlib-1.1.3 |
296 |
!build? ( |
297 |
berkdb? ( || ( |
298 |
@@ -54,8 +49,9 @@ |
299 |
tk? ( >=dev-lang/tk-8.0 ) |
300 |
xml? ( >=dev-libs/expat-2 ) |
301 |
)" |
302 |
-RDEPEND="${DEPEND} app-misc/mime-types" |
303 |
-PDEPEND="${DEPEND} app-admin/python-updater" |
304 |
+DEPEND="${RDEPEND}" |
305 |
+RDEPEND+=" !build? ( app-misc/mime-types )" |
306 |
+PDEPEND="app-admin/python-updater" |
307 |
|
308 |
PROVIDE="virtual/python" |
309 |
|
310 |
@@ -141,8 +137,8 @@ |
311 |
# doing. Enabling UCS2 support will break your existing python |
312 |
# modules |
313 |
use ucs2 \ |
314 |
- && myconf="${myconf} --enable-unicode=ucs2" \ |
315 |
- || myconf="${myconf} --enable-unicode=ucs4" |
316 |
+ && myconf+=" --enable-unicode=ucs2" \ |
317 |
+ || myconf+=" --enable-unicode=ucs4" |
318 |
|
319 |
filter-flags -malign-double |
320 |
|
321 |
@@ -247,7 +243,7 @@ |
322 |
sed -e "s:^OPT=.*:OPT=-DNDEBUG:" -i "${D}usr/$(get_libdir)/python${PYVER}/config/Makefile" |
323 |
|
324 |
if use build; then |
325 |
- rm -fr "${D}usr/$(get_libdir)/python${PYVER}/"{bsddb,email,encodings,lib-tk,sqlite3,test} |
326 |
+ rm -fr "${D}usr/$(get_libdir)/python${PYVER}/"{bsddb,email,lib-tk,sqlite3,test} |
327 |
else |
328 |
use elibc_uclibc && rm -fr "${D}usr/$(get_libdir)/python${PYVER}/"{bsddb/test,test} |
329 |
use berkdb || rm -fr "${D}usr/$(get_libdir)/python${PYVER}/"{bsddb,test/test_bsddb*} |
330 |
@@ -273,7 +269,13 @@ |
331 |
} |
332 |
|
333 |
pkg_postinst() { |
334 |
- eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 |
335 |
+ local ignored_python_slots |
336 |
+ [[ "$(eselect python show)" == "python2."* ]] && ignored_python_slots="--ignore 3.0 --ignore 3.1 --ignore 3.2" |
337 |
+ |
338 |
+ # Create python2 symlink. |
339 |
+ eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 > /dev/null |
340 |
+ |
341 |
+ eselect python update ${ignored_python_slots} |
342 |
|
343 |
python_mod_optimize -x "(site-packages|test)" /usr/lib/python${PYVER} |
344 |
[[ "$(get_libdir)" != "lib" ]] && python_mod_optimize -x "(site-packages|test)" /usr/$(get_libdir)/python${PYVER} |
345 |
@@ -283,7 +285,7 @@ |
346 |
ewarn "\e[1;31m************************************************************************\e[0m" |
347 |
ewarn |
348 |
ewarn "You have just upgraded from an older version of Python." |
349 |
- ewarn "You should run 'python-updater' to rebuild Python modules." |
350 |
+ ewarn "You should run 'python-updater \${options}' to rebuild Python modules." |
351 |
ewarn |
352 |
ewarn "\e[1;31m************************************************************************\e[0m" |
353 |
ewarn |
354 |
@@ -292,7 +294,13 @@ |
355 |
} |
356 |
|
357 |
pkg_postrm() { |
358 |
- eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 |
359 |
+ local ignored_python_slots |
360 |
+ [[ "$(eselect python show)" == "python2."* ]] && ignored_python_slots="--ignore 3.0 --ignore 3.1 --ignore 3.2" |
361 |
+ |
362 |
+ # Create python2 symlink. |
363 |
+ eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 > /dev/null |
364 |
+ |
365 |
+ eselect python update ${ignored_python_slots} |
366 |
|
367 |
python_mod_cleanup /usr/lib/python${PYVER} |
368 |
[[ "$(get_libdir)" != "lib" ]] && python_mod_cleanup /usr/$(get_libdir)/python${PYVER} |
369 |
|
370 |
|
371 |
|
372 |
1.421 dev-lang/python/ChangeLog |
373 |
|
374 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/ChangeLog?rev=1.421&view=markup |
375 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/ChangeLog?rev=1.421&content-type=text/plain |
376 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/ChangeLog?r1=1.420&r2=1.421 |
377 |
|
378 |
Index: ChangeLog |
379 |
=================================================================== |
380 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/python/ChangeLog,v |
381 |
retrieving revision 1.420 |
382 |
retrieving revision 1.421 |
383 |
diff -u -r1.420 -r1.421 |
384 |
--- ChangeLog 27 Sep 2009 14:30:35 -0000 1.420 |
385 |
+++ ChangeLog 27 Sep 2009 17:56:00 -0000 1.421 |
386 |
@@ -1,6 +1,13 @@ |
387 |
# ChangeLog for dev-lang/python |
388 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
389 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/ChangeLog,v 1.420 2009/09/27 14:30:35 nixnut Exp $ |
390 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/ChangeLog,v 1.421 2009/09/27 17:56:00 arfrever Exp $ |
391 |
+ |
392 |
+ 27 Sep 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
393 |
+ python-2.4.6.ebuild, python-2.5.4-r3.ebuild, python-2.6.2-r2.ebuild, |
394 |
+ python-3.1.1-r1.ebuild: |
395 |
+ Enable "ncurses" and "readline" USE flags by default. Don't activate |
396 |
+ Python 2 when Python 3 is already active. Ensure that Python 2 is |
397 |
+ installed. |
398 |
|
399 |
27 Sep 2009; nixnut <nixnut@g.o> python-2.6.2-r1.ebuild: |
400 |
ppc stable #277645 |
401 |
|
402 |
|
403 |
|
404 |
1.17 dev-lang/python/python-2.4.6.ebuild |
405 |
|
406 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.4.6.ebuild?rev=1.17&view=markup |
407 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.4.6.ebuild?rev=1.17&content-type=text/plain |
408 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.4.6.ebuild?r1=1.16&r2=1.17 |
409 |
|
410 |
Index: python-2.4.6.ebuild |
411 |
=================================================================== |
412 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.4.6.ebuild,v |
413 |
retrieving revision 1.16 |
414 |
retrieving revision 1.17 |
415 |
diff -u -r1.16 -r1.17 |
416 |
--- python-2.4.6.ebuild 23 Sep 2009 15:29:49 -0000 1.16 |
417 |
+++ python-2.4.6.ebuild 27 Sep 2009 17:56:00 -0000 1.17 |
418 |
@@ -1,11 +1,6 @@ |
419 |
# Copyright 1999-2009 Gentoo Foundation |
420 |
# Distributed under the terms of the GNU General Public License v2 |
421 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.4.6.ebuild,v 1.16 2009/09/23 15:29:49 arfrever Exp $ |
422 |
- |
423 |
-# NOTE about python-portage interactions : |
424 |
-# - Do not add a pkg_setup() check for a certain version of portage |
425 |
-# in dev-lang/python. It _WILL_ stop people installing from |
426 |
-# Gentoo 1.4 images. |
427 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.4.6.ebuild,v 1.17 2009/09/27 17:56:00 arfrever Exp $ |
428 |
|
429 |
EAPI="1" |
430 |
|
431 |
@@ -29,9 +24,9 @@ |
432 |
LICENSE="PSF-2.2" |
433 |
SLOT="2.4" |
434 |
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd" |
435 |
-IUSE="-berkdb bootstrap build +cxx doc elibc_uclibc examples gdbm ipv6 ncurses readline ssl +threads tk ucs2 wininst +xml" |
436 |
+IUSE="-berkdb bootstrap build +cxx doc elibc_uclibc examples gdbm ipv6 +ncurses +readline ssl +threads tk ucs2 wininst +xml" |
437 |
|
438 |
-DEPEND=">=app-admin/eselect-python-20080925 |
439 |
+RDEPEND=">=app-admin/eselect-python-20090606 |
440 |
>=sys-libs/zlib-1.1.3 |
441 |
!build? ( |
442 |
berkdb? ( || ( |
443 |
@@ -49,13 +44,9 @@ |
444 |
tk? ( >=dev-lang/tk-8.0 ) |
445 |
xml? ( dev-libs/expat ) |
446 |
)" |
447 |
- |
448 |
-# NOTE: changed RDEPEND to PDEPEND to resolve bug 88777. - kloeri |
449 |
-# NOTE: added blocker to enforce correct merge order for bug 88777. - zmedico |
450 |
- |
451 |
-RDEPEND="${DEPEND} build? ( !dev-python/pycrypto ) |
452 |
- app-misc/mime-types" |
453 |
-PDEPEND="${DEPEND} app-admin/python-updater" |
454 |
+DEPEND="${RDEPEND}" |
455 |
+RDEPEND+=" !build? ( app-misc/mime-types )" |
456 |
+PDEPEND="app-admin/python-updater" |
457 |
|
458 |
PROVIDE="virtual/python" |
459 |
|
460 |
@@ -143,8 +134,8 @@ |
461 |
# doing. Enabling UCS2 support will break your existing python |
462 |
# modules |
463 |
use ucs2 \ |
464 |
- && myconf="${myconf} --enable-unicode=ucs2" \ |
465 |
- || myconf="${myconf} --enable-unicode=ucs4" |
466 |
+ && myconf+=" --enable-unicode=ucs2" \ |
467 |
+ || myconf+=" --enable-unicode=ucs4" |
468 |
|
469 |
filter-flags -malign-double |
470 |
|
471 |
@@ -248,7 +239,7 @@ |
472 |
|
473 |
# Python 2.4 partially doesn't respect $(get_libdir). |
474 |
if use build; then |
475 |
- rm -fr "${D}"usr/lib*/python${PYVER}/{bsddb,email,encodings,lib-tk,test} |
476 |
+ rm -fr "${D}"usr/lib*/python${PYVER}/{bsddb,email,lib-tk,test} |
477 |
else |
478 |
use elibc_uclibc && rm -fr "${D}"usr/lib*/python${PYVER}/{bsddb/test,test} |
479 |
use berkdb || rm -fr "${D}"usr/lib*/python${PYVER}/{bsddb,test/test_bsddb*} |
480 |
@@ -273,7 +264,13 @@ |
481 |
} |
482 |
|
483 |
pkg_postinst() { |
484 |
- eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 |
485 |
+ local ignored_python_slots |
486 |
+ [[ "$(eselect python show)" == "python2."* ]] && ignored_python_slots="--ignore 3.0 --ignore 3.1 --ignore 3.2" |
487 |
+ |
488 |
+ # Create python2 symlink. |
489 |
+ eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 > /dev/null |
490 |
+ |
491 |
+ eselect python update ${ignored_python_slots} |
492 |
|
493 |
python_mod_optimize -x "(site-packages|test)" /usr/lib/python${PYVER} |
494 |
[[ "$(get_libdir)" != "lib" ]] && python_mod_optimize -x "(site-packages|test)" /usr/$(get_libdir)/python${PYVER} |
495 |
@@ -283,7 +280,7 @@ |
496 |
ewarn "\e[1;31m************************************************************************\e[0m" |
497 |
ewarn |
498 |
ewarn "You have just upgraded from an older version of Python." |
499 |
- ewarn "You should run 'python-updater' to rebuild Python modules." |
500 |
+ ewarn "You should run 'python-updater \${options}' to rebuild Python modules." |
501 |
ewarn |
502 |
ewarn "\e[1;31m************************************************************************\e[0m" |
503 |
ewarn |
504 |
@@ -292,7 +289,13 @@ |
505 |
} |
506 |
|
507 |
pkg_postrm() { |
508 |
- eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 |
509 |
+ local ignored_python_slots |
510 |
+ [[ "$(eselect python show)" == "python2."* ]] && ignored_python_slots="--ignore 3.0 --ignore 3.1 --ignore 3.2" |
511 |
+ |
512 |
+ # Create python2 symlink. |
513 |
+ eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 > /dev/null |
514 |
+ |
515 |
+ eselect python update ${ignored_python_slots} |
516 |
|
517 |
python_mod_cleanup /usr/lib/python${PYVER} |
518 |
[[ "$(get_libdir)" != "lib" ]] && python_mod_cleanup /usr/$(get_libdir)/python${PYVER} |