1 |
commit: 8940c2a7c85df010d851ac263ae3de9bbaf128d8 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 17 14:02:59 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 17 16:56:17 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8940c2a7 |
7 |
|
8 |
dev-python/pypy3-exe: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pypy3-exe/Manifest | 3 - |
13 |
.../files/pypy3-exe-7.3.0-gcc10-fno-common.patch | 25 ---- |
14 |
dev-python/pypy3-exe/pypy3-exe-7.3.0.ebuild | 156 --------------------- |
15 |
.../pypy3-exe/pypy3-exe-7.3.2_rc1-r100.ebuild | 151 -------------------- |
16 |
dev-python/pypy3-exe/pypy3-exe-7.3.2_rc1.ebuild | 151 -------------------- |
17 |
5 files changed, 486 deletions(-) |
18 |
|
19 |
diff --git a/dev-python/pypy3-exe/Manifest b/dev-python/pypy3-exe/Manifest |
20 |
index 45dd21d0c51..39001d40e36 100644 |
21 |
--- a/dev-python/pypy3-exe/Manifest |
22 |
+++ b/dev-python/pypy3-exe/Manifest |
23 |
@@ -1,6 +1,3 @@ |
24 |
-DIST pypy3.6-v7.3.0-src.tar.bz2 21937786 BLAKE2B c53ac32a9cca1c4624160eae9f11b5705a59613f1e5100fbb0ee86118de5a7845b8fa5087165d7f5a077d20337dfca14a1c7eadbe768995e20e249ec271ac10d SHA512 313a4254262dd8d8b995a50bddbc360cfb67add0818e51a3e9ce25bda6a9b639e9fea8efe7da6adda76dff0a86a364544a13faa516e51b9ea6c25ec99223b435 |
25 |
DIST pypy3.6-v7.3.1-src.tar.bz2 22712809 BLAKE2B 4250b3fe98c611b9635319c106b80e88ab469eab5f883babb738e175e7b7adc22c85f8ef3fdce1cdc127b521beef8d6c7862e188d8c8889c39f90136d6bbe374 SHA512 f8e32aae7f01225e0e4d6763eaac40fc02dffc3d0b6a30f22d422147f9be4f3290ea78160a912ffae311dea3d503eb31a7a4f3999d3b541fbccd93d1cef4ca56 |
26 |
-DIST pypy3.6-v7.3.2rc1-src.tar.bz2 22730858 BLAKE2B 41a0702d0077c0f546998b858bc8b76226fe8903f4819497aa284231edcb32bc8b047b0a2a35bacfb18ea11fb85de98b95998276c22a3f0dc716b16871b35a3a SHA512 1a6f93f7e767b0db5c40c1e06cadd781c6ddfb02ec86aa61a37f649fe1aa5cd71f7857052e5b48092e3bf8b5cbef6d6401097bf4c4e80c62f7dbdffcd20b70c0 |
27 |
DIST pypy3.6-v7.3.2rc2-src.tar.bz2 22750248 BLAKE2B 6a8a3c4306cb5c796ee89f3d9ece61f5d669515ae9edf4961f43c7779123554cda0f3b433f8264d3d08e531ef5fe660b494135321a11f441ae1de97ce0abb332 SHA512 a89184314d04bad646cf2e2151e2d5f27ca23a68f25e22b5c2e4f07745671e70c71d869be1c61248ee839632f7151b597fe79eb5af814967a1ae97f2c2cdb8ee |
28 |
-DIST pypy3.7-v7.3.2rc1-src.tar.bz2 24805791 BLAKE2B 7b16ba9f0b33d572facdf009701712fe1b2c1eb5a4187c3a9197973ef4da140c7704b3409c7c336e1027f89df340fcefc9e52c6ccac75b251aa79d67c98e49c4 SHA512 d2a5c02a541c0ae79cf8c8e1a38299351f9dd81d1a17724d9fe346d8eb4311e2566a319cf1b8a90d393bffdc11657f6fa2f6475441634e57701b00e74899baa0 |
29 |
DIST pypy3.7-v7.3.2rc2-src.tar.bz2 25066853 BLAKE2B 286ec0909d4b9ba9039cd9ca234a90832e99369f5e7e36a486d219661631efac186e02146dd5bc5a51521fcfdd0047c3fa5a6dbffd20cebe8ff7c209d02fec53 SHA512 c8e5dc5ded2989aa3a6b635e040c23bb8e2812101ce22a104f251e0abaa3320b61f2f611ece58d6b8a8ae9f1cbc8ca22c920f3491dd5653bcb0e05264fd54a4f |
30 |
|
31 |
diff --git a/dev-python/pypy3-exe/files/pypy3-exe-7.3.0-gcc10-fno-common.patch b/dev-python/pypy3-exe/files/pypy3-exe-7.3.0-gcc10-fno-common.patch |
32 |
deleted file mode 100644 |
33 |
index b072ee4c1e6..00000000000 |
34 |
--- a/dev-python/pypy3-exe/files/pypy3-exe-7.3.0-gcc10-fno-common.patch |
35 |
+++ /dev/null |
36 |
@@ -1,25 +0,0 @@ |
37 |
-From 455e1f635110df4bdc2981a3a0abf02e3d4d21b2 Mon Sep 17 00:00:00 2001 |
38 |
-From: Matti Picus <matti.picus@×××××.com> |
39 |
-Date: Wed, 26 Feb 2020 13:06:29 +0200 |
40 |
-Subject: [PATCH] issue 3163: the constant is defined both in vmprof_common.h and vmprof_common.c |
41 |
- |
42 |
---- |
43 |
- rpython/rlib/rvmprof/src/shared/vmprof_common.h | 2 +- |
44 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
45 |
- |
46 |
-diff --git a/rpython/rlib/rvmprof/src/shared/vmprof_common.h b/rpython/rlib/rvmprof/src/shared/vmprof_common.h |
47 |
-index b52ee5f..1b2278b 100644 |
48 |
---- a/rpython/rlib/rvmprof/src/shared/vmprof_common.h |
49 |
-+++ b/rpython/rlib/rvmprof/src/shared/vmprof_common.h |
50 |
-@@ -89,7 +89,7 @@ int opened_profile(const char *interp_name, int memory, int proflines, int nativ |
51 |
- result is NULL. */ |
52 |
- #if PY_MAJOR_VERSION >= 3 && !defined(_Py_atomic_load_relaxed) |
53 |
- /* this was abruptly un-defined in 3.5.1 */ |
54 |
--void *volatile _PyThreadState_Current; |
55 |
-+extern void *volatile _PyThreadState_Current; |
56 |
- /* XXX simple volatile access is assumed atomic */ |
57 |
- # define _Py_atomic_load_relaxed(pp) (*(pp)) |
58 |
- #endif |
59 |
--- |
60 |
-libgit2 0.26.0 |
61 |
- |
62 |
|
63 |
diff --git a/dev-python/pypy3-exe/pypy3-exe-7.3.0.ebuild b/dev-python/pypy3-exe/pypy3-exe-7.3.0.ebuild |
64 |
deleted file mode 100644 |
65 |
index edc7a19739c..00000000000 |
66 |
--- a/dev-python/pypy3-exe/pypy3-exe-7.3.0.ebuild |
67 |
+++ /dev/null |
68 |
@@ -1,156 +0,0 @@ |
69 |
-# Copyright 1999-2020 Gentoo Authors |
70 |
-# Distributed under the terms of the GNU General Public License v2 |
71 |
- |
72 |
-EAPI=7 |
73 |
- |
74 |
-# pypy3 needs to be built using python 2 |
75 |
-PYTHON_COMPAT=( python2_7 ) |
76 |
-inherit check-reqs pax-utils python-any-r1 toolchain-funcs |
77 |
- |
78 |
-MY_P=pypy3.6-v${PV/_/} |
79 |
-DESCRIPTION="PyPy3 executable (build from source)" |
80 |
-HOMEPAGE="https://pypy.org/" |
81 |
-SRC_URI="https://downloads.python.org/pypy/${MY_P}-src.tar.bz2" |
82 |
-S="${WORKDIR}/${MY_P}-src" |
83 |
- |
84 |
-LICENSE="MIT" |
85 |
-SLOT="${PV}" |
86 |
-KEYWORDS="amd64 ~ppc64 x86 ~amd64-linux ~x86-linux" |
87 |
-IUSE="bzip2 +jit low-memory ncurses cpu_flags_x86_sse2" |
88 |
- |
89 |
-RDEPEND=">=sys-libs/zlib-1.1.3:0= |
90 |
- dev-libs/libffi:0= |
91 |
- virtual/libintl:0= |
92 |
- dev-libs/expat:0= |
93 |
- bzip2? ( app-arch/bzip2:0= ) |
94 |
- ncurses? ( sys-libs/ncurses:0= ) |
95 |
- !dev-python/pypy3-exe-bin:${PV}" |
96 |
-DEPEND="${RDEPEND}" |
97 |
-BDEPEND=" |
98 |
- low-memory? ( dev-python/pypy ) |
99 |
- !low-memory? ( |
100 |
- || ( |
101 |
- dev-python/pypy |
102 |
- ( |
103 |
- dev-lang/python:2.7 |
104 |
- dev-python/pycparser[python_targets_python2_7(-),python_single_target_python2_7(+)] |
105 |
- ) |
106 |
- ) |
107 |
- )" |
108 |
- |
109 |
-PATCHES=( |
110 |
- # https://bugs.gentoo.org/706760 |
111 |
- "${FILESDIR}"/${PN}-7.3.0-gcc10-fno-common.patch |
112 |
-) |
113 |
- |
114 |
-check_env() { |
115 |
- if use low-memory; then |
116 |
- CHECKREQS_MEMORY="1750M" |
117 |
- use amd64 && CHECKREQS_MEMORY="3500M" |
118 |
- else |
119 |
- CHECKREQS_MEMORY="3G" |
120 |
- use amd64 && CHECKREQS_MEMORY="6G" |
121 |
- fi |
122 |
- |
123 |
- check-reqs_pkg_pretend |
124 |
-} |
125 |
- |
126 |
-pkg_pretend() { |
127 |
- [[ ${MERGE_TYPE} != binary ]] && check_env |
128 |
-} |
129 |
- |
130 |
-pkg_setup() { |
131 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
132 |
- check_env |
133 |
- |
134 |
- # unset to allow forcing pypy below :) |
135 |
- use low-memory && EPYTHON= |
136 |
- if [[ ! ${EPYTHON} || ${EPYTHON} == pypy ]] && |
137 |
- { has_version -b dev-python/pypy || |
138 |
- has_version -b dev-python/pypy-bin; } |
139 |
- then |
140 |
- einfo "Using PyPy to perform the translation." |
141 |
- EPYTHON=pypy |
142 |
- else |
143 |
- einfo "Using ${EPYTHON:-python2} to perform the translation. Please note that upstream" |
144 |
- einfo "recommends using PyPy for that. If you wish to do so, please install" |
145 |
- einfo "dev-python/pypy and ensure that EPYTHON variable is unset." |
146 |
- python-any-r1_pkg_setup |
147 |
- fi |
148 |
- fi |
149 |
-} |
150 |
- |
151 |
-src_configure() { |
152 |
- tc-export CC |
153 |
- |
154 |
- local jit_backend |
155 |
- if use jit; then |
156 |
- jit_backend='--jit-backend=' |
157 |
- |
158 |
- # We only need the explicit sse2 switch for x86. |
159 |
- # On other arches we can rely on autodetection which uses |
160 |
- # compiler macros. Plus, --jit-backend= doesn't accept all |
161 |
- # the modern values... |
162 |
- |
163 |
- if use x86; then |
164 |
- if use cpu_flags_x86_sse2; then |
165 |
- jit_backend+=x86 |
166 |
- else |
167 |
- jit_backend+=x86-without-sse2 |
168 |
- fi |
169 |
- else |
170 |
- jit_backend+=auto |
171 |
- fi |
172 |
- fi |
173 |
- |
174 |
- local args=( |
175 |
- --no-shared |
176 |
- $(usex jit -Ojit -O2) |
177 |
- |
178 |
- ${jit_backend} |
179 |
- |
180 |
- pypy/goal/targetpypystandalone |
181 |
- ) |
182 |
- |
183 |
- # Avoid linking against libraries disabled by use flags |
184 |
- local opts=( |
185 |
- bzip2:bz2 |
186 |
- ncurses:_minimal_curses |
187 |
- ) |
188 |
- |
189 |
- local opt |
190 |
- for opt in "${opts[@]}"; do |
191 |
- local flag=${opt%:*} |
192 |
- local mod=${opt#*:} |
193 |
- |
194 |
- args+=( |
195 |
- $(usex ${flag} --withmod --withoutmod)-${mod} |
196 |
- ) |
197 |
- done |
198 |
- |
199 |
- local interp=( "${EPYTHON}" ) |
200 |
- if use low-memory; then |
201 |
- interp=( env PYPY_GC_MAX_DELTA=200MB |
202 |
- "${EPYTHON}" --jit loop_longevity=300 ) |
203 |
- fi |
204 |
- |
205 |
- # translate into the C sources |
206 |
- # we're going to make them ourselves since otherwise pypy does not |
207 |
- # free up the unneeded memory before spawning the compiler |
208 |
- set -- "${interp[@]}" rpython/bin/rpython --batch --source "${args[@]}" |
209 |
- echo -e "\033[1m${@}\033[0m" |
210 |
- "${@}" || die "translation failed" |
211 |
-} |
212 |
- |
213 |
-src_compile() { |
214 |
- emake -C "${T}"/usession*-0/testing_1 |
215 |
-} |
216 |
- |
217 |
-src_install() { |
218 |
- local dest=/usr/lib/pypy3.6 |
219 |
- exeinto "${dest}" |
220 |
- newexe "${T}"/usession*-0/testing_1/pypy3-c pypy3-c-${PV} |
221 |
- insinto "${dest}"/include/${PV} |
222 |
- doins include/pypy_* |
223 |
- pax-mark m "${ED}${dest}/pypy3-c-${PV}" |
224 |
-} |
225 |
|
226 |
diff --git a/dev-python/pypy3-exe/pypy3-exe-7.3.2_rc1-r100.ebuild b/dev-python/pypy3-exe/pypy3-exe-7.3.2_rc1-r100.ebuild |
227 |
deleted file mode 100644 |
228 |
index df9d87c9239..00000000000 |
229 |
--- a/dev-python/pypy3-exe/pypy3-exe-7.3.2_rc1-r100.ebuild |
230 |
+++ /dev/null |
231 |
@@ -1,151 +0,0 @@ |
232 |
-# Copyright 1999-2020 Gentoo Authors |
233 |
-# Distributed under the terms of the GNU General Public License v2 |
234 |
- |
235 |
-EAPI=7 |
236 |
- |
237 |
-# pypy3 needs to be built using python 2 |
238 |
-PYTHON_COMPAT=( python2_7 ) |
239 |
-inherit check-reqs pax-utils python-any-r1 toolchain-funcs |
240 |
- |
241 |
-MY_P=pypy3.7-v${PV/_/} |
242 |
-DESCRIPTION="PyPy3 executable (build from source)" |
243 |
-HOMEPAGE="https://pypy.org/" |
244 |
-SRC_URI="https://downloads.python.org/pypy/${MY_P}-src.tar.bz2" |
245 |
-S="${WORKDIR}/${MY_P}-src" |
246 |
- |
247 |
-LICENSE="MIT" |
248 |
-SLOT="${PV}-py37" |
249 |
-KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
250 |
-IUSE="bzip2 +jit low-memory ncurses cpu_flags_x86_sse2" |
251 |
- |
252 |
-RDEPEND=">=sys-libs/zlib-1.1.3:0= |
253 |
- dev-libs/libffi:0= |
254 |
- virtual/libintl:0= |
255 |
- dev-libs/expat:0= |
256 |
- bzip2? ( app-arch/bzip2:0= ) |
257 |
- ncurses? ( sys-libs/ncurses:0= ) |
258 |
- !dev-python/pypy3-exe-bin:${PV}" |
259 |
-DEPEND="${RDEPEND}" |
260 |
-BDEPEND=" |
261 |
- low-memory? ( dev-python/pypy ) |
262 |
- !low-memory? ( |
263 |
- || ( |
264 |
- dev-python/pypy |
265 |
- ( |
266 |
- dev-lang/python:2.7 |
267 |
- dev-python/pycparser[python_targets_python2_7(-),python_single_target_python2_7(+)] |
268 |
- ) |
269 |
- ) |
270 |
- )" |
271 |
- |
272 |
-check_env() { |
273 |
- if use low-memory; then |
274 |
- CHECKREQS_MEMORY="1750M" |
275 |
- use amd64 && CHECKREQS_MEMORY="3500M" |
276 |
- else |
277 |
- CHECKREQS_MEMORY="3G" |
278 |
- use amd64 && CHECKREQS_MEMORY="6G" |
279 |
- fi |
280 |
- |
281 |
- check-reqs_pkg_pretend |
282 |
-} |
283 |
- |
284 |
-pkg_pretend() { |
285 |
- [[ ${MERGE_TYPE} != binary ]] && check_env |
286 |
-} |
287 |
- |
288 |
-pkg_setup() { |
289 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
290 |
- check_env |
291 |
- |
292 |
- # unset to allow forcing pypy below :) |
293 |
- use low-memory && EPYTHON= |
294 |
- if [[ ! ${EPYTHON} || ${EPYTHON} == pypy ]] && |
295 |
- { has_version -b dev-python/pypy || |
296 |
- has_version -b dev-python/pypy-bin; } |
297 |
- then |
298 |
- einfo "Using PyPy to perform the translation." |
299 |
- EPYTHON=pypy |
300 |
- else |
301 |
- einfo "Using ${EPYTHON:-python2} to perform the translation. Please note that upstream" |
302 |
- einfo "recommends using PyPy for that. If you wish to do so, please install" |
303 |
- einfo "dev-python/pypy and ensure that EPYTHON variable is unset." |
304 |
- python-any-r1_pkg_setup |
305 |
- fi |
306 |
- fi |
307 |
-} |
308 |
- |
309 |
-src_configure() { |
310 |
- tc-export CC |
311 |
- |
312 |
- local jit_backend |
313 |
- if use jit; then |
314 |
- jit_backend='--jit-backend=' |
315 |
- |
316 |
- # We only need the explicit sse2 switch for x86. |
317 |
- # On other arches we can rely on autodetection which uses |
318 |
- # compiler macros. Plus, --jit-backend= doesn't accept all |
319 |
- # the modern values... |
320 |
- |
321 |
- if use x86; then |
322 |
- if use cpu_flags_x86_sse2; then |
323 |
- jit_backend+=x86 |
324 |
- else |
325 |
- jit_backend+=x86-without-sse2 |
326 |
- fi |
327 |
- else |
328 |
- jit_backend+=auto |
329 |
- fi |
330 |
- fi |
331 |
- |
332 |
- local args=( |
333 |
- --no-shared |
334 |
- $(usex jit -Ojit -O2) |
335 |
- |
336 |
- ${jit_backend} |
337 |
- |
338 |
- pypy/goal/targetpypystandalone |
339 |
- ) |
340 |
- |
341 |
- # Avoid linking against libraries disabled by use flags |
342 |
- local opts=( |
343 |
- bzip2:bz2 |
344 |
- ncurses:_minimal_curses |
345 |
- ) |
346 |
- |
347 |
- local opt |
348 |
- for opt in "${opts[@]}"; do |
349 |
- local flag=${opt%:*} |
350 |
- local mod=${opt#*:} |
351 |
- |
352 |
- args+=( |
353 |
- $(usex ${flag} --withmod --withoutmod)-${mod} |
354 |
- ) |
355 |
- done |
356 |
- |
357 |
- local interp=( "${EPYTHON}" ) |
358 |
- if use low-memory; then |
359 |
- interp=( env PYPY_GC_MAX_DELTA=200MB |
360 |
- "${EPYTHON}" --jit loop_longevity=300 ) |
361 |
- fi |
362 |
- |
363 |
- # translate into the C sources |
364 |
- # we're going to make them ourselves since otherwise pypy does not |
365 |
- # free up the unneeded memory before spawning the compiler |
366 |
- set -- "${interp[@]}" rpython/bin/rpython --batch --source "${args[@]}" |
367 |
- echo -e "\033[1m${@}\033[0m" |
368 |
- "${@}" || die "translation failed" |
369 |
-} |
370 |
- |
371 |
-src_compile() { |
372 |
- emake -C "${T}"/usession*-0/testing_1 |
373 |
-} |
374 |
- |
375 |
-src_install() { |
376 |
- local dest=/usr/lib/pypy3.7 |
377 |
- exeinto "${dest}" |
378 |
- newexe "${T}"/usession*-0/testing_1/pypy3-c pypy3-c-${PV} |
379 |
- insinto "${dest}"/include/${PV} |
380 |
- doins include/pypy_* |
381 |
- pax-mark m "${ED}${dest}/pypy3-c-${PV}" |
382 |
-} |
383 |
|
384 |
diff --git a/dev-python/pypy3-exe/pypy3-exe-7.3.2_rc1.ebuild b/dev-python/pypy3-exe/pypy3-exe-7.3.2_rc1.ebuild |
385 |
deleted file mode 100644 |
386 |
index 24b904343e1..00000000000 |
387 |
--- a/dev-python/pypy3-exe/pypy3-exe-7.3.2_rc1.ebuild |
388 |
+++ /dev/null |
389 |
@@ -1,151 +0,0 @@ |
390 |
-# Copyright 1999-2020 Gentoo Authors |
391 |
-# Distributed under the terms of the GNU General Public License v2 |
392 |
- |
393 |
-EAPI=7 |
394 |
- |
395 |
-# pypy3 needs to be built using python 2 |
396 |
-PYTHON_COMPAT=( python2_7 ) |
397 |
-inherit check-reqs pax-utils python-any-r1 toolchain-funcs |
398 |
- |
399 |
-MY_P=pypy3.6-v${PV/_/} |
400 |
-DESCRIPTION="PyPy3 executable (build from source)" |
401 |
-HOMEPAGE="https://pypy.org/" |
402 |
-SRC_URI="https://downloads.python.org/pypy/${MY_P}-src.tar.bz2" |
403 |
-S="${WORKDIR}/${MY_P}-src" |
404 |
- |
405 |
-LICENSE="MIT" |
406 |
-SLOT="${PV}" |
407 |
-KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
408 |
-IUSE="bzip2 +jit low-memory ncurses cpu_flags_x86_sse2" |
409 |
- |
410 |
-RDEPEND=">=sys-libs/zlib-1.1.3:0= |
411 |
- dev-libs/libffi:0= |
412 |
- virtual/libintl:0= |
413 |
- dev-libs/expat:0= |
414 |
- bzip2? ( app-arch/bzip2:0= ) |
415 |
- ncurses? ( sys-libs/ncurses:0= ) |
416 |
- !dev-python/pypy3-exe-bin:${PV}" |
417 |
-DEPEND="${RDEPEND}" |
418 |
-BDEPEND=" |
419 |
- low-memory? ( dev-python/pypy ) |
420 |
- !low-memory? ( |
421 |
- || ( |
422 |
- dev-python/pypy |
423 |
- ( |
424 |
- dev-lang/python:2.7 |
425 |
- dev-python/pycparser[python_targets_python2_7(-),python_single_target_python2_7(+)] |
426 |
- ) |
427 |
- ) |
428 |
- )" |
429 |
- |
430 |
-check_env() { |
431 |
- if use low-memory; then |
432 |
- CHECKREQS_MEMORY="1750M" |
433 |
- use amd64 && CHECKREQS_MEMORY="3500M" |
434 |
- else |
435 |
- CHECKREQS_MEMORY="3G" |
436 |
- use amd64 && CHECKREQS_MEMORY="6G" |
437 |
- fi |
438 |
- |
439 |
- check-reqs_pkg_pretend |
440 |
-} |
441 |
- |
442 |
-pkg_pretend() { |
443 |
- [[ ${MERGE_TYPE} != binary ]] && check_env |
444 |
-} |
445 |
- |
446 |
-pkg_setup() { |
447 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
448 |
- check_env |
449 |
- |
450 |
- # unset to allow forcing pypy below :) |
451 |
- use low-memory && EPYTHON= |
452 |
- if [[ ! ${EPYTHON} || ${EPYTHON} == pypy ]] && |
453 |
- { has_version -b dev-python/pypy || |
454 |
- has_version -b dev-python/pypy-bin; } |
455 |
- then |
456 |
- einfo "Using PyPy to perform the translation." |
457 |
- EPYTHON=pypy |
458 |
- else |
459 |
- einfo "Using ${EPYTHON:-python2} to perform the translation. Please note that upstream" |
460 |
- einfo "recommends using PyPy for that. If you wish to do so, please install" |
461 |
- einfo "dev-python/pypy and ensure that EPYTHON variable is unset." |
462 |
- python-any-r1_pkg_setup |
463 |
- fi |
464 |
- fi |
465 |
-} |
466 |
- |
467 |
-src_configure() { |
468 |
- tc-export CC |
469 |
- |
470 |
- local jit_backend |
471 |
- if use jit; then |
472 |
- jit_backend='--jit-backend=' |
473 |
- |
474 |
- # We only need the explicit sse2 switch for x86. |
475 |
- # On other arches we can rely on autodetection which uses |
476 |
- # compiler macros. Plus, --jit-backend= doesn't accept all |
477 |
- # the modern values... |
478 |
- |
479 |
- if use x86; then |
480 |
- if use cpu_flags_x86_sse2; then |
481 |
- jit_backend+=x86 |
482 |
- else |
483 |
- jit_backend+=x86-without-sse2 |
484 |
- fi |
485 |
- else |
486 |
- jit_backend+=auto |
487 |
- fi |
488 |
- fi |
489 |
- |
490 |
- local args=( |
491 |
- --no-shared |
492 |
- $(usex jit -Ojit -O2) |
493 |
- |
494 |
- ${jit_backend} |
495 |
- |
496 |
- pypy/goal/targetpypystandalone |
497 |
- ) |
498 |
- |
499 |
- # Avoid linking against libraries disabled by use flags |
500 |
- local opts=( |
501 |
- bzip2:bz2 |
502 |
- ncurses:_minimal_curses |
503 |
- ) |
504 |
- |
505 |
- local opt |
506 |
- for opt in "${opts[@]}"; do |
507 |
- local flag=${opt%:*} |
508 |
- local mod=${opt#*:} |
509 |
- |
510 |
- args+=( |
511 |
- $(usex ${flag} --withmod --withoutmod)-${mod} |
512 |
- ) |
513 |
- done |
514 |
- |
515 |
- local interp=( "${EPYTHON}" ) |
516 |
- if use low-memory; then |
517 |
- interp=( env PYPY_GC_MAX_DELTA=200MB |
518 |
- "${EPYTHON}" --jit loop_longevity=300 ) |
519 |
- fi |
520 |
- |
521 |
- # translate into the C sources |
522 |
- # we're going to make them ourselves since otherwise pypy does not |
523 |
- # free up the unneeded memory before spawning the compiler |
524 |
- set -- "${interp[@]}" rpython/bin/rpython --batch --source "${args[@]}" |
525 |
- echo -e "\033[1m${@}\033[0m" |
526 |
- "${@}" || die "translation failed" |
527 |
-} |
528 |
- |
529 |
-src_compile() { |
530 |
- emake -C "${T}"/usession*-0/testing_1 |
531 |
-} |
532 |
- |
533 |
-src_install() { |
534 |
- local dest=/usr/lib/pypy3.6 |
535 |
- exeinto "${dest}" |
536 |
- newexe "${T}"/usession*-0/testing_1/pypy3-c pypy3-c-${PV} |
537 |
- insinto "${dest}"/include/${PV} |
538 |
- doins include/pypy_* |
539 |
- pax-mark m "${ED}${dest}/pypy3-c-${PV}" |
540 |
-} |