1 |
commit: f3f40bf99786aa347058216aa88748239195b09f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 1 15:35:33 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 1 15:39:18 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3f40bf9 |
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 | 2 - |
13 |
dev-python/pypy3-exe/pypy3-exe-7.3.7.ebuild | 166 ---------------------------- |
14 |
2 files changed, 168 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/pypy3-exe/Manifest b/dev-python/pypy3-exe/Manifest |
17 |
index 270cb1c9ee60..58d687feafa4 100644 |
18 |
--- a/dev-python/pypy3-exe/Manifest |
19 |
+++ b/dev-python/pypy3-exe/Manifest |
20 |
@@ -1,5 +1,3 @@ |
21 |
-DIST pypy3.8-gentoo-patches-7.3.7.tar.xz 4396 BLAKE2B adc33a02ada4d22eae0484292ec6cc295805d9f254b7a9110c622628aa40011621a1833ca62d3251e4e5056c406f648e7ad0439bd60e77c38808dd9df46973a5 SHA512 1cda8467de2d749d98fa20d7d200b5f96dae0ca68cf44a054d03f3f148bc3946ba1f1c474ac0336560f79c78b3eddcd4ba24386e83de283c83475b8e4b75bdf8 |
22 |
-DIST pypy3.8-v7.3.7-src.tar.bz2 24375444 BLAKE2B 44fe19ee63d95243c499ecb0b84e77873c73da93320b1e028a5c6c4b167441d223812dc66b16e070308cba48c4d8774738f827319cce9d1769b3f4346e15487c SHA512 9e6701cc441d5535968656cfb0cfa9076c364f9ba32bc6f0ef64f06ab343281e2458dbe88791c0e02401457fbf80d367f397fc904f6146bff68e04a15e05fda2 |
23 |
DIST pypy3.9-gentoo-patches-7.3.8.tar.xz 1568 BLAKE2B 0011188de7b5757964bd13c49d5995a656a721acd54e1d77f7e77fac7420a2a56ca75eb42709e2304a771fa69c982fc6901e9fc9580ab8e8b35e7bb8b0cc83a6 SHA512 1064e987b7233fc55f94bd49aeeab9a9fd9322e90798439ad9a4c35020ca923fe0670e47406ab180a6f8e7afd65d03be23427d4fa43befa3c0ce172028e1a09f |
24 |
DIST pypy3.9-gentoo-patches-7.3.9.tar.xz 1564 BLAKE2B fe0875ef002842a78fb31589f6d0b255c3dea10f2bd014231ae9b17641f65f810ac84fe7961de1a4614249b0166f2127c3aa37947f7d1d4c85860a31b89110f1 SHA512 a1dc3ee36e908e29b2bbbb100a97b7910bd4325c5dc55c0455cdca450d6b272d1463708b383e0607e9499b1932da4442f97d2da57e47ed3a4ff8fd3c78a54732 |
25 |
DIST pypy3.9-v7.3.8-src.tar.bz2 26277823 BLAKE2B 343fa4a57b69936a586acb036506e25c8de3a9761eb6622ef7266c136a1dc977cabc23969917bc2369fd73b1ae6fef731d81536179107f2d731352e6f5387bf9 SHA512 aed018738af7a225f516ec37d059d539f486d9dd427fe000805147b197f496d5fcb0387e47008524753ad18224aebeb1e68f9e2093acbe37468e02bff92f7126 |
26 |
|
27 |
diff --git a/dev-python/pypy3-exe/pypy3-exe-7.3.7.ebuild b/dev-python/pypy3-exe/pypy3-exe-7.3.7.ebuild |
28 |
deleted file mode 100644 |
29 |
index deff4b1a5c6c..000000000000 |
30 |
--- a/dev-python/pypy3-exe/pypy3-exe-7.3.7.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,166 +0,0 @@ |
33 |
-# Copyright 1999-2021 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=7 |
37 |
- |
38 |
-# pypy3 needs to be built using python 2 |
39 |
-PYTHON_COMPAT=( python2_7 ) |
40 |
-inherit check-reqs pax-utils python-any-r1 toolchain-funcs |
41 |
- |
42 |
-PYPY_PV=${PV%_p*} |
43 |
-MY_P=pypy3.8-v${PYPY_PV/_} |
44 |
-PATCHSET="pypy3.8-gentoo-patches-${PV/_}" |
45 |
- |
46 |
-DESCRIPTION="PyPy3 executable (build from source)" |
47 |
-HOMEPAGE="https://www.pypy.org/" |
48 |
-SRC_URI="https://buildbot.pypy.org/pypy/${MY_P}-src.tar.bz2 |
49 |
- https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz" |
50 |
-S="${WORKDIR}/${MY_P}-src" |
51 |
- |
52 |
-LICENSE="MIT" |
53 |
-SLOT="${PYPY_PV}" |
54 |
-KEYWORDS="amd64 ~arm64 ~ppc64 x86 ~amd64-linux ~x86-linux" |
55 |
-IUSE="bzip2 +jit low-memory ncurses cpu_flags_x86_sse2" |
56 |
- |
57 |
-RDEPEND=">=sys-libs/zlib-1.1.3:0= |
58 |
- dev-libs/libffi:0= |
59 |
- virtual/libintl:0= |
60 |
- dev-libs/expat:0= |
61 |
- bzip2? ( app-arch/bzip2:0= ) |
62 |
- ncurses? ( sys-libs/ncurses:0= ) |
63 |
- !dev-python/pypy3-exe-bin:${PYPY_PV}" |
64 |
-DEPEND="${RDEPEND}" |
65 |
-BDEPEND=" |
66 |
- low-memory? ( dev-python/pypy ) |
67 |
- !low-memory? ( |
68 |
- || ( |
69 |
- dev-python/pypy |
70 |
- dev-lang/python:2.7 |
71 |
- ) |
72 |
- )" |
73 |
- |
74 |
-check_env() { |
75 |
- if use low-memory; then |
76 |
- CHECKREQS_MEMORY="1750M" |
77 |
- use amd64 && CHECKREQS_MEMORY="3500M" |
78 |
- else |
79 |
- CHECKREQS_MEMORY="3G" |
80 |
- use amd64 && CHECKREQS_MEMORY="6G" |
81 |
- fi |
82 |
- |
83 |
- check-reqs_pkg_pretend |
84 |
-} |
85 |
- |
86 |
-pkg_pretend() { |
87 |
- [[ ${MERGE_TYPE} != binary ]] && check_env |
88 |
-} |
89 |
- |
90 |
-pkg_setup() { |
91 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
92 |
- check_env |
93 |
- |
94 |
- # unset to allow forcing pypy below :) |
95 |
- use low-memory && EPYTHON= |
96 |
- if [[ ! ${EPYTHON} || ${EPYTHON} == pypy ]] && |
97 |
- { has_version -b dev-python/pypy || |
98 |
- has_version -b dev-python/pypy-bin; } |
99 |
- then |
100 |
- einfo "Using PyPy to perform the translation." |
101 |
- EPYTHON=pypy |
102 |
- else |
103 |
- einfo "Using ${EPYTHON:-python2} to perform the translation. Please note that upstream" |
104 |
- einfo "recommends using PyPy for that. If you wish to do so, please install" |
105 |
- einfo "dev-python/pypy and ensure that EPYTHON variable is unset." |
106 |
- python-any-r1_pkg_setup |
107 |
- fi |
108 |
- fi |
109 |
-} |
110 |
- |
111 |
-src_prepare() { |
112 |
- local PATCHES=( |
113 |
- "${WORKDIR}/${PATCHSET}" |
114 |
- ) |
115 |
- default |
116 |
-} |
117 |
- |
118 |
-src_configure() { |
119 |
- tc-export CC |
120 |
- |
121 |
- local jit_backend |
122 |
- if use jit; then |
123 |
- jit_backend='--jit-backend=' |
124 |
- |
125 |
- # We only need the explicit sse2 switch for x86. |
126 |
- # On other arches we can rely on autodetection which uses |
127 |
- # compiler macros. Plus, --jit-backend= doesn't accept all |
128 |
- # the modern values... |
129 |
- |
130 |
- if use x86; then |
131 |
- if use cpu_flags_x86_sse2; then |
132 |
- jit_backend+=x86 |
133 |
- else |
134 |
- jit_backend+=x86-without-sse2 |
135 |
- fi |
136 |
- else |
137 |
- jit_backend+=auto |
138 |
- fi |
139 |
- fi |
140 |
- |
141 |
- local args=( |
142 |
- --no-shared |
143 |
- $(usex jit -Ojit -O2) |
144 |
- |
145 |
- ${jit_backend} |
146 |
- |
147 |
- pypy/goal/targetpypystandalone |
148 |
- ) |
149 |
- |
150 |
- # Avoid linking against libraries disabled by use flags |
151 |
- local opts=( |
152 |
- bzip2:bz2 |
153 |
- ncurses:_minimal_curses |
154 |
- ) |
155 |
- |
156 |
- local opt |
157 |
- for opt in "${opts[@]}"; do |
158 |
- local flag=${opt%:*} |
159 |
- local mod=${opt#*:} |
160 |
- |
161 |
- args+=( |
162 |
- $(usex ${flag} --withmod --withoutmod)-${mod} |
163 |
- ) |
164 |
- done |
165 |
- |
166 |
- local interp=( "${EPYTHON}" ) |
167 |
- if use low-memory; then |
168 |
- interp=( env PYPY_GC_MAX_DELTA=200MB |
169 |
- "${EPYTHON}" --jit loop_longevity=300 ) |
170 |
- fi |
171 |
- |
172 |
- if [[ ${EPYTHON} != pypy ]]; then |
173 |
- # reuse bundled pycparser to avoid external dep |
174 |
- mkdir -p "${T}"/pymod/cffi || die |
175 |
- : > "${T}"/pymod/cffi/__init__.py || die |
176 |
- cp -r lib_pypy/cffi/_pycparser "${T}"/pymod/cffi/ || die |
177 |
- local -x PYTHONPATH=${T}/pymod:${PYTHONPATH} |
178 |
- fi |
179 |
- |
180 |
- # translate into the C sources |
181 |
- # we're going to build them ourselves since otherwise pypy does not |
182 |
- # free up the unneeded memory before spawning the compiler |
183 |
- set -- "${interp[@]}" rpython/bin/rpython --batch --source "${args[@]}" |
184 |
- echo -e "\033[1m${@}\033[0m" |
185 |
- "${@}" || die "translation failed" |
186 |
-} |
187 |
- |
188 |
-src_compile() { |
189 |
- emake -C "${T}"/usession*-0/testing_1 |
190 |
-} |
191 |
- |
192 |
-src_install() { |
193 |
- cd "${T}"/usession*-0 || die |
194 |
- newbin testing_1/pypy3-c pypy3-c-${PYPY_PV} |
195 |
- insinto /usr/include/pypy3.8/${PYPY_PV} |
196 |
- doins pypy_*.h |
197 |
- pax-mark m "${ED}/usr/bin/pypy3-c-${PYPY_PV}" |
198 |
-} |