Gentoo Archives: gentoo-commits

From: "Ali Polatel (hawking)" <hawking@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/python: python-2.3.5-r2.ebuild python-2.3.5-r3.ebuild python-2.3.6-r3.ebuild ChangeLog python-2.3.6.ebuild python-2.4.4-r5.ebuild python-2.5.2-r1.ebuild python-2.4.4-r4.ebuild python-2.5.1-r2.ebuild python-2.5.2.ebuild python-2.5.1-r3.ebuild python-2.5.1-r4.ebuild python-2.3.6-r2.ebuild python-2.4.4-r7.ebuild python-2.4.4-r8.ebuild python-2.5.1-r5.ebuild
Date: Fri, 18 Apr 2008 22:23:31
Message-Id: E1JmyzO-0001cU-8y@stork.gentoo.org
1 hawking 08/04/18 22:23:26
2
3 Modified: python-2.3.5-r2.ebuild python-2.3.5-r3.ebuild
4 python-2.3.6-r3.ebuild ChangeLog
5 python-2.3.6.ebuild python-2.4.4-r5.ebuild
6 Added: python-2.5.2-r1.ebuild
7 Removed: python-2.4.4-r4.ebuild python-2.5.1-r2.ebuild
8 python-2.5.2.ebuild python-2.5.1-r3.ebuild
9 python-2.5.1-r4.ebuild python-2.3.6-r2.ebuild
10 python-2.4.4-r7.ebuild python-2.4.4-r8.ebuild
11 python-2.5.1-r5.ebuild
12 Log:
13 Revbump. Backported upstream patches fixing many threading issues and infinite recursions. Dropped old. Quoting.
14 (Portage version: 2.1.5_rc4)
15
16 Revision Changes Path
17 1.20 dev-lang/python/python-2.3.5-r2.ebuild
18
19 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.3.5-r2.ebuild?rev=1.20&view=markup
20 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.3.5-r2.ebuild?rev=1.20&content-type=text/plain
21 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.3.5-r2.ebuild?r1=1.19&r2=1.20
22
23 Index: python-2.3.5-r2.ebuild
24 ===================================================================
25 RCS file: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.3.5-r2.ebuild,v
26 retrieving revision 1.19
27 retrieving revision 1.20
28 diff -u -r1.19 -r1.20
29 --- python-2.3.5-r2.ebuild 3 Nov 2007 16:57:26 -0000 1.19
30 +++ python-2.3.5-r2.ebuild 18 Apr 2008 22:23:25 -0000 1.20
31 @@ -1,6 +1,6 @@
32 -# Copyright 1999-2007 Gentoo Foundation
33 +# Copyright 1999-2008 Gentoo Foundation
34 # Distributed under the terms of the GNU General Public License v2
35 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.3.5-r2.ebuild,v 1.19 2007/11/03 16:57:26 grobian Exp $
36 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.3.5-r2.ebuild,v 1.20 2008/04/18 22:23:25 hawking Exp $
37
38 # NOTE about python-portage interactions :
39 # - Do not add a pkg_setup() check for a certain version of portage
40 @@ -50,35 +50,35 @@
41
42 src_unpack() {
43 unpack ${A}
44 - cd ${S}
45 + cd "${S}"
46
47 # fix readline detection problems due to missing termcap (#79013)
48 - epatch ${WORKDIR}/${PV}/2.3-readline.patch
49 + epatch "${WORKDIR}"/${PV}/2.3-readline.patch
50
51 sed -ie 's/OpenBSD\/3.\[01234/OpenBSD\/3.\[012345/' configure || die "OpenBSD sed failed"
52 # adds /usr/lib/portage/pym to sys.path - liquidx (08 Oct 03)
53 # prepends /usr/lib/portage/pym to sys.path - liquidx (12 Apr 04)
54 - epatch ${WORKDIR}/${PV}/2.3-add_portage_search_path.patch
55 + epatch "${WORKDIR}"/${PV}/2.3-add_portage_search_path.patch
56 # adds support for PYTHON_DONTCOMPILE shell environment to
57 # supress automatic generation of .pyc and .pyo files - liquidx (08 Oct 03)
58 - epatch ${WORKDIR}/${PV}/2.4-gentoo_py_dontcompile.patch
59 - epatch ${WORKDIR}/${PV}/2.4-disable_modules_and_ssl.patch
60 - epatch ${WORKDIR}/${PV}/2.4-mimetypes_apache.patch
61 - epatch ${WORKDIR}/${PV}/2.3-db4.2.patch
62 + epatch "${WORKDIR}"/${PV}/2.4-gentoo_py_dontcompile.patch
63 + epatch "${WORKDIR}"/${PV}/2.4-disable_modules_and_ssl.patch
64 + epatch "${WORKDIR}"/${PV}/2.4-mimetypes_apache.patch
65 + epatch "${WORKDIR}"/${PV}/2.3-db4.2.patch
66
67 # installs to lib64
68 [ "$(get_libdir)" == "lib64" ] && \
69 - epatch ${WORKDIR}/${PV}/2.3.4-lib64.patch
70 + epatch "${WORKDIR}"/${PV}/2.3.4-lib64.patch
71
72 # fix os.utime() on hppa. utimes it not supported but unfortunately
73 # reported as working - gmsoft (22 May 04)
74 - [ "${ARCH}" = "hppa" ] && sed -e 's/utimes //' -i ${S}/configure
75 + [ "${ARCH}" = "hppa" ] && sed -e 's/utimes //' -i "${S}"/configure
76
77 # add support for struct stat st_flags attribute (bug 94637)
78 - epatch ${WORKDIR}/${PV}/2.3.5-st_flags.patch
79 + epatch "${WORKDIR}"/${PV}/2.3.5-st_flags.patch
80
81 # Fix pcre security bug (bug 104009)
82 - epatch ${WORKDIR}/${PV}/2.3-pcre.patch
83 + epatch "${WORKDIR}"/${PV}/2.3-pcre.patch
84 }
85
86 src_configure() {
87 @@ -151,7 +151,7 @@
88
89 # install our own custom python-config
90 exeinto /usr/bin
91 - newexe ${FILESDIR}/python-config-${PYVER} python-config
92 + newexe "${FILESDIR}"/python-config-${PYVER} python-config
93
94 # The stuff below this line extends from 2.1, and should be deprecated
95 # in 2.3, or possibly can wait till 2.4
96 @@ -159,7 +159,7 @@
97 # seems like the build do not install Makefile.pre.in anymore
98 # it probably shouldn't - use DistUtils, people!
99 insinto /usr/$(get_libdir)/python${PYVER}/config
100 - doins ${S}/Makefile.pre.in
101 + doins "${S}"/Makefile.pre.in
102
103 # While we're working on the config stuff... Let's fix the OPT var
104 # so that it doesn't have any opts listed in it. Prevents the problem
105 @@ -167,14 +167,14 @@
106 dosed -e 's:^OPT=.*:OPT=-DNDEBUG:' /usr/$(get_libdir)/python${PYVER}/config/Makefile
107
108 # install python-updater in /usr/sbin
109 - dosbin ${FILESDIR}/python-updater
110 + dosbin "${FILESDIR}"/python-updater
111
112 if use build ; then
113 - rm -rf ${D}/usr/$(get_libdir)/python2.3/{test,encodings,email,lib-tk,bsddb/test}
114 + rm -rf "${D}"/usr/$(get_libdir)/python2.3/{test,encodings,email,lib-tk,bsddb/test}
115 else
116 - use elibc_uclibc && rm -rf ${D}/usr/$(get_libdir)/python2.3/{test,bsddb/test}
117 - use berkdb || rm -rf ${D}/usr/$(get_libdir)/python2.3/bsddb
118 - use tk || rm -rf ${D}/usr/$(get_libdir)/python2.3/lib-tk
119 + use elibc_uclibc && rm -rf "${D}"/usr/$(get_libdir)/python2.3/{test,bsddb/test}
120 + use berkdb || rm -rf "${D}"/usr/$(get_libdir)/python2.3/bsddb
121 + use tk || rm -rf "${D}"/usr/$(get_libdir)/python2.3/lib-tk
122 fi
123 }
124
125 @@ -226,13 +226,13 @@
126 local skip_tests="global mimetools mmap strptime subprocess tcl time urllib urllib2 zipimport"
127
128 for test in ${skip_tests} ; do
129 - mv ${S}/Lib/test/test_${test}.py ${T}
130 + mv "${S}"/Lib/test/test_${test}.py "${T}"
131 done
132
133 make test || die "make test failed"
134
135 for test in ${skip_tests} ; do
136 - mv ${T}/test_${test}.py ${S}/Lib/test/test_${test}.py
137 + mv "${T}"/test_${test}.py "${S}"/Lib/test/test_${test}.py
138 done
139
140 elog "Portage skipped the following tests which aren't able to run from emerge:"
141
142
143
144 1.16 dev-lang/python/python-2.3.5-r3.ebuild
145
146 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.3.5-r3.ebuild?rev=1.16&view=markup
147 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.3.5-r3.ebuild?rev=1.16&content-type=text/plain
148 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.3.5-r3.ebuild?r1=1.15&r2=1.16
149
150 Index: python-2.3.5-r3.ebuild
151 ===================================================================
152 RCS file: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.3.5-r3.ebuild,v
153 retrieving revision 1.15
154 retrieving revision 1.16
155 diff -u -r1.15 -r1.16
156 --- python-2.3.5-r3.ebuild 3 Nov 2007 16:57:26 -0000 1.15
157 +++ python-2.3.5-r3.ebuild 18 Apr 2008 22:23:25 -0000 1.16
158 @@ -1,6 +1,6 @@
159 -# Copyright 1999-2007 Gentoo Foundation
160 +# Copyright 1999-2008 Gentoo Foundation
161 # Distributed under the terms of the GNU General Public License v2
162 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.3.5-r3.ebuild,v 1.15 2007/11/03 16:57:26 grobian Exp $
163 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.3.5-r3.ebuild,v 1.16 2008/04/18 22:23:25 hawking Exp $
164
165 # NOTE about python-portage interactions :
166 # - Do not add a pkg_setup() check for a certain version of portage
167 @@ -50,37 +50,37 @@
168
169 src_unpack() {
170 unpack ${A}
171 - cd ${S}
172 + cd "${S}"
173
174 # fix readline detection problems due to missing termcap (#79013)
175 - epatch ${WORKDIR}/${PV}/2.3-readline.patch
176 + epatch "${WORKDIR}"/${PV}/2.3-readline.patch
177
178 sed -ie 's/OpenBSD\/3.\[01234/OpenBSD\/3.\[012345/' configure || die "OpenBSD sed failed"
179 # adds /usr/lib/portage/pym to sys.path - liquidx (08 Oct 03)
180 # prepends /usr/lib/portage/pym to sys.path - liquidx (12 Apr 04)
181 - epatch ${WORKDIR}/${PV}/2.3-add_portage_search_path.patch
182 + epatch "${WORKDIR}"/${PV}/2.3-add_portage_search_path.patch
183 # adds support for PYTHON_DONTCOMPILE shell environment to
184 # supress automatic generation of .pyc and .pyo files - liquidx (08 Oct 03)
185 - epatch ${WORKDIR}/${PV}/2.4-gentoo_py_dontcompile.patch
186 - epatch ${WORKDIR}/${PV}/2.4-disable_modules_and_ssl.patch
187 - epatch ${WORKDIR}/${PV}/2.4-mimetypes_apache.patch
188 - epatch ${WORKDIR}/${PV}/2.3-db4.2.patch
189 + epatch "${WORKDIR}"/${PV}/2.4-gentoo_py_dontcompile.patch
190 + epatch "${WORKDIR}"/${PV}/2.4-disable_modules_and_ssl.patch
191 + epatch "${WORKDIR}"/${PV}/2.4-mimetypes_apache.patch
192 + epatch "${WORKDIR}"/${PV}/2.3-db4.2.patch
193
194 # installs to lib64
195 [ "$(get_libdir)" == "lib64" ] && \
196 - epatch ${WORKDIR}/${PV}/2.3.4-lib64.patch
197 + epatch "${WORKDIR}"/${PV}/2.3.4-lib64.patch
198
199 # fix os.utime() on hppa. utimes it not supported but unfortunately
200 # reported as working - gmsoft (22 May 04)
201 - [ "${ARCH}" = "hppa" ] && sed -e 's/utimes //' -i ${S}/configure
202 + [ "${ARCH}" = "hppa" ] && sed -e 's/utimes //' -i "${S}"/configure
203
204 # add support for struct stat st_flags attribute (bug 94637)
205 - epatch ${WORKDIR}/${PV}/2.3.5-st_flags.patch
206 + epatch "${WORKDIR}"/${PV}/2.3.5-st_flags.patch
207
208 # Fix pcre security bug (bug 104009)
209 - epatch ${WORKDIR}/${PV}/2.3-pcre.patch
210 + epatch "${WORKDIR}"/${PV}/2.3-pcre.patch
211
212 - epatch ${WORKDIR}/${PV}/2.3.5-unicodeobject.patch
213 + epatch "${WORKDIR}"/${PV}/2.3.5-unicodeobject.patch
214 }
215
216 src_configure() {
217 @@ -153,7 +153,7 @@
218
219 # install our own custom python-config
220 exeinto /usr/bin
221 - newexe ${FILESDIR}/python-config-${PYVER} python-config
222 + newexe "${FILESDIR}"/python-config-${PYVER} python-config
223
224 # The stuff below this line extends from 2.1, and should be deprecated
225 # in 2.3, or possibly can wait till 2.4
226 @@ -161,7 +161,7 @@
227 # seems like the build do not install Makefile.pre.in anymore
228 # it probably shouldn't - use DistUtils, people!
229 insinto /usr/$(get_libdir)/python${PYVER}/config
230 - doins ${S}/Makefile.pre.in
231 + doins "${S}"/Makefile.pre.in
232
233 # While we're working on the config stuff... Let's fix the OPT var
234 # so that it doesn't have any opts listed in it. Prevents the problem
235 @@ -169,14 +169,14 @@
236 dosed -e 's:^OPT=.*:OPT=-DNDEBUG:' /usr/$(get_libdir)/python${PYVER}/config/Makefile
237
238 # install python-updater in /usr/sbin
239 - dosbin ${FILESDIR}/python-updater
240 + dosbin "${FILESDIR}"/python-updater
241
242 if use build ; then
243 - rm -rf ${D}/usr/$(get_libdir)/python2.3/{test,encodings,email,lib-tk,bsddb/test}
244 + rm -rf "${D}"/usr/$(get_libdir)/python2.3/{test,encodings,email,lib-tk,bsddb/test}
245 else
246 - use elibc_uclibc && rm -rf ${D}/usr/$(get_libdir)/python2.3/{test,bsddb/test}
247 - use berkdb || rm -rf ${D}/usr/$(get_libdir)/python2.3/bsddb
248 - use tk || rm -rf ${D}/usr/$(get_libdir)/python2.3/lib-tk
249 + use elibc_uclibc && rm -rf "${D}"/usr/$(get_libdir)/python2.3/{test,bsddb/test}
250 + use berkdb || rm -rf "${D}"/usr/$(get_libdir)/python2.3/bsddb
251 + use tk || rm -rf "${D}"/usr/$(get_libdir)/python2.3/lib-tk
252 fi
253 }
254
255 @@ -228,13 +228,13 @@
256 local skip_tests="global mimetools mmap strptime subprocess tcl time urllib urllib2 zipimport"
257
258 for test in ${skip_tests} ; do
259 - mv ${S}/Lib/test/test_${test}.py ${T}
260 + mv "${S}"/Lib/test/test_${test}.py "${T}"
261 done
262
263 make test || die "make test failed"
264
265 for test in ${skip_tests} ; do
266 - mv ${T}/test_${test}.py ${S}/Lib/test/test_${test}.py
267 + mv "${T}"/test_${test}.py "${S}"/Lib/test/test_${test}.py
268 done
269
270 elog "Portage skipped the following tests which aren't able to run from emerge:"
271
272
273
274 1.10 dev-lang/python/python-2.3.6-r3.ebuild
275
276 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.3.6-r3.ebuild?rev=1.10&view=markup
277 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.3.6-r3.ebuild?rev=1.10&content-type=text/plain
278 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.3.6-r3.ebuild?r1=1.9&r2=1.10
279
280 Index: python-2.3.6-r3.ebuild
281 ===================================================================
282 RCS file: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.3.6-r3.ebuild,v
283 retrieving revision 1.9
284 retrieving revision 1.10
285 diff -u -r1.9 -r1.10
286 --- python-2.3.6-r3.ebuild 3 Nov 2007 16:57:26 -0000 1.9
287 +++ python-2.3.6-r3.ebuild 18 Apr 2008 22:23:25 -0000 1.10
288 @@ -1,6 +1,6 @@
289 -# Copyright 1999-2007 Gentoo Foundation
290 +# Copyright 1999-2008 Gentoo Foundation
291 # Distributed under the terms of the GNU General Public License v2
292 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.3.6-r3.ebuild,v 1.9 2007/11/03 16:57:26 grobian Exp $
293 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.3.6-r3.ebuild,v 1.10 2008/04/18 22:23:25 hawking Exp $
294
295 # NOTE about python-portage interactions :
296 # - Do not add a pkg_setup() check for a certain version of portage
297 @@ -52,13 +52,13 @@
298
299 src_unpack() {
300 unpack ${A}
301 - cd ${S}
302 + cd "${S}"
303
304 sed -ie 's/OpenBSD\/3.\[01234/OpenBSD\/3.\[012345/' configure || die "OpenBSD sed failed"
305
306 # fix os.utime() on hppa. utimes it not supported but unfortunately
307 # reported as working - gmsoft (22 May 04)
308 - [ "${ARCH}" = "hppa" ] && sed -e 's/utimes //' -i ${S}/configure
309 + [ "${ARCH}" = "hppa" ] && sed -e 's/utimes //' -i "${S}"/configure
310
311 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/${PV}"
312 sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
313 @@ -147,7 +147,7 @@
314
315 # install our own custom python-config
316 exeinto /usr/bin
317 - newexe ${FILESDIR}/python-config-${PYVER} python-config
318 + newexe "${FILESDIR}"/python-config-${PYVER} python-config
319
320 # The stuff below this line extends from 2.1, and should be deprecated
321 # in 2.3, or possibly can wait till 2.4
322 @@ -155,7 +155,7 @@
323 # seems like the build do not install Makefile.pre.in anymore
324 # it probably shouldn't - use DistUtils, people!
325 insinto /usr/$(get_libdir)/python${PYVER}/config
326 - doins ${S}/Makefile.pre.in
327 + doins "${S}"/Makefile.pre.in
328
329 # While we're working on the config stuff... Let's fix the OPT var
330 # so that it doesn't have any opts listed in it. Prevents the problem
331 @@ -163,16 +163,16 @@
332 dosed -e 's:^OPT=.*:OPT=-DNDEBUG:' /usr/$(get_libdir)/python${PYVER}/config/Makefile
333
334 if use build ; then
335 - rm -rf ${D}/usr/$(get_libdir)/python2.3/{test,encodings,email,lib-tk,bsddb/test}
336 + rm -rf "${D}"/usr/$(get_libdir)/python2.3/{test,encodings,email,lib-tk,bsddb/test}
337 else
338 - use elibc_uclibc && rm -rf ${D}/usr/$(get_libdir)/python2.3/{test,bsddb/test}
339 - use berkdb || rm -rf ${D}/usr/$(get_libdir)/python2.3/bsddb
340 - use tk || rm -rf ${D}/usr/$(get_libdir)/python2.3/lib-tk
341 + use elibc_uclibc && rm -rf "${D}"/usr/$(get_libdir)/python2.3/{test,bsddb/test}
342 + use berkdb || rm -rf "${D}"/usr/$(get_libdir)/python2.3/bsddb
343 + use tk || rm -rf "${D}"/usr/$(get_libdir)/python2.3/lib-tk
344 fi
345
346 if use examples ; then
347 - mkdir -p ${D}/usr/share/doc/${P}/examples
348 - cp -r ${S}/Tools ${D}/usr/share/doc/${P}/examples
349 + mkdir -p "${D}"/usr/share/doc/${P}/examples
350 + cp -r "${S}"/Tools "${D}"/usr/share/doc/${P}/examples
351 fi
352 }
353
354 @@ -224,13 +224,13 @@
355 local skip_tests="global mimetools mmap strptime subprocess tcl time urllib urllib2 zipimport"
356
357 for test in ${skip_tests} ; do
358 - mv ${S}/Lib/test/test_${test}.py ${T}
359 + mv "${S}"/Lib/test/test_${test}.py "${T}"
360 done
361
362 make test || die "make test failed"
363
364 for test in ${skip_tests} ; do
365 - mv ${T}/test_${test}.py ${S}/Lib/test/test_${test}.py
366 + mv "${T}"/test_${test}.py "${S}"/Lib/test/test_${test}.py
367 done
368
369 elog "Portage skipped the following tests which aren't able to run from emerge:"
370
371
372
373 1.309 dev-lang/python/ChangeLog
374
375 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/ChangeLog?rev=1.309&view=markup
376 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/ChangeLog?rev=1.309&content-type=text/plain
377 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/ChangeLog?r1=1.308&r2=1.309
378
379 Index: ChangeLog
380 ===================================================================
381 RCS file: /var/cvsroot/gentoo-x86/dev-lang/python/ChangeLog,v
382 retrieving revision 1.308
383 retrieving revision 1.309
384 diff -u -r1.308 -r1.309
385 --- ChangeLog 18 Apr 2008 14:26:25 -0000 1.308
386 +++ ChangeLog 18 Apr 2008 22:23:25 -0000 1.309
387 @@ -1,6 +1,19 @@
388 # ChangeLog for dev-lang/python
389 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
390 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/ChangeLog,v 1.308 2008/04/18 14:26:25 hawking Exp $
391 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/ChangeLog,v 1.309 2008/04/18 22:23:25 hawking Exp $
392 +
393 +*python-2.5.2-r1 (18 Apr 2008)
394 +
395 + 18 Apr 2008; Ali Polatel <hawking@g.o> python-2.3.5-r2.ebuild,
396 + python-2.3.5-r3.ebuild, python-2.3.6.ebuild, -python-2.3.6-r2.ebuild,
397 + python-2.3.6-r3.ebuild, -python-2.4.4-r4.ebuild, python-2.4.4-r5.ebuild,
398 + -python-2.4.4-r7.ebuild, -python-2.4.4-r8.ebuild, -python-2.5.1-r2.ebuild,
399 + -python-2.5.1-r3.ebuild, -python-2.5.1-r4.ebuild, -python-2.5.1-r5.ebuild,
400 + -python-2.5.2.ebuild, +python-2.5.2-r1.ebuild:
401 + Revbump. Updated patchset. Backported upstream patch to make file objects
402 + as thread safe as the underlying libc FILE* implementation. Backported
403 + upstream patch fixing a bunch of infinite C recursions. Dropped old.
404 + Quoting.
405
406 *python-2.5.2 (18 Apr 2008)
407 *python-2.4.4-r10 (18 Apr 2008)
408
409
410
411 1.8 dev-lang/python/python-2.3.6.ebuild
412
413 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.3.6.ebuild?rev=1.8&view=markup
414 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.3.6.ebuild?rev=1.8&content-type=text/plain
415 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.3.6.ebuild?r1=1.7&r2=1.8
416
417 Index: python-2.3.6.ebuild
418 ===================================================================
419 RCS file: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.3.6.ebuild,v
420 retrieving revision 1.7
421 retrieving revision 1.8
422 diff -u -r1.7 -r1.8
423 --- python-2.3.6.ebuild 3 Nov 2007 16:57:26 -0000 1.7
424 +++ python-2.3.6.ebuild 18 Apr 2008 22:23:25 -0000 1.8
425 @@ -1,6 +1,6 @@
426 -# Copyright 1999-2007 Gentoo Foundation
427 +# Copyright 1999-2008 Gentoo Foundation
428 # Distributed under the terms of the GNU General Public License v2
429 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.3.6.ebuild,v 1.7 2007/11/03 16:57:26 grobian Exp $
430 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.3.6.ebuild,v 1.8 2008/04/18 22:23:25 hawking Exp $
431
432 # NOTE about python-portage interactions :
433 # - Do not add a pkg_setup() check for a certain version of portage
434 @@ -52,35 +52,35 @@
435
436 src_unpack() {
437 unpack ${A}
438 - cd ${S}
439 + cd "${S}"
440
441 # fix readline detection problems due to missing termcap (#79013)
442 - epatch ${WORKDIR}/${PV}/2.3-readline.patch
443 + epatch "${WORKDIR}"/${PV}/2.3-readline.patch
444
445 sed -ie 's/OpenBSD\/3.\[01234/OpenBSD\/3.\[012345/' configure || die "OpenBSD sed failed"
446 # adds /usr/lib/portage/pym to sys.path - liquidx (08 Oct 03)
447 # prepends /usr/lib/portage/pym to sys.path - liquidx (12 Apr 04)
448 - epatch ${WORKDIR}/${PV}/2.3-add_portage_search_path.patch
449 + epatch "${WORKDIR}"/${PV}/2.3-add_portage_search_path.patch
450 # adds support for PYTHON_DONTCOMPILE shell environment to
451 # supress automatic generation of .pyc and .pyo files - liquidx (08 Oct 03)
452 - epatch ${WORKDIR}/${PV}/2.4-gentoo_py_dontcompile.patch
453 - epatch ${WORKDIR}/${PV}/2.4-disable_modules_and_ssl.patch
454 - epatch ${WORKDIR}/${PV}/2.4-mimetypes_apache.patch
455 - epatch ${WORKDIR}/${PV}/2.3-db4.2.patch
456 + epatch "${WORKDIR}"/${PV}/2.4-gentoo_py_dontcompile.patch
457 + epatch "${WORKDIR}"/${PV}/2.4-disable_modules_and_ssl.patch
458 + epatch "${WORKDIR}"/${PV}/2.4-mimetypes_apache.patch
459 + epatch "${WORKDIR}"/${PV}/2.3-db4.2.patch
460
461 # installs to lib64
462 [ "$(get_libdir)" == "lib64" ] && \
463 - epatch ${WORKDIR}/${PV}/2.3.4-lib64.patch
464 + epatch "${WORKDIR}"/${PV}/2.3.4-lib64.patch
465
466 # fix os.utime() on hppa. utimes it not supported but unfortunately
467 # reported as working - gmsoft (22 May 04)
468 - [ "${ARCH}" = "hppa" ] && sed -e 's/utimes //' -i ${S}/configure
469 + [ "${ARCH}" = "hppa" ] && sed -e 's/utimes //' -i "${S}"/configure
470
471 # add support for struct stat st_flags attribute (bug 94637)
472 - epatch ${WORKDIR}/${PV}/2.3.5-st_flags.patch
473 + epatch "${WORKDIR}"/${PV}/2.3.5-st_flags.patch
474
475 # Fix pcre security bug (bug 104009)
476 - epatch ${WORKDIR}/${PV}/2.3-pcre.patch
477 + epatch "${WORKDIR}"/${PV}/2.3-pcre.patch
478 }
479
480 src_configure() {
481 @@ -153,7 +153,7 @@
482
483 # install our own custom python-config
484 exeinto /usr/bin
485 - newexe ${FILESDIR}/python-config-${PYVER} python-config
486 + newexe "${FILESDIR}"/python-config-${PYVER} python-config
487
488 # The stuff below this line extends from 2.1, and should be deprecated
489 # in 2.3, or possibly can wait till 2.4
490 @@ -161,7 +161,7 @@
491 # seems like the build do not install Makefile.pre.in anymore
492 # it probably shouldn't - use DistUtils, people!
493 insinto /usr/$(get_libdir)/python${PYVER}/config
494 - doins ${S}/Makefile.pre.in
495 + doins "${S}"/Makefile.pre.in
496
497 # While we're working on the config stuff... Let's fix the OPT var
498 # so that it doesn't have any opts listed in it. Prevents the problem
499 @@ -169,14 +169,14 @@
500 dosed -e 's:^OPT=.*:OPT=-DNDEBUG:' /usr/$(get_libdir)/python${PYVER}/config/Makefile
501
502 # install python-updater in /usr/sbin
503 - dosbin ${FILESDIR}/python-updater
504 + dosbin "${FILESDIR}"/python-updater
505
506 if use build ; then
507 - rm -rf ${D}/usr/$(get_libdir)/python2.3/{test,encodings,email,lib-tk,bsddb/test}
508 + rm -rf "${D}"/usr/$(get_libdir)/python2.3/{test,encodings,email,lib-tk,bsddb/test}
509 else
510 - use elibc_uclibc && rm -rf ${D}/usr/$(get_libdir)/python2.3/{test,bsddb/test}
511 - use berkdb || rm -rf ${D}/usr/$(get_libdir)/python2.3/bsddb
512 - use tk || rm -rf ${D}/usr/$(get_libdir)/python2.3/lib-tk
513 + use elibc_uclibc && rm -rf "${D}"/usr/$(get_libdir)/python2.3/{test,bsddb/test}
514 + use berkdb || rm -rf "${D}"/usr/$(get_libdir)/python2.3/bsddb
515 + use tk || rm -rf "${D}"/usr/$(get_libdir)/python2.3/lib-tk
516 fi
517 }
518
519 @@ -228,13 +228,13 @@
520 local skip_tests="global mimetools mmap strptime subprocess tcl time urllib urllib2 zipimport"
521
522 for test in ${skip_tests} ; do
523 - mv ${S}/Lib/test/test_${test}.py ${T}
524 + mv "${S}"/Lib/test/test_${test}.py "${T}"
525 done
526
527 make test || die "make test failed"
528
529 for test in ${skip_tests} ; do
530 - mv ${T}/test_${test}.py ${S}/Lib/test/test_${test}.py
531 + mv "${T}"/test_${test}.py "${S}"/Lib/test/test_${test}.py
532 done
533
534 elog "Portage skipped the following tests which aren't able to run from emerge:"
535
536
537
538 1.18 dev-lang/python/python-2.4.4-r5.ebuild
539
540 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.4.4-r5.ebuild?rev=1.18&view=markup
541 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.4.4-r5.ebuild?rev=1.18&content-type=text/plain
542 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.4.4-r5.ebuild?r1=1.17&r2=1.18
543
544 Index: python-2.4.4-r5.ebuild
545 ===================================================================
546 RCS file: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.4.4-r5.ebuild,v
547 retrieving revision 1.17
548 retrieving revision 1.18
549 diff -u -r1.17 -r1.18
550 --- python-2.4.4-r5.ebuild 3 Nov 2007 16:57:26 -0000 1.17
551 +++ python-2.4.4-r5.ebuild 18 Apr 2008 22:23:25 -0000 1.18
552 @@ -1,6 +1,6 @@
553 -# Copyright 1999-2007 Gentoo Foundation
554 +# Copyright 1999-2008 Gentoo Foundation
555 # Distributed under the terms of the GNU General Public License v2
556 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.4.4-r5.ebuild,v 1.17 2007/11/03 16:57:26 grobian Exp $
557 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.4.4-r5.ebuild,v 1.18 2008/04/18 22:23:25 hawking Exp $
558
559 # NOTE about python-portage interactions :
560 # - Do not add a pkg_setup() check for a certain version of portage
561 @@ -55,12 +55,12 @@
562
563 src_unpack() {
564 unpack ${A}
565 - cd ${S}
566 + cd "${S}"
567
568 if tc-is-cross-compiler ; then
569 [[ $(python -V 2>&1) != "Python ${PV}" ]] && \
570 die "Crosscompiling requires the same host and build versions."
571 - epatch ${FILESDIR}/python-2.4.4-test-cross.patch
572 + epatch "${FILESDIR}"/python-2.4.4-test-cross.patch
573 else
574 rm "${WORKDIR}/${PV}"/*_all_crosscompile.patch
575 fi
576 @@ -78,7 +78,7 @@
577 # fix os.utime() on hppa. utimes it not supported but unfortunately
578 # reported as working - gmsoft (22 May 04)
579 # PLEASE LEAVE THIS FIX FOR NEXT VERSIONS AS IT'S A CRITICAL FIX !!!
580 - [ "${ARCH}" = "hppa" ] && sed -e 's/utimes //' -i ${S}/configure
581 + [ "${ARCH}" = "hppa" ] && sed -e 's/utimes //' -i "${S}"/configure
582
583 eautoreconf
584 }
585 @@ -175,25 +175,25 @@
586
587 # install our own custom python-config
588 exeinto /usr/bin
589 - newexe ${FILESDIR}/python-config-${PYVER}-r1 python-config-${PYVER}
590 + newexe "${FILESDIR}"/python-config-${PYVER}-r1 python-config-${PYVER}
591
592 # Use correct libdir in python-config
593 dosed "s:/usr/lib/:/usr/$(get_libdir)/:" /usr/bin/python-config-${PYVER}
594
595 if use build ; then
596 - rm -rf ${D}/usr/$(get_libdir)/python${PYVER}/{test,encodings,email,lib-tk,bsddb/test}
597 + rm -rf "${D}"/usr/$(get_libdir)/python${PYVER}/{test,encodings,email,lib-tk,bsddb/test}
598 else
599 - use elibc_uclibc && rm -rf ${D}/usr/$(get_libdir)/python${PYVER}/{test,bsddb/test}
600 - use berkdb || rm -rf ${D}/usr/$(get_libdir)/python${PYVER}/bsddb
601 - use tk || rm -rf ${D}/usr/$(get_libdir)/python${PYVER}/lib-tk
602 + use elibc_uclibc && rm -rf "${D}"/usr/$(get_libdir)/python${PYVER}/{test,bsddb/test}
603 + use berkdb || rm -rf "${D}"/usr/$(get_libdir)/python${PYVER}/bsddb
604 + use tk || rm -rf "${D}"/usr/$(get_libdir)/python${PYVER}/lib-tk
605 fi
606
607 # Fix slotted collisions
608 - mv ${D}/usr/bin/pydoc ${D}/usr/bin/pydoc${PYVER}
609 - mv ${D}/usr/bin/idle ${D}/usr/bin/idle${PYVER}
610 - mv ${D}/usr/share/man/man1/python.1 \
611 - ${D}/usr/share/man/man1/python${PYVER}.1
612 - rm -f ${D}/usr/bin/smtpd.py
613 + mv "${D}"/usr/bin/pydoc "${D}"/usr/bin/pydoc${PYVER}
614 + mv "${D}"/usr/bin/idle "${D}"/usr/bin/idle${PYVER}
615 + mv "${D}"/usr/share/man/man1/python.1 \
616 + "${D}"/usr/share/man/man1/python${PYVER}.1
617 + rm -f "${D}"/usr/bin/smtpd.py
618
619 prep_ml_includes usr/include/python${PYVER}
620
621 @@ -203,7 +203,7 @@
622 # seems like the build do not install Makefile.pre.in anymore
623 # it probably shouldn't - use DistUtils, people!
624 insinto /usr/$(get_libdir)/python${PYVER}/config
625 - doins ${S}/Makefile.pre.in
626 + doins "${S}"/Makefile.pre.in
627
628 # While we're working on the config stuff... Let's fix the OPT var
629 # so that it doesn't have any opts listed in it. Prevents the problem
630 @@ -212,8 +212,8 @@
631 /usr/$(get_libdir)/python${PYVER}/config/Makefile
632
633 if use examples ; then
634 - mkdir -p ${D}/usr/share/doc/${P}/examples
635 - cp -r ${S}/Tools ${D}/usr/share/doc/${P}/examples
636 + mkdir -p "${D}"/usr/share/doc/${P}/examples
637 + cp -r "${S}"/Tools "${D}"/usr/share/doc/${P}/examples
638 fi
639 }
640
641 @@ -293,14 +293,14 @@
642 local skip_tests="cookielib distutils global hotshot mimetools minidom mmap posix sax strptime subprocess syntax tcl time urllib urllib2"
643
644 for test in ${skip_tests} ; do
645 - mv ${S}/Lib/test/test_${test}.py ${T}
646 + mv "${S}"/Lib/test/test_${test}.py "${T}"
647 done
648
649 # rerun failed tests in verbose mode (regrtest -w)
650 EXTRATESTOPTS="-w" make test || die "make test failed"
651
652 for test in ${skip_tests} ; do
653 - mv ${T}/test_${test}.py ${S}/Lib/test/test_${test}.py
654 + mv "${T}"/test_${test}.py "${S}"/Lib/test/test_${test}.py
655 done
656
657 elog "Portage skipped the following tests which aren't able to run from emerge:"
658
659
660
661 1.1 dev-lang/python/python-2.5.2-r1.ebuild
662
663 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.5.2-r1.ebuild?rev=1.1&view=markup
664 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/python-2.5.2-r1.ebuild?rev=1.1&content-type=text/plain
665
666 Index: python-2.5.2-r1.ebuild
667 ===================================================================
668 # Copyright 1999-2008 Gentoo Foundation
669 # Distributed under the terms of the GNU General Public License v2
670 # $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.5.2-r1.ebuild,v 1.1 2008/04/18 22:23:25 hawking Exp $
671
672 # NOTE about python-portage interactions :
673 # - Do not add a pkg_setup() check for a certain version of portage
674 # in dev-lang/python. It _WILL_ stop people installing from
675 # Gentoo 1.4 images.
676
677 EAPI=1
678
679 inherit eutils autotools flag-o-matic python multilib versionator toolchain-funcs alternatives libtool
680
681 # we need this so that we don't depends on python.eclass
682 PYVER_MAJOR=$(get_major_version)
683 PYVER_MINOR=$(get_version_component_range 2)
684 PYVER="${PYVER_MAJOR}.${PYVER_MINOR}"
685
686 MY_P="Python-${PV}"
687 S="${WORKDIR}/${MY_P}"
688
689 DESCRIPTION="Python is an interpreted, interactive, object-oriented programming language."
690 HOMEPAGE="http://www.python.org/"
691 SRC_URI="http://www.python.org/ftp/python/${PV}/${MY_P}.tar.bz2
692 mirror://gentoo/python-gentoo-patches-${PV}-r1.tar.bz2"
693
694 LICENSE="PSF-2.2"
695 SLOT="2.5"
696 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
697 IUSE="ncurses gdbm ssl readline tk berkdb bootstrap ipv6 build ucs2 sqlite doc +threads examples elibc_uclibc wininst"
698
699 # NOTE: dev-python/{elementtree,celementtree,pysqlite,ctypes,cjkcodecs}
700 # do not conflict with the ones in python proper. - liquidx
701
702 DEPEND=">=sys-libs/zlib-1.1.3
703 !build? (
704 sqlite? ( >=dev-db/sqlite-3 )
705 tk? ( >=dev-lang/tk-8.0 )
706 ncurses? ( >=sys-libs/ncurses-5.2
707 readline? ( >=sys-libs/readline-4.1 ) )
708 berkdb? ( >=sys-libs/db-3.1 )
709 gdbm? ( sys-libs/gdbm )
710 ssl? ( dev-libs/openssl )
711 doc? ( dev-python/python-docs:2.5 )
712 dev-libs/expat
713 )"
714
715 # NOTE: The dev-python/python-fchksum RDEPEND is needed so that this python
716 # provides the functionality expected from previous pythons.
717
718 # NOTE: python-fchksum is only a RDEPEND and not a DEPEND since we don't need
719 # it to compile python. We just need to ensure that when we install
720 # python, we definitely have fchksum support. - liquidx
721
722 # NOTE: changed RDEPEND to PDEPEND to resolve bug 88777. - kloeri
723 # NOTE: added blocker to enforce correct merge order for bug 88777. - zmedico
724
725 RDEPEND="${DEPEND} build? ( !dev-python/python-fchksum )"
726 PDEPEND="${DEPEND} !build? ( dev-python/python-fchksum ) app-admin/python-updater"
727 PROVIDE="virtual/python"
728
729 src_unpack() {
730 unpack ${A}
731 cd "${S}"
732
733 if tc-is-cross-compiler ; then
734 [[ $(python -V 2>&1) != "Python ${PV}" ]] && \
735 die "Crosscompiling requires the same host and build versions."
736 epatch "${FILESDIR}"/python-2.4.4-test-cross.patch
737 else
738 rm "${WORKDIR}/${PV}"/*_all_crosscompile.patch
739 fi
740
741 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/${PV}"
742 sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
743 Lib/distutils/command/install.py \
744 Lib/distutils/sysconfig.py \
745 Lib/site.py \
746 Makefile.pre.in \
747 Modules/Setup.dist \
748 Modules/getpath.c \
749 setup.py || die
750
751 # fix os.utime() on hppa. utimes it not supported but unfortunately reported as working - gmsoft (22 May 04)
752 # PLEASE LEAVE THIS FIX FOR NEXT VERSIONS AS IT'S A CRITICAL FIX !!!
753 [ "${ARCH}" = "hppa" ] && sed -e 's/utimes //' -i "${S}"/configure
754
755 if ! use wininst; then
756 # remove microsoft windows executables
757 rm Lib/distutils/command/wininst-*.exe
758 fi
759
760 eautoreconf
761 }
762
763 src_configure() {
764 # disable extraneous modules with extra dependencies
765 if use build; then
766 export PYTHON_DISABLE_MODULES="readline pyexpat dbm gdbm bsddb _curses _curses_panel _tkinter _sqlite3"
767 export PYTHON_DISABLE_SSL=1
768 else
769 # dbm module can link to berkdb or gdbm -- defaults to gdbm when
770 # both are enabled, see #204343
771 use berkdb || use gdbm \
772 || PYTHON_DISABLE_MODULES="${PYTHON_DISABLE_MODULES} dbm"
773 use gdbm \
774 || PYTHON_DISABLE_MODULES="${PYTHON_DISABLE_MODULES} gdbm"
775 use berkdb \
776 || PYTHON_DISABLE_MODULES="${PYTHON_DISABLE_MODULES} bsddb"
777 use readline \
778 || PYTHON_DISABLE_MODULES="${PYTHON_DISABLE_MODULES} readline"
779 use tk \
780 || PYTHON_DISABLE_MODULES="${PYTHON_DISABLE_MODULES} _tkinter"
781 use ncurses \
782 || PYTHON_DISABLE_MODULES="${PYTHON_DISABLE_MODULES} _curses _curses_panel"
783 use sqlite \
784 || PYTHON_DISABLE_MODULES="${PYTHON_DISABLE_MODULES} _sqlite3"
785 use ssl \
786 || export PYTHON_DISABLE_SSL=1
787 export PYTHON_DISABLE_MODULES
788 echo $PYTHON_DISABLE_MODULES
789 fi
790 }
791
792 src_compile() {
793 filter-flags -malign-double
794
795 # Seems to no longer be necessary
796 #[ "${ARCH}" = "amd64" ] && append-flags -fPIC
797 [ "${ARCH}" = "alpha" ] && append-flags -fPIC
798
799 # http://bugs.gentoo.org/show_bug.cgi?id=50309
800 if is-flag -O3; then
801 is-flag -fstack-protector-all && replace-flags -O3 -O2
802 use hardened && replace-flags -O3 -O2
803 fi
804
805 export OPT="${CFLAGS}"
806
807 local myconf
808
809 # super-secret switch. don't use this unless you know what you're
810 # doing. enabling UCS2 support will break your existing python
811 # modules
812 use ucs2 \
813 && myconf="${myconf} --enable-unicode=ucs2" \
814 || myconf="${myconf} --enable-unicode=ucs4"
815
816 use threads \
817 && myconf="${myconf} --with-threads" \
818 || myconf="${myconf} --without-threads"
819
820 src_configure
821
822 if tc-is-cross-compiler ; then
823 OPT="-O1" CFLAGS="" LDFLAGS="" CC="" \
824 ./configure || die "cross-configure failed"
825 emake python Parser/pgen || die "cross-make failed"
826 mv python hostpython
827 mv Parser/pgen Parser/hostpgen
828 make distclean
829 sed -i \
830 -e '/^HOSTPYTHON/s:=.*:=./hostpython:' \
831 -e '/^HOSTPGEN/s:=.*:=./Parser/hostpgen:' \
832 Makefile.pre.in || die
833 fi
834
835 # export CXX so it ends up in /usr/lib/python2.x/config/Makefile
836 tc-export CXX
837
838 # set LDFLAGS so we link modules with -lpython2.5 correctly.
839 # Needed on FreeBSD unless python2.5 is already installed.
840 # Please query BSD team before removing this!
841 append-ldflags "-L."
842
843 econf \
844 --with-fpectl \
845 --enable-shared \
846 `use_enable ipv6` \
847 --infodir='${prefix}'/share/info \
848 --mandir='${prefix}'/share/man \
849 --with-libc='' \
850 ${myconf} || die
851 emake || die "Parallel make failed"
852 }
853
854 src_install() {
855 dodir /usr
856 src_configure
857 make DESTDIR="${D}" altinstall maninstall || die
858
859 mv "${D}"/usr/bin/python${PYVER}-config "${D}"/usr/bin/python-config-${PYVER}
860
861 # Fix slotted collisions
862 mv "${D}"/usr/bin/pydoc "${D}"/usr/bin/pydoc${PYVER}
863 mv "${D}"/usr/bin/idle "${D}"/usr/bin/idle${PYVER}
864 mv "${D}"/usr/share/man/man1/python.1 \
865 "${D}"/usr/share/man/man1/python${PYVER}.1
866 rm -f "${D}"/usr/bin/smtpd.py
867
868 # While we're working on the config stuff... Let's fix the OPT var
869 # so that it doesn't have any opts listed in it. Prevents the problem
870 # with compiling things with conflicting opts later.
871 dosed -e 's:^OPT=.*:OPT=-DNDEBUG:' \
872 /usr/$(get_libdir)/python${PYVER}/config/Makefile
873
874 if use build ; then
875 rm -rf "${D}"/usr/$(get_libdir)/python${PYVER}/{test,encodings,email,lib-tk,bsddb/test}
876 else
877 use elibc_uclibc && rm -rf "${D}"/usr/$(get_libdir)/python${PYVER}/{test,bsddb/test}
878 use berkdb || rm -rf "${D}"/usr/$(get_libdir)/python${PYVER}/bsddb
879 use tk || rm -rf "${D}"/usr/$(get_libdir)/python${PYVER}/lib-tk
880 fi
881
882 prep_ml_includes usr/include/python${PYVER}
883
884 # The stuff below this line extends from 2.1, and should be deprecated
885 # in 2.3, or possibly can wait till 2.4
886
887 # seems like the build do not install Makefile.pre.in anymore
888 # it probably shouldn't - use DistUtils, people!
889 insinto /usr/$(get_libdir)/python${PYVER}/config
890 doins "${S}"/Makefile.pre.in
891
892 if use examples ; then
893 mkdir -p "${D}"/usr/share/doc/${P}/examples
894 cp -r "${S}"/Tools "${D}"/usr/share/doc/${P}/examples
895 fi
896
897 newinitd "${FILESDIR}/pydoc.init" pydoc-${SLOT}
898 newconfd "${FILESDIR}/pydoc.conf" pydoc-${SLOT}
899 }
900
901 pkg_postrm() {
902 local mansuffix=$(ecompress --suffix)
903 python_makesym
904 alternatives_auto_makesym "/usr/bin/idle" "idle[0-9].[0-9]"
905 alternatives_auto_makesym "/usr/bin/pydoc" "pydoc[0-9].[0-9]"
906 alternatives_auto_makesym "/usr/bin/python-config" \
907 "python-config-[0-9].[0-9]"
908
909 alternatives_auto_makesym "/usr/share/man/man1/python.1${mansuffix}" \
910 "python[0-9].[0-9].1${mansuffix}"
911
912 python_mod_cleanup /usr/lib/python${PYVER}
913 [[ "$(get_libdir)" == "lib" ]] || \
914 python_mod_cleanup /usr/$(get_libdir)/python${PYVER}
915 }
916
917 pkg_postinst() {
918 local myroot
919 myroot=$(echo $ROOT | sed 's:/$::')
920 local mansuffix=$(ecompress --suffix)
921
922 python_makesym
923 alternatives_auto_makesym "/usr/bin/idle" "idle[0-9].[0-9]"
924 alternatives_auto_makesym "/usr/bin/pydoc" "pydoc[0-9].[0-9]"
925 alternatives_auto_makesym "/usr/bin/python-config" \
926 "python-config-[0-9].[0-9]"
927
928 alternatives_auto_makesym "/usr/share/man/man1/python.1${mansuffix}" \
929 "python[0-9].[0-9].1${mansuffix}"
930
931 python_mod_optimize
932 python_mod_optimize -x site-packages \
933 -x test ${myroot}/usr/lib/python${PYVER}
934 [[ "$(get_libdir)" == "lib" ]] || \
935 python_mod_optimize -x site-packages \
936 -x test ${myroot}/usr/$(get_libdir)/python${PYVER}
937
938 # workaround possible python-upgrade-breaks-portage situation
939 if [ ! -f ${myroot}/usr/lib/portage/pym/portage.py ]; then
940 if [ -f ${myroot}/usr/lib/python2.3/site-packages/portage.py ]; then
941 einfo "Working around possible python-portage upgrade breakage"
942 mkdir -p ${myroot}/usr/lib/portage/pym
943 cp ${myroot}/usr/lib/python2.4/site-packages/{portage,xpak,output,cvstree,getbinpkg,emergehelp,dispatch_conf}.py ${myroot}/usr/lib/portage/pym
944 python_mod_optimize ${myroot}/usr/lib/portage/pym
945 fi
946 fi
947
948 echo
949 ewarn
950 ewarn "If you have just upgraded from an older version of python you will"
951 ewarn "need to run:"
952 ewarn
953 ewarn "/usr/sbin/python-updater"
954 ewarn
955 ewarn "This will automatically rebuild all the python dependent modules"
956 ewarn "to run with python-${PYVER}."
957 ewarn
958 ewarn "Your original Python is still installed and can be accessed via"
959 ewarn "/usr/bin/python2.x."
960 ewarn
961 ebeep 5
962 }
963
964 src_test() {
965 # Tests won't work when cross compiling
966 if tc-is-cross-compiler ; then
967 elog "Disabling tests due to crosscompiling."
968 return
969 fi
970
971 # PYTHON_DONTCOMPILE=1 breaks test_import
972 unset PYTHON_DONTCOMPILE
973
974 #skip all tests that fail during emerge but pass without emerge:
975 #(See bug# 67970)
976 local skip_tests="distutils global mimetools minidom mmap posix pyexpat sax strptime subprocess syntax tcl time urllib urllib2 webbrowser xml_etree"
977
978 for test in ${skip_tests} ; do
979 mv "${S}"/Lib/test/test_${test}.py "${T}"
980 done
981
982 # rerun failed tests in verbose mode (regrtest -w)
983 EXTRATESTOPTS="-w" make test || die "make test failed"
984
985 for test in ${skip_tests} ; do
986 mv "${T}"/test_${test}.py "${S}"/Lib/test/test_${test}.py
987 done
988
989 elog "Portage skipped the following tests which aren't able to run from emerge:"
990 for test in ${skip_tests} ; do
991 elog "test_${test}.py"
992 done
993
994 elog "If you'd like to run them, you may:"
995 elog "cd /usr/lib/python${PYVER}/test"
996 elog "and run the tests separately."
997 }
998
999
1000
1001 --
1002 gentoo-commits@l.g.o mailing list