Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pypy/
Date: Fri, 03 Sep 2021 06:57:12
Message-Id: 1630652160.4bbcbad6fa179143a46e8079af38455b3fa79104.mgorny@gentoo
1 commit: 4bbcbad6fa179143a46e8079af38455b3fa79104
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 3 06:56:00 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 3 06:56:00 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bbcbad6
7
8 dev-python/pypy: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pypy/Manifest | 7 --
13 dev-python/pypy/pypy-7.3.4.ebuild | 160 -------------------------------
14 dev-python/pypy/pypy-7.3.4_p1.ebuild | 160 -------------------------------
15 dev-python/pypy/pypy-7.3.5.ebuild | 160 -------------------------------
16 dev-python/pypy/pypy-7.3.5_rc3.ebuild | 160 -------------------------------
17 dev-python/pypy/pypy-7.3.5_rc3_p1.ebuild | 160 -------------------------------
18 6 files changed, 807 deletions(-)
19
20 diff --git a/dev-python/pypy/Manifest b/dev-python/pypy/Manifest
21 index 4a58be89bf3..b6cf46a7358 100644
22 --- a/dev-python/pypy/Manifest
23 +++ b/dev-python/pypy/Manifest
24 @@ -1,9 +1,2 @@
25 -DIST pypy2.7-gentoo-patches-7.3.4.tar.xz 7844 BLAKE2B d06694fa085667e40ef8805c29f7ccf95b49f9de4e99e3ebfa3d69c4202a0ddcebb54c524d7d9f9ec67573a8d2ebe38fb7023d4d3ecef67afc907ecef5c16c02 SHA512 aa8ffefb5d30070ae86c1c14c55c277e39d3da66aea3a0951319158fb65e716e7fa7864e8bf5d26314d4b2a8030c766b63cad6a3663822d2875cd8cc1f3f2de5
26 -DIST pypy2.7-gentoo-patches-7.3.4_p1.tar.xz 8880 BLAKE2B dbf76e26b38187aafc5d60ee6189148d6211624689d5c6151d9c77ea5d744774db1bdf7230f97da16623045525449eeefc9d6ead168d8fdb166593c203918601 SHA512 78ed998ec6b8f2ac4bdd381496477d5e337841b1d7da0e77bd39a4748d3dd1a08ac6353561ca618d4cade24d26756ff4c221459162bc532e6597b8e9c7cd8d62
27 -DIST pypy2.7-gentoo-patches-7.3.5.tar.xz 6928 BLAKE2B 41aff14411882e60102866a41de6a2c13983d5489c9ed928e2823714883b5cca289c093426fdec35b6df8d17de7a96528d799e10412a0f2f02563e152acf24ea SHA512 f12c1a414cf40e86e9d2a7d1cdfaaacc1045f8043da479b5270ef983ffcf01418a70bbd21ae740abf544091cdc5026bffe467d631242d5e9e0863a64fa8d026b
28 DIST pypy2.7-gentoo-patches-7.3.5_p2.tar.xz 8976 BLAKE2B 4bd12fa964da45a516b6d8cee8f2b9b1cd4cac9ee2e6369de1e8be5be2abab77e60a0fdc9416a76624b22f385135659b84edf7c64aa98f59a1c94f837c7e0d20 SHA512 ab47d5a0199997501f246399c3650919cc20423cc7e9517f16d1640e1863819016a944659e10af3e8ca803060f983546603feaba7c8f4cc3fb4996506fe59919
29 -DIST pypy2.7-gentoo-patches-7.3.5rc3.tar.xz 5796 BLAKE2B b1c0fb0a8d86d117a9d4102777605eedd026b614f4b66272b3fc5da246bbe5edf516e95a40471117b61078c18b9fc615e55e0992a5d0a1be7caf9026ee26b6be SHA512 8699813837dfa4560a6e73b96f770c5d5999ce008e17cf62a856a454cb0b63146787a54934874162c79345488959e0936b3bd03823bc9f8e276f80df1122f7a8
30 -DIST pypy2.7-gentoo-patches-7.3.5rc3_p1.tar.xz 6932 BLAKE2B 730c52170dc5b6e893dc8c500b0cfd6bbf84830a4813e808a6a091fcd521bf58496fbe66c93b3bfc19a9032be2fb14ed182542d0831a5fd7e862c3fcdb4f5faa SHA512 088dad634acfb052992d0c4a3c54ba0e7f227c86848c88a94e94d84a9f7447a552aafd5566f39af0918b6b4c9dd279da3c698d0d8c9d362bd5ba13aa3f4a4d27
31 -DIST pypy2.7-v7.3.4-src.tar.bz2 21571561 BLAKE2B d0ac56fadec63fe7e65728c36c2aaf96fc5f54919dddbca9571a24c42a9e3e21f672f84555a18a384c4715f0489bd7aef009c0a47b635de88c472a93e2ae8d71 SHA512 4c18c2dbfbf0cc1034bea773828204df77aec7ef82119fb94e5cb762ce1783e00ad70e99d1432b4948dc132e726bdc6015f4a5bf10a5b10415bcfe99da2ecd17
32 DIST pypy2.7-v7.3.5-src.tar.bz2 21572184 BLAKE2B 388b8623c2c5de839dea0e60acc5e11a6a774b4a6cdc051691053a97fe13ec12c6735a4be64015653ef420c0d8af2c79d8faa90a7dfc3042e29f35f4e1ded6c3 SHA512 a30c666c29eec7cca7e2e52f26480958b5885cd59c6b2e3d3c0d8c1cc55c298e878fc95f88e38a4297bb3d7d1cc1f77470de958e5acfd317e1fc8bdd5d013dcb
33 -DIST pypy2.7-v7.3.5rc3-src.tar.bz2 21563312 BLAKE2B e343dcd617026ea5f951f3d24deeb59736c9a6ecc91d1b9c1bd980b6f3c239a5bf0edb9b72a0847a6aeeaead8aca9ecf537af81c9fcf0a2f6647c99edc0d1735 SHA512 e080771ea10a30820f8844b3f512a7681f2e619e8a37fa8ac60198f3c8c3780a8e08aa63749be375c00cd547994f428df44e2cd9f61b272b215ded433374e0a1
34
35 diff --git a/dev-python/pypy/pypy-7.3.4.ebuild b/dev-python/pypy/pypy-7.3.4.ebuild
36 deleted file mode 100644
37 index d6dd6887ee8..00000000000
38 --- a/dev-python/pypy/pypy-7.3.4.ebuild
39 +++ /dev/null
40 @@ -1,160 +0,0 @@
41 -# Copyright 1999-2021 Gentoo Authors
42 -# Distributed under the terms of the GNU General Public License v2
43 -
44 -EAPI=7
45 -
46 -inherit pax-utils python-utils-r1
47 -
48 -PYPY_PV=${PV%_p*}
49 -MY_P=pypy2.7-v${PYPY_PV}
50 -PATCHSET="pypy2.7-gentoo-patches-${PV}"
51 -
52 -DESCRIPTION="A fast, compliant alternative implementation of the Python language"
53 -HOMEPAGE="https://www.pypy.org/"
54 -SRC_URI="https://buildbot.pypy.org/pypy/${MY_P}-src.tar.bz2
55 - https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz"
56 -S="${WORKDIR}/${MY_P}-src"
57 -
58 -LICENSE="MIT"
59 -# pypy -c 'import sysconfig; print sysconfig.get_config_var("SOABI")'
60 -SLOT="0/73"
61 -KEYWORDS="amd64 ~arm64 ~ppc64 x86 ~amd64-linux ~x86-linux"
62 -IUSE="bzip2 gdbm +jit ncurses sqlite tk"
63 -
64 -RDEPEND="
65 - || (
66 - >=dev-python/pypy-exe-${PV}:${PYPY_PV}[bzip2?,ncurses?]
67 - >=dev-python/pypy-exe-bin-${PV}:${PYPY_PV}
68 - )
69 - dev-libs/openssl:0=
70 - gdbm? ( sys-libs/gdbm:0= )
71 - sqlite? ( dev-db/sqlite:3= )
72 - tk? (
73 - dev-lang/tk:0=
74 - dev-tcltk/tix:0=
75 - )
76 - !<dev-python/pypy-bin-7.3.0:0"
77 -DEPEND="${RDEPEND}"
78 -
79 -src_prepare() {
80 - local PATCHES=(
81 - "${WORKDIR}/${PATCHSET}"
82 - )
83 - default
84 -
85 - sed -e "s^@EPREFIX@^${EPREFIX}^" \
86 - -i lib-python/2.7/distutils/command/install.py || die
87 -}
88 -
89 -src_compile() {
90 - # copy over to make sys.prefix happy
91 - cp -p "${BROOT}"/usr/lib/pypy2.7/pypy-c-${PYPY_PV} pypy-c || die
92 - cp -p "${BROOT}"/usr/lib/pypy2.7/include/${PYPY_PV}/* include/ || die
93 - # (not installed by pypy)
94 - rm pypy/module/cpyext/include/_numpypy/numpy/README || die
95 - mv pypy/module/cpyext/include/* include/ || die
96 - mv pypy/module/cpyext/parse/*.h include/ || die
97 - pax-mark m pypy-c
98 -
99 - einfo "Generating caches and CFFI modules ..."
100 -
101 - # Generate Grammar and PatternGrammar pickles.
102 - ./pypy-c -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \
103 - || die "Generation of Grammar and PatternGrammar pickles failed"
104 -
105 - # Generate cffi modules
106 - # Please keep in sync with pypy/tool/build_cffi_imports.py!
107 -#cffi_build_scripts = {
108 -# "_ssl": "_ssl_build.py",
109 -# "sqlite3": "_sqlite3_build.py",
110 -# "audioop": "_audioop_build.py",
111 -# "tk": "_tkinter/tklib_build.py",
112 -# "curses": "_curses_build.py" if sys.platform != "win32" else None,
113 -# "syslog": "_syslog_build.py" if sys.platform != "win32" else None,
114 -# "gdbm": "_gdbm_build.py" if sys.platform != "win32" else None,
115 -# "pwdgrp": "_pwdgrp_build.py" if sys.platform != "win32" else None,
116 -# "resource": "_resource_build.py" if sys.platform != "win32" else None,
117 - cffi_targets=( ssl audioop syslog pwdgrp resource )
118 - use gdbm && cffi_targets+=( gdbm )
119 - use ncurses && cffi_targets+=( curses )
120 - use sqlite && cffi_targets+=( sqlite3 )
121 - use tk && cffi_targets+=( tkinter/tklib )
122 -
123 - local t
124 - # all modules except tkinter output to .
125 - # tkinter outputs to the correct dir ...
126 - cd lib_pypy || die
127 - for t in "${cffi_targets[@]}"; do
128 - # tkinter doesn't work via -m
129 - ../pypy-c "_${t}_build.py" || die "Failed to build CFFI bindings for ${t}"
130 - done
131 -
132 - # Cleanup temporary objects
133 - find -name "_cffi_*.[co]" -delete || die
134 - find -type d -empty -delete || die
135 -}
136 -
137 -src_test() {
138 - # (unset)
139 - local -x PYTHONDONTWRITEBYTECODE=
140 - local -x COLUMNS=80
141 -
142 - local ignored_tests=(
143 - # network
144 - --ignore=lib-python/2.7/test/test_urllibnet.py
145 - --ignore=lib-python/2.7/test/test_urllib2net.py
146 - # lots of free space
147 - --ignore=lib-python/2.7/test/test_zipfile64.py
148 - )
149 -
150 - ./pypy-c ./pypy/test_all.py --pypy=./pypy-c -vv \
151 - "${ignored_tests[@]}" lib-python || die
152 -}
153 -
154 -src_install() {
155 - local dest=/usr/lib/pypy2.7
156 - einfo "Installing PyPy ..."
157 - dosym pypy-c-${PYPY_PV} "${dest}/pypy-c"
158 - insinto "${dest}"
159 - # preserve mtimes to avoid obsoleting caches
160 - insopts -p
161 - doins -r include lib_pypy lib-python
162 -
163 - # replace copied headers with symlinks
164 - for x in "${BROOT}"/usr/lib/pypy2.7/include/${PYPY_PV}/*; do
165 - dosym "${PYPY_PV}/${x##*/}" "${dest}/include/${x##*/}"
166 - done
167 -
168 - dosym ../lib/pypy2.7/pypy-c /usr/bin/pypy
169 - dodoc README.rst
170 -
171 - if ! use gdbm; then
172 - rm -r "${ED}${dest}"/lib_pypy/gdbm.py \
173 - "${ED}${dest}"/lib-python/*2.7/test/test_gdbm.py || die
174 - fi
175 - if ! use sqlite; then
176 - rm -r "${ED}${dest}"/lib-python/*2.7/sqlite3 \
177 - "${ED}${dest}"/lib_pypy/_sqlite3.py \
178 - "${ED}${dest}"/lib-python/*2.7/test/test_sqlite.py || die
179 - fi
180 - if ! use tk; then
181 - rm -r "${ED}${dest}"/lib-python/*2.7/{idlelib,lib-tk} \
182 - "${ED}${dest}"/lib_pypy/_tkinter \
183 - "${ED}${dest}"/lib-python/*2.7/test/test_{tcl,tk,ttk*}.py || die
184 - fi
185 -
186 - local -x EPYTHON=pypy
187 - local -x PYTHON=${ED}${dest}/pypy-c-${PYPY_PV}
188 - # temporarily copy to build tree to facilitate module builds
189 - cp -p "${BROOT}${dest}/pypy-c-${PYPY_PV}" "${PYTHON}" || die
190 -
191 - echo "EPYTHON='${EPYTHON}'" > epython.py || die
192 - python_moduleinto /usr/lib/pypy2.7/site-packages
193 - python_domodule epython.py
194 -
195 - einfo "Byte-compiling Python standard library..."
196 - python_optimize "${ED}${dest}"
197 -
198 - # remove to avoid collisions
199 - rm "${PYTHON}" || die
200 -}
201
202 diff --git a/dev-python/pypy/pypy-7.3.4_p1.ebuild b/dev-python/pypy/pypy-7.3.4_p1.ebuild
203 deleted file mode 100644
204 index 5900a0ab55e..00000000000
205 --- a/dev-python/pypy/pypy-7.3.4_p1.ebuild
206 +++ /dev/null
207 @@ -1,160 +0,0 @@
208 -# Copyright 1999-2021 Gentoo Authors
209 -# Distributed under the terms of the GNU General Public License v2
210 -
211 -EAPI=7
212 -
213 -inherit pax-utils python-utils-r1
214 -
215 -PYPY_PV=${PV%_p*}
216 -MY_P=pypy2.7-v${PYPY_PV}
217 -PATCHSET="pypy2.7-gentoo-patches-${PV}"
218 -
219 -DESCRIPTION="A fast, compliant alternative implementation of the Python language"
220 -HOMEPAGE="https://www.pypy.org/"
221 -SRC_URI="https://buildbot.pypy.org/pypy/${MY_P}-src.tar.bz2
222 - https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz"
223 -S="${WORKDIR}/${MY_P}-src"
224 -
225 -LICENSE="MIT"
226 -# pypy -c 'import sysconfig; print sysconfig.get_config_var("SOABI")'
227 -SLOT="0/73"
228 -KEYWORDS="amd64 ~arm64 ~ppc64 x86 ~amd64-linux ~x86-linux"
229 -IUSE="bzip2 gdbm +jit ncurses sqlite tk"
230 -
231 -RDEPEND="
232 - || (
233 - >=dev-python/pypy-exe-${PYPY_PV}:${PYPY_PV}[bzip2?,ncurses?]
234 - >=dev-python/pypy-exe-bin-${PYPY_PV}:${PYPY_PV}
235 - )
236 - dev-libs/openssl:0=
237 - gdbm? ( sys-libs/gdbm:0= )
238 - sqlite? ( dev-db/sqlite:3= )
239 - tk? (
240 - dev-lang/tk:0=
241 - dev-tcltk/tix:0=
242 - )
243 - !<dev-python/pypy-bin-7.3.0:0"
244 -DEPEND="${RDEPEND}"
245 -
246 -src_prepare() {
247 - local PATCHES=(
248 - "${WORKDIR}/${PATCHSET}"
249 - )
250 - default
251 -
252 - sed -e "s^@EPREFIX@^${EPREFIX}^" \
253 - -i lib-python/2.7/distutils/command/install.py || die
254 -}
255 -
256 -src_compile() {
257 - # copy over to make sys.prefix happy
258 - cp -p "${BROOT}"/usr/lib/pypy2.7/pypy-c-${PYPY_PV} pypy-c || die
259 - cp -p "${BROOT}"/usr/lib/pypy2.7/include/${PYPY_PV}/* include/ || die
260 - # (not installed by pypy)
261 - rm pypy/module/cpyext/include/_numpypy/numpy/README || die
262 - mv pypy/module/cpyext/include/* include/ || die
263 - mv pypy/module/cpyext/parse/*.h include/ || die
264 - pax-mark m pypy-c
265 -
266 - einfo "Generating caches and CFFI modules ..."
267 -
268 - # Generate Grammar and PatternGrammar pickles.
269 - ./pypy-c -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \
270 - || die "Generation of Grammar and PatternGrammar pickles failed"
271 -
272 - # Generate cffi modules
273 - # Please keep in sync with pypy/tool/build_cffi_imports.py!
274 -#cffi_build_scripts = {
275 -# "_ssl": "_ssl_build.py",
276 -# "sqlite3": "_sqlite3_build.py",
277 -# "audioop": "_audioop_build.py",
278 -# "tk": "_tkinter/tklib_build.py",
279 -# "curses": "_curses_build.py" if sys.platform != "win32" else None,
280 -# "syslog": "_syslog_build.py" if sys.platform != "win32" else None,
281 -# "gdbm": "_gdbm_build.py" if sys.platform != "win32" else None,
282 -# "pwdgrp": "_pwdgrp_build.py" if sys.platform != "win32" else None,
283 -# "resource": "_resource_build.py" if sys.platform != "win32" else None,
284 - cffi_targets=( ssl audioop syslog pwdgrp resource )
285 - use gdbm && cffi_targets+=( gdbm )
286 - use ncurses && cffi_targets+=( curses )
287 - use sqlite && cffi_targets+=( sqlite3 )
288 - use tk && cffi_targets+=( tkinter/tklib )
289 -
290 - local t
291 - # all modules except tkinter output to .
292 - # tkinter outputs to the correct dir ...
293 - cd lib_pypy || die
294 - for t in "${cffi_targets[@]}"; do
295 - # tkinter doesn't work via -m
296 - ../pypy-c "_${t}_build.py" || die "Failed to build CFFI bindings for ${t}"
297 - done
298 -
299 - # Cleanup temporary objects
300 - find -name "_cffi_*.[co]" -delete || die
301 - find -type d -empty -delete || die
302 -}
303 -
304 -src_test() {
305 - # (unset)
306 - local -x PYTHONDONTWRITEBYTECODE=
307 - local -x COLUMNS=80
308 -
309 - local ignored_tests=(
310 - # network
311 - --ignore=lib-python/2.7/test/test_urllibnet.py
312 - --ignore=lib-python/2.7/test/test_urllib2net.py
313 - # lots of free space
314 - --ignore=lib-python/2.7/test/test_zipfile64.py
315 - )
316 -
317 - ./pypy-c ./pypy/test_all.py --pypy=./pypy-c -vv \
318 - "${ignored_tests[@]}" lib-python || die
319 -}
320 -
321 -src_install() {
322 - local dest=/usr/lib/pypy2.7
323 - einfo "Installing PyPy ..."
324 - dosym pypy-c-${PYPY_PV} "${dest}/pypy-c"
325 - insinto "${dest}"
326 - # preserve mtimes to avoid obsoleting caches
327 - insopts -p
328 - doins -r include lib_pypy lib-python
329 -
330 - # replace copied headers with symlinks
331 - for x in "${BROOT}"/usr/lib/pypy2.7/include/${PYPY_PV}/*; do
332 - dosym "${PYPY_PV}/${x##*/}" "${dest}/include/${x##*/}"
333 - done
334 -
335 - dosym ../lib/pypy2.7/pypy-c /usr/bin/pypy
336 - dodoc README.rst
337 -
338 - if ! use gdbm; then
339 - rm -r "${ED}${dest}"/lib_pypy/gdbm.py \
340 - "${ED}${dest}"/lib-python/*2.7/test/test_gdbm.py || die
341 - fi
342 - if ! use sqlite; then
343 - rm -r "${ED}${dest}"/lib-python/*2.7/sqlite3 \
344 - "${ED}${dest}"/lib_pypy/_sqlite3.py \
345 - "${ED}${dest}"/lib-python/*2.7/test/test_sqlite.py || die
346 - fi
347 - if ! use tk; then
348 - rm -r "${ED}${dest}"/lib-python/*2.7/{idlelib,lib-tk} \
349 - "${ED}${dest}"/lib_pypy/_tkinter \
350 - "${ED}${dest}"/lib-python/*2.7/test/test_{tcl,tk,ttk*}.py || die
351 - fi
352 -
353 - local -x EPYTHON=pypy
354 - local -x PYTHON=${ED}${dest}/pypy-c-${PYPY_PV}
355 - # temporarily copy to build tree to facilitate module builds
356 - cp -p "${BROOT}${dest}/pypy-c-${PYPY_PV}" "${PYTHON}" || die
357 -
358 - echo "EPYTHON='${EPYTHON}'" > epython.py || die
359 - python_moduleinto /usr/lib/pypy2.7/site-packages
360 - python_domodule epython.py
361 -
362 - einfo "Byte-compiling Python standard library..."
363 - python_optimize "${ED}${dest}"
364 -
365 - # remove to avoid collisions
366 - rm "${PYTHON}" || die
367 -}
368
369 diff --git a/dev-python/pypy/pypy-7.3.5.ebuild b/dev-python/pypy/pypy-7.3.5.ebuild
370 deleted file mode 100644
371 index 7109af78d9d..00000000000
372 --- a/dev-python/pypy/pypy-7.3.5.ebuild
373 +++ /dev/null
374 @@ -1,160 +0,0 @@
375 -# Copyright 1999-2021 Gentoo Authors
376 -# Distributed under the terms of the GNU General Public License v2
377 -
378 -EAPI=7
379 -
380 -inherit pax-utils python-utils-r1
381 -
382 -PYPY_PV=${PV%_p*}
383 -MY_P=pypy2.7-v${PYPY_PV/_}
384 -PATCHSET="pypy2.7-gentoo-patches-${PV/_}"
385 -
386 -DESCRIPTION="A fast, compliant alternative implementation of the Python language"
387 -HOMEPAGE="https://www.pypy.org/"
388 -SRC_URI="https://buildbot.pypy.org/pypy/${MY_P}-src.tar.bz2
389 - https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz"
390 -S="${WORKDIR}/${MY_P}-src"
391 -
392 -LICENSE="MIT"
393 -# pypy -c 'import sysconfig; print sysconfig.get_config_var("SOABI")'
394 -SLOT="0/73"
395 -KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
396 -IUSE="bzip2 gdbm +jit ncurses sqlite tk"
397 -
398 -RDEPEND="
399 - || (
400 - >=dev-python/pypy-exe-${PYPY_PV}:${PYPY_PV}[bzip2?,ncurses?]
401 - >=dev-python/pypy-exe-bin-${PYPY_PV}:${PYPY_PV}
402 - )
403 - dev-libs/openssl:0=
404 - gdbm? ( sys-libs/gdbm:0= )
405 - sqlite? ( dev-db/sqlite:3= )
406 - tk? (
407 - dev-lang/tk:0=
408 - dev-tcltk/tix:0=
409 - )
410 - !<dev-python/pypy-bin-7.3.0:0"
411 -DEPEND="${RDEPEND}"
412 -
413 -src_prepare() {
414 - local PATCHES=(
415 - "${WORKDIR}/${PATCHSET}"
416 - )
417 - default
418 -
419 - sed -e "s^@EPREFIX@^${EPREFIX}^" \
420 - -i lib-python/2.7/distutils/command/install.py || die
421 -}
422 -
423 -src_compile() {
424 - # copy over to make sys.prefix happy
425 - cp -p "${BROOT}"/usr/lib/pypy2.7/pypy-c-${PYPY_PV} pypy-c || die
426 - cp -p "${BROOT}"/usr/lib/pypy2.7/include/${PYPY_PV}/* include/ || die
427 - # (not installed by pypy)
428 - rm pypy/module/cpyext/include/_numpypy/numpy/README || die
429 - mv pypy/module/cpyext/include/* include/ || die
430 - mv pypy/module/cpyext/parse/*.h include/ || die
431 - pax-mark m pypy-c
432 -
433 - einfo "Generating caches and CFFI modules ..."
434 -
435 - # Generate Grammar and PatternGrammar pickles.
436 - ./pypy-c -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \
437 - || die "Generation of Grammar and PatternGrammar pickles failed"
438 -
439 - # Generate cffi modules
440 - # Please keep in sync with pypy/tool/build_cffi_imports.py!
441 -#cffi_build_scripts = {
442 -# "_ssl": "_ssl_build.py",
443 -# "sqlite3": "_sqlite3_build.py",
444 -# "audioop": "_audioop_build.py",
445 -# "tk": "_tkinter/tklib_build.py",
446 -# "curses": "_curses_build.py" if sys.platform != "win32" else None,
447 -# "syslog": "_syslog_build.py" if sys.platform != "win32" else None,
448 -# "gdbm": "_gdbm_build.py" if sys.platform != "win32" else None,
449 -# "pwdgrp": "_pwdgrp_build.py" if sys.platform != "win32" else None,
450 -# "resource": "_resource_build.py" if sys.platform != "win32" else None,
451 - cffi_targets=( ssl audioop syslog pwdgrp resource )
452 - use gdbm && cffi_targets+=( gdbm )
453 - use ncurses && cffi_targets+=( curses )
454 - use sqlite && cffi_targets+=( sqlite3 )
455 - use tk && cffi_targets+=( tkinter/tklib )
456 -
457 - local t
458 - # all modules except tkinter output to .
459 - # tkinter outputs to the correct dir ...
460 - cd lib_pypy || die
461 - for t in "${cffi_targets[@]}"; do
462 - # tkinter doesn't work via -m
463 - ../pypy-c "_${t}_build.py" || die "Failed to build CFFI bindings for ${t}"
464 - done
465 -
466 - # Cleanup temporary objects
467 - find -name "_cffi_*.[co]" -delete || die
468 - find -type d -empty -delete || die
469 -}
470 -
471 -src_test() {
472 - # (unset)
473 - local -x PYTHONDONTWRITEBYTECODE=
474 - local -x COLUMNS=80
475 -
476 - local ignored_tests=(
477 - # network
478 - --ignore=lib-python/2.7/test/test_urllibnet.py
479 - --ignore=lib-python/2.7/test/test_urllib2net.py
480 - # lots of free space
481 - --ignore=lib-python/2.7/test/test_zipfile64.py
482 - )
483 -
484 - ./pypy-c ./pypy/test_all.py --pypy=./pypy-c -vv \
485 - "${ignored_tests[@]}" lib-python || die
486 -}
487 -
488 -src_install() {
489 - local dest=/usr/lib/pypy2.7
490 - einfo "Installing PyPy ..."
491 - dosym pypy-c-${PYPY_PV} "${dest}/pypy-c"
492 - insinto "${dest}"
493 - # preserve mtimes to avoid obsoleting caches
494 - insopts -p
495 - doins -r include lib_pypy lib-python
496 -
497 - # replace copied headers with symlinks
498 - for x in "${BROOT}"/usr/lib/pypy2.7/include/${PYPY_PV}/*; do
499 - dosym "${PYPY_PV}/${x##*/}" "${dest}/include/${x##*/}"
500 - done
501 -
502 - dosym ../lib/pypy2.7/pypy-c /usr/bin/pypy
503 - dodoc README.rst
504 -
505 - if ! use gdbm; then
506 - rm -r "${ED}${dest}"/lib_pypy/gdbm.py \
507 - "${ED}${dest}"/lib-python/*2.7/test/test_gdbm.py || die
508 - fi
509 - if ! use sqlite; then
510 - rm -r "${ED}${dest}"/lib-python/*2.7/sqlite3 \
511 - "${ED}${dest}"/lib_pypy/_sqlite3.py \
512 - "${ED}${dest}"/lib-python/*2.7/test/test_sqlite.py || die
513 - fi
514 - if ! use tk; then
515 - rm -r "${ED}${dest}"/lib-python/*2.7/{idlelib,lib-tk} \
516 - "${ED}${dest}"/lib_pypy/_tkinter \
517 - "${ED}${dest}"/lib-python/*2.7/test/test_{tcl,tk,ttk*}.py || die
518 - fi
519 -
520 - local -x EPYTHON=pypy
521 - local -x PYTHON=${ED}${dest}/pypy-c-${PYPY_PV}
522 - # temporarily copy to build tree to facilitate module builds
523 - cp -p "${BROOT}${dest}/pypy-c-${PYPY_PV}" "${PYTHON}" || die
524 -
525 - echo "EPYTHON='${EPYTHON}'" > epython.py || die
526 - python_moduleinto /usr/lib/pypy2.7/site-packages
527 - python_domodule epython.py
528 -
529 - einfo "Byte-compiling Python standard library..."
530 - python_optimize "${ED}${dest}"
531 -
532 - # remove to avoid collisions
533 - rm "${PYTHON}" || die
534 -}
535
536 diff --git a/dev-python/pypy/pypy-7.3.5_rc3.ebuild b/dev-python/pypy/pypy-7.3.5_rc3.ebuild
537 deleted file mode 100644
538 index 82edf15baf9..00000000000
539 --- a/dev-python/pypy/pypy-7.3.5_rc3.ebuild
540 +++ /dev/null
541 @@ -1,160 +0,0 @@
542 -# Copyright 1999-2021 Gentoo Authors
543 -# Distributed under the terms of the GNU General Public License v2
544 -
545 -EAPI=7
546 -
547 -inherit pax-utils python-utils-r1
548 -
549 -PYPY_PV=${PV%_p*}
550 -MY_P=pypy2.7-v${PYPY_PV/_}
551 -PATCHSET="pypy2.7-gentoo-patches-${PV/_}"
552 -
553 -DESCRIPTION="A fast, compliant alternative implementation of the Python language"
554 -HOMEPAGE="https://www.pypy.org/"
555 -SRC_URI="https://buildbot.pypy.org/pypy/${MY_P}-src.tar.bz2
556 - https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz"
557 -S="${WORKDIR}/${MY_P}-src"
558 -
559 -LICENSE="MIT"
560 -# pypy -c 'import sysconfig; print sysconfig.get_config_var("SOABI")'
561 -SLOT="0/73"
562 -KEYWORDS=""
563 -IUSE="bzip2 gdbm +jit ncurses sqlite tk"
564 -
565 -RDEPEND="
566 - || (
567 - >=dev-python/pypy-exe-${PV}:${PYPY_PV}[bzip2?,ncurses?]
568 - >=dev-python/pypy-exe-bin-${PV}:${PYPY_PV}
569 - )
570 - dev-libs/openssl:0=
571 - gdbm? ( sys-libs/gdbm:0= )
572 - sqlite? ( dev-db/sqlite:3= )
573 - tk? (
574 - dev-lang/tk:0=
575 - dev-tcltk/tix:0=
576 - )
577 - !<dev-python/pypy-bin-7.3.0:0"
578 -DEPEND="${RDEPEND}"
579 -
580 -src_prepare() {
581 - local PATCHES=(
582 - "${WORKDIR}/${PATCHSET}"
583 - )
584 - default
585 -
586 - sed -e "s^@EPREFIX@^${EPREFIX}^" \
587 - -i lib-python/2.7/distutils/command/install.py || die
588 -}
589 -
590 -src_compile() {
591 - # copy over to make sys.prefix happy
592 - cp -p "${BROOT}"/usr/lib/pypy2.7/pypy-c-${PYPY_PV} pypy-c || die
593 - cp -p "${BROOT}"/usr/lib/pypy2.7/include/${PYPY_PV}/* include/ || die
594 - # (not installed by pypy)
595 - rm pypy/module/cpyext/include/_numpypy/numpy/README || die
596 - mv pypy/module/cpyext/include/* include/ || die
597 - mv pypy/module/cpyext/parse/*.h include/ || die
598 - pax-mark m pypy-c
599 -
600 - einfo "Generating caches and CFFI modules ..."
601 -
602 - # Generate Grammar and PatternGrammar pickles.
603 - ./pypy-c -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \
604 - || die "Generation of Grammar and PatternGrammar pickles failed"
605 -
606 - # Generate cffi modules
607 - # Please keep in sync with pypy/tool/build_cffi_imports.py!
608 -#cffi_build_scripts = {
609 -# "_ssl": "_ssl_build.py",
610 -# "sqlite3": "_sqlite3_build.py",
611 -# "audioop": "_audioop_build.py",
612 -# "tk": "_tkinter/tklib_build.py",
613 -# "curses": "_curses_build.py" if sys.platform != "win32" else None,
614 -# "syslog": "_syslog_build.py" if sys.platform != "win32" else None,
615 -# "gdbm": "_gdbm_build.py" if sys.platform != "win32" else None,
616 -# "pwdgrp": "_pwdgrp_build.py" if sys.platform != "win32" else None,
617 -# "resource": "_resource_build.py" if sys.platform != "win32" else None,
618 - cffi_targets=( ssl audioop syslog pwdgrp resource )
619 - use gdbm && cffi_targets+=( gdbm )
620 - use ncurses && cffi_targets+=( curses )
621 - use sqlite && cffi_targets+=( sqlite3 )
622 - use tk && cffi_targets+=( tkinter/tklib )
623 -
624 - local t
625 - # all modules except tkinter output to .
626 - # tkinter outputs to the correct dir ...
627 - cd lib_pypy || die
628 - for t in "${cffi_targets[@]}"; do
629 - # tkinter doesn't work via -m
630 - ../pypy-c "_${t}_build.py" || die "Failed to build CFFI bindings for ${t}"
631 - done
632 -
633 - # Cleanup temporary objects
634 - find -name "_cffi_*.[co]" -delete || die
635 - find -type d -empty -delete || die
636 -}
637 -
638 -src_test() {
639 - # (unset)
640 - local -x PYTHONDONTWRITEBYTECODE=
641 - local -x COLUMNS=80
642 -
643 - local ignored_tests=(
644 - # network
645 - --ignore=lib-python/2.7/test/test_urllibnet.py
646 - --ignore=lib-python/2.7/test/test_urllib2net.py
647 - # lots of free space
648 - --ignore=lib-python/2.7/test/test_zipfile64.py
649 - )
650 -
651 - ./pypy-c ./pypy/test_all.py --pypy=./pypy-c -vv \
652 - "${ignored_tests[@]}" lib-python || die
653 -}
654 -
655 -src_install() {
656 - local dest=/usr/lib/pypy2.7
657 - einfo "Installing PyPy ..."
658 - dosym pypy-c-${PYPY_PV} "${dest}/pypy-c"
659 - insinto "${dest}"
660 - # preserve mtimes to avoid obsoleting caches
661 - insopts -p
662 - doins -r include lib_pypy lib-python
663 -
664 - # replace copied headers with symlinks
665 - for x in "${BROOT}"/usr/lib/pypy2.7/include/${PYPY_PV}/*; do
666 - dosym "${PYPY_PV}/${x##*/}" "${dest}/include/${x##*/}"
667 - done
668 -
669 - dosym ../lib/pypy2.7/pypy-c /usr/bin/pypy
670 - dodoc README.rst
671 -
672 - if ! use gdbm; then
673 - rm -r "${ED}${dest}"/lib_pypy/gdbm.py \
674 - "${ED}${dest}"/lib-python/*2.7/test/test_gdbm.py || die
675 - fi
676 - if ! use sqlite; then
677 - rm -r "${ED}${dest}"/lib-python/*2.7/sqlite3 \
678 - "${ED}${dest}"/lib_pypy/_sqlite3.py \
679 - "${ED}${dest}"/lib-python/*2.7/test/test_sqlite.py || die
680 - fi
681 - if ! use tk; then
682 - rm -r "${ED}${dest}"/lib-python/*2.7/{idlelib,lib-tk} \
683 - "${ED}${dest}"/lib_pypy/_tkinter \
684 - "${ED}${dest}"/lib-python/*2.7/test/test_{tcl,tk,ttk*}.py || die
685 - fi
686 -
687 - local -x EPYTHON=pypy
688 - local -x PYTHON=${ED}${dest}/pypy-c-${PYPY_PV}
689 - # temporarily copy to build tree to facilitate module builds
690 - cp -p "${BROOT}${dest}/pypy-c-${PYPY_PV}" "${PYTHON}" || die
691 -
692 - echo "EPYTHON='${EPYTHON}'" > epython.py || die
693 - python_moduleinto /usr/lib/pypy2.7/site-packages
694 - python_domodule epython.py
695 -
696 - einfo "Byte-compiling Python standard library..."
697 - python_optimize "${ED}${dest}"
698 -
699 - # remove to avoid collisions
700 - rm "${PYTHON}" || die
701 -}
702
703 diff --git a/dev-python/pypy/pypy-7.3.5_rc3_p1.ebuild b/dev-python/pypy/pypy-7.3.5_rc3_p1.ebuild
704 deleted file mode 100644
705 index 47c2d5b3530..00000000000
706 --- a/dev-python/pypy/pypy-7.3.5_rc3_p1.ebuild
707 +++ /dev/null
708 @@ -1,160 +0,0 @@
709 -# Copyright 1999-2021 Gentoo Authors
710 -# Distributed under the terms of the GNU General Public License v2
711 -
712 -EAPI=7
713 -
714 -inherit pax-utils python-utils-r1
715 -
716 -PYPY_PV=${PV%_p*}
717 -MY_P=pypy2.7-v${PYPY_PV/_}
718 -PATCHSET="pypy2.7-gentoo-patches-${PV/_}"
719 -
720 -DESCRIPTION="A fast, compliant alternative implementation of the Python language"
721 -HOMEPAGE="https://www.pypy.org/"
722 -SRC_URI="https://buildbot.pypy.org/pypy/${MY_P}-src.tar.bz2
723 - https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz"
724 -S="${WORKDIR}/${MY_P}-src"
725 -
726 -LICENSE="MIT"
727 -# pypy -c 'import sysconfig; print sysconfig.get_config_var("SOABI")'
728 -SLOT="0/73"
729 -KEYWORDS=""
730 -IUSE="bzip2 gdbm +jit ncurses sqlite tk"
731 -
732 -RDEPEND="
733 - || (
734 - >=dev-python/pypy-exe-${PYPY_PV}:${PYPY_PV}[bzip2?,ncurses?]
735 - >=dev-python/pypy-exe-bin-${PYPY_PV}:${PYPY_PV}
736 - )
737 - dev-libs/openssl:0=
738 - gdbm? ( sys-libs/gdbm:0= )
739 - sqlite? ( dev-db/sqlite:3= )
740 - tk? (
741 - dev-lang/tk:0=
742 - dev-tcltk/tix:0=
743 - )
744 - !<dev-python/pypy-bin-7.3.0:0"
745 -DEPEND="${RDEPEND}"
746 -
747 -src_prepare() {
748 - local PATCHES=(
749 - "${WORKDIR}/${PATCHSET}"
750 - )
751 - default
752 -
753 - sed -e "s^@EPREFIX@^${EPREFIX}^" \
754 - -i lib-python/2.7/distutils/command/install.py || die
755 -}
756 -
757 -src_compile() {
758 - # copy over to make sys.prefix happy
759 - cp -p "${BROOT}"/usr/lib/pypy2.7/pypy-c-${PYPY_PV} pypy-c || die
760 - cp -p "${BROOT}"/usr/lib/pypy2.7/include/${PYPY_PV}/* include/ || die
761 - # (not installed by pypy)
762 - rm pypy/module/cpyext/include/_numpypy/numpy/README || die
763 - mv pypy/module/cpyext/include/* include/ || die
764 - mv pypy/module/cpyext/parse/*.h include/ || die
765 - pax-mark m pypy-c
766 -
767 - einfo "Generating caches and CFFI modules ..."
768 -
769 - # Generate Grammar and PatternGrammar pickles.
770 - ./pypy-c -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \
771 - || die "Generation of Grammar and PatternGrammar pickles failed"
772 -
773 - # Generate cffi modules
774 - # Please keep in sync with pypy/tool/build_cffi_imports.py!
775 -#cffi_build_scripts = {
776 -# "_ssl": "_ssl_build.py",
777 -# "sqlite3": "_sqlite3_build.py",
778 -# "audioop": "_audioop_build.py",
779 -# "tk": "_tkinter/tklib_build.py",
780 -# "curses": "_curses_build.py" if sys.platform != "win32" else None,
781 -# "syslog": "_syslog_build.py" if sys.platform != "win32" else None,
782 -# "gdbm": "_gdbm_build.py" if sys.platform != "win32" else None,
783 -# "pwdgrp": "_pwdgrp_build.py" if sys.platform != "win32" else None,
784 -# "resource": "_resource_build.py" if sys.platform != "win32" else None,
785 - cffi_targets=( ssl audioop syslog pwdgrp resource )
786 - use gdbm && cffi_targets+=( gdbm )
787 - use ncurses && cffi_targets+=( curses )
788 - use sqlite && cffi_targets+=( sqlite3 )
789 - use tk && cffi_targets+=( tkinter/tklib )
790 -
791 - local t
792 - # all modules except tkinter output to .
793 - # tkinter outputs to the correct dir ...
794 - cd lib_pypy || die
795 - for t in "${cffi_targets[@]}"; do
796 - # tkinter doesn't work via -m
797 - ../pypy-c "_${t}_build.py" || die "Failed to build CFFI bindings for ${t}"
798 - done
799 -
800 - # Cleanup temporary objects
801 - find -name "_cffi_*.[co]" -delete || die
802 - find -type d -empty -delete || die
803 -}
804 -
805 -src_test() {
806 - # (unset)
807 - local -x PYTHONDONTWRITEBYTECODE=
808 - local -x COLUMNS=80
809 -
810 - local ignored_tests=(
811 - # network
812 - --ignore=lib-python/2.7/test/test_urllibnet.py
813 - --ignore=lib-python/2.7/test/test_urllib2net.py
814 - # lots of free space
815 - --ignore=lib-python/2.7/test/test_zipfile64.py
816 - )
817 -
818 - ./pypy-c ./pypy/test_all.py --pypy=./pypy-c -vv \
819 - "${ignored_tests[@]}" lib-python || die
820 -}
821 -
822 -src_install() {
823 - local dest=/usr/lib/pypy2.7
824 - einfo "Installing PyPy ..."
825 - dosym pypy-c-${PYPY_PV} "${dest}/pypy-c"
826 - insinto "${dest}"
827 - # preserve mtimes to avoid obsoleting caches
828 - insopts -p
829 - doins -r include lib_pypy lib-python
830 -
831 - # replace copied headers with symlinks
832 - for x in "${BROOT}"/usr/lib/pypy2.7/include/${PYPY_PV}/*; do
833 - dosym "${PYPY_PV}/${x##*/}" "${dest}/include/${x##*/}"
834 - done
835 -
836 - dosym ../lib/pypy2.7/pypy-c /usr/bin/pypy
837 - dodoc README.rst
838 -
839 - if ! use gdbm; then
840 - rm -r "${ED}${dest}"/lib_pypy/gdbm.py \
841 - "${ED}${dest}"/lib-python/*2.7/test/test_gdbm.py || die
842 - fi
843 - if ! use sqlite; then
844 - rm -r "${ED}${dest}"/lib-python/*2.7/sqlite3 \
845 - "${ED}${dest}"/lib_pypy/_sqlite3.py \
846 - "${ED}${dest}"/lib-python/*2.7/test/test_sqlite.py || die
847 - fi
848 - if ! use tk; then
849 - rm -r "${ED}${dest}"/lib-python/*2.7/{idlelib,lib-tk} \
850 - "${ED}${dest}"/lib_pypy/_tkinter \
851 - "${ED}${dest}"/lib-python/*2.7/test/test_{tcl,tk,ttk*}.py || die
852 - fi
853 -
854 - local -x EPYTHON=pypy
855 - local -x PYTHON=${ED}${dest}/pypy-c-${PYPY_PV}
856 - # temporarily copy to build tree to facilitate module builds
857 - cp -p "${BROOT}${dest}/pypy-c-${PYPY_PV}" "${PYTHON}" || die
858 -
859 - echo "EPYTHON='${EPYTHON}'" > epython.py || die
860 - python_moduleinto /usr/lib/pypy2.7/site-packages
861 - python_domodule epython.py
862 -
863 - einfo "Byte-compiling Python standard library..."
864 - python_optimize "${ED}${dest}"
865 -
866 - # remove to avoid collisions
867 - rm "${PYTHON}" || die
868 -}