1 |
commit: a90d89547016620199044b5f627b70b927f3e79a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 5 22:20:05 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 5 23:19:27 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a90d8954 |
7 |
|
8 |
dev-python/pypy3-bin: Clean old up |
9 |
|
10 |
dev-python/pypy3-bin/Manifest | 3 - |
11 |
dev-python/pypy3-bin/pypy3-bin-5.8.0-r1.ebuild | 171 ------------------------- |
12 |
2 files changed, 174 deletions(-) |
13 |
|
14 |
diff --git a/dev-python/pypy3-bin/Manifest b/dev-python/pypy3-bin/Manifest |
15 |
index 291ccd2d65d..65c8d607467 100644 |
16 |
--- a/dev-python/pypy3-bin/Manifest |
17 |
+++ b/dev-python/pypy3-bin/Manifest |
18 |
@@ -3,13 +3,10 @@ DIST pypy3-bin-5.10.0-amd64+bzip2+ncurses.tar.lz 6651701 BLAKE2B 2971b8c39eb7475 |
19 |
DIST pypy3-bin-5.10.0-x86+bzip2+jit+ncurses+sse2.tar.lz 8213224 BLAKE2B b168e80285afcc7fe6210d061d98337d4b8c5184d0d2a5eb2d2b30a7af391ba91c83aa543a9a9f82af71039a0bc86cbbf1db7017ed8a5d666b570df558d7ae05 SHA512 b5629c7a9a3097bd4a407293e01680ccbd8887a7c42530a08123112ed94291c63cac705491bff4e8b54eb33e4409b893a83adc2c385d04456825ff3d131fbf17 |
20 |
DIST pypy3-bin-5.10.0-x86+bzip2+ncurses+sse2.tar.lz 5356294 BLAKE2B 01d282d28676cc7ebde528620aa4bbfea227b2130df4a2b9e14bb31d24a0063436a9961aa174b393bc9f7ab2615593e667cb773d155b634248da2a1e7ba3e5e7 SHA512 03d11482961a811b96ee75becdbdc97bf55dcf79fbc45b325fc43d86ca947e64b043edaa87fec3b2e5bb0fe777e035ad252a65e7b372cddc62efd2137f6148ff |
21 |
DIST pypy3-bin-5.10.0-x86+bzip2+ncurses.tar.lz 5334935 BLAKE2B 11be55a106f157fed0570d3fb684e8a7a7b42d061fa841511721adde0d5572d12cba989984b872efa76ed8ed15001a412abef115e65439d80a9497f911d3771e SHA512 b788008566bb409f55ebd1d7204784f322451fa6fd28db2a2adb3929c0dfa3e0490a71c697ca29cdf1251dd58090ad8dc6fa1c597c9cdac77d52fe84b77e3542 |
22 |
-DIST pypy3-bin-5.8.0-amd64+bzip2+jit+ncurses.tar.lz 10706804 BLAKE2B ab3fffd38cf177e322179a45316d99e82485835f283a1ea4e919d4ca5d016d841424bfd4aac15af51749961fd6b588879b45a81afcbdf6af8f84518b6353a4dc SHA512 38e46503ba50987a36b68e7d6316b64a00c1e2fa0d2d0b0e0e517bbfa96cb777522346d2c4a78cc7bdf44fa237453dc97867f9323785ba38b21c1f1058d5e701 |
23 |
-DIST pypy3-bin-5.8.0-amd64+bzip2+ncurses.tar.lz 6626453 BLAKE2B 94997c8b91716493339b1a54ddb422526d37cb40fe08ad21ce38d3550942e2e9f630be8115772a986e997d474a5a5096dd9336c1be8c1f5ceba1b8c1323b5811 SHA512 51d418668c48f8e2d740264855e193353900d56893c0fc81de09e8fab338a36a696a725dd3387ee1d626f82e8319b797bfa4957a5cc8f0b11610b3e6ece67539 |
24 |
DIST pypy3-bin-5.9.0-amd64+bzip2+jit+ncurses.tar.lz 10510722 BLAKE2B d0f16b1c71686fa477484cb068c0e09f9a40bef83a0fed1721f5f60a5bd11eb39799e97b2da16fbea4f7255ea19d5e8c3f2a2da946eebe10a6d243f207ef2242 SHA512 659ed24c9f540168203098fc9b6086cc22a42767b55f3dbbf132b11cf8e1bc01a66baac78d7689dcc31d9f06e7f2ecfbda9969c9ba150d5af9c462e480aa288c |
25 |
DIST pypy3-bin-5.9.0-amd64+bzip2+ncurses.tar.lz 6589457 BLAKE2B 6b182a6bc25c7839a9465826f9c161c40d0e551ec74ce4d3ed6ba08ce8c7afcb4a2af73b7a525c76dbe30dbe2cb87ce331568679d0086450ee09bb0aabbe65f3 SHA512 7ad9e5934bc096b5087f8f1654e598dae1c2802b99b83f48b65c8d0b941a570d17c8f4e0f8b3f591600d7cdc471dc45cd903d166ea639e562453bf7ad93144eb |
26 |
DIST pypy3-bin-5.9.0-x86+bzip2+jit+ncurses+sse2.tar.lz 8595527 BLAKE2B 67e749a5153d5d75c09d27dfa5ed57bac8e886770e5264a2596c4f9e5cdcb7fcae63b709951a8ad862f1bf658deb3cbdf25ac3d0a3af12aef2dfe40942016329 SHA512 6d118cf2e9a657dcf719ca5e508b5b4bb2ab7f85ec3597840706b748ea2f6d582ed884fc34697a3ec36e343de4a40b113d7c8749683a53f2dda299a9e106a2f8 |
27 |
DIST pypy3-bin-5.9.0-x86+bzip2+ncurses+sse2.tar.lz 5654668 BLAKE2B 964c06920e2d5d69ee9d1f2133d2453e096bc871e63ecdd815370187510f9391738432578b5be49771ad8d24fc735882df266655d88924b2776849a61a943694 SHA512 a378159ca39654fbf117e3bd5a0cdcdb23100a21caf837bba5d764b63bf039a791b27d397a6be918a2539d721fc8564f2b10a163df3bae89a4ddb3991ac33ec8 |
28 |
DIST pypy3-bin-5.9.0-x86+bzip2+ncurses.tar.lz 5640443 BLAKE2B 4aa4a8cdfa536aea52cf6b94813e6c70f071ed62bc1bceac0584b2ab1a0b9d5a60e6d219ffe67f09f418246847ccd1f32f280b38c9bd973eca2c30c002a42856 SHA512 663fae9004eb7f002b849d4697ef67fb72df33faddfba7272a6d795432ecca4c110dc1fab43617909f962584c7519582f085854f55829ccc63dc988654b6add5 |
29 |
DIST pypy3-v5.10.0-src.tar.bz2 29075971 BLAKE2B 02fb64d514ab292e09ced57e1c206b04d0fb38353ad6ec0e836448344a6d126d0fccfb61cbd278ea3acaa227032640e82f9ffd7efe3b33ade1ca34a18831b3e4 SHA512 69a373c18dbad9dd617f994ad885c8d8975f0c484ba9dd547e6e892c9a3030a43e9e3ee668aee5f4969403883de1311cef97a0a5e5701921172ee6c2119b771b |
30 |
-DIST pypy3-v5.8.0-src.tar.bz2 28986883 BLAKE2B dc6c906109269e8d1bd6b171cabf6475aa803e4326a9974ded86fbb0943798317761bc0ae0ab09829a48c073b3755c8a2bdcb03bed4b06b9a70cee061867edb6 SHA512 d78b4c899a5643028664365ed973a7b292a8e5b3989cc75203cd381ea3cda7dd73121c574726e23dca86e8364fcfcf42c372c9deee438c805f30d6e1c4ac115a |
31 |
DIST pypy3-v5.9.0-src.tar.bz2 29055111 BLAKE2B 181d87ebe4a83a3f03b28d891f248f718ad120ed54621f8054f19a65aebbe90b65c69e40ca656612356b2019aa9ac22d5e242e688a80190b046511a8ceb9c040 SHA512 3d5384d644fdd1bc8b95f5747dbd1771ae06eb2cfc7b57be359b8bf40177676afd097620d0cb9d9000c40d8cce075cfa6bfd92de987d3dd927c04d7d595dc5bd |
32 |
|
33 |
diff --git a/dev-python/pypy3-bin/pypy3-bin-5.8.0-r1.ebuild b/dev-python/pypy3-bin/pypy3-bin-5.8.0-r1.ebuild |
34 |
deleted file mode 100644 |
35 |
index 17abeccf908..00000000000 |
36 |
--- a/dev-python/pypy3-bin/pypy3-bin-5.8.0-r1.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,171 +0,0 @@ |
39 |
-# Copyright 1999-2017 Gentoo Foundation |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
41 |
- |
42 |
-EAPI=6 |
43 |
- |
44 |
-# some random parts need python 2... |
45 |
-PYTHON_COMPAT=( python2_7 pypy ) |
46 |
-inherit pax-utils python-any-r1 unpacker versionator |
47 |
- |
48 |
-BINHOST="https://dev.gentoo.org/~mgorny/dist/pypy3-bin/${PV}" |
49 |
-MY_P=pypy3-v${PV} |
50 |
- |
51 |
-DESCRIPTION="A fast, compliant alternative implementation of Python 3.3 (binary package)" |
52 |
-HOMEPAGE="http://pypy.org/" |
53 |
-SRC_URI="https://bitbucket.org/pypy/pypy/downloads/${MY_P}-src.tar.bz2 |
54 |
- amd64? ( |
55 |
- jit? ( ${BINHOST}/${P}-amd64+bzip2+jit+ncurses.tar.lz ) |
56 |
- !jit? ( ${BINHOST}/${P}-amd64+bzip2+ncurses.tar.lz ) |
57 |
- )" |
58 |
- |
59 |
-LICENSE="MIT" |
60 |
-# XX from pypy3-XX.so module suffix |
61 |
-SLOT="0/58" |
62 |
-KEYWORDS="~amd64" |
63 |
-IUSE="gdbm +jit sqlite test tk" |
64 |
- |
65 |
-# yep, world would be easier if people started filling subslots... |
66 |
-RDEPEND=" |
67 |
- app-arch/bzip2:0= |
68 |
- dev-libs/expat:0= |
69 |
- dev-libs/libffi:0= |
70 |
- dev-libs/openssl:0=[-bindist] |
71 |
- sys-libs/glibc:2.2= |
72 |
- sys-libs/ncurses:0/6 |
73 |
- sys-libs/zlib:0= |
74 |
- gdbm? ( sys-libs/gdbm:0= ) |
75 |
- sqlite? ( dev-db/sqlite:3= ) |
76 |
- tk? ( |
77 |
- dev-lang/tk:0= |
78 |
- dev-tcltk/tix:0= |
79 |
- ) |
80 |
- !dev-python/pypy3:0" |
81 |
-DEPEND="${RDEPEND} |
82 |
- app-arch/lzip |
83 |
- app-arch/xz-utils |
84 |
- test? ( ${PYTHON_DEPS} )" |
85 |
-# doc? ( ${PYTHON_DEPS} |
86 |
-# dev-python/sphinx ) |
87 |
- |
88 |
-S=${WORKDIR}/${MY_P}-src |
89 |
- |
90 |
-QA_PREBUILT=" |
91 |
- usr/lib*/pypy3/pypy3-c |
92 |
- usr/lib*/pypy3/libpypy3-c.so" |
93 |
- |
94 |
-src_prepare() { |
95 |
- eapply "${FILESDIR}/4.0.0-gentoo-path.patch" |
96 |
- eapply "${FILESDIR}/1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch" |
97 |
- |
98 |
- sed -e "s^@EPREFIX@^${EPREFIX}^" \ |
99 |
- -e "s^@libdir@^$(get_libdir)^" \ |
100 |
- -i lib-python/3/distutils/command/install.py || die |
101 |
- |
102 |
- # apply CPython stdlib patches |
103 |
- pushd lib-python/3 > /dev/null || die |
104 |
- eapply "${FILESDIR}"/5.8.0_all_distutils_cxx.patch |
105 |
- eapply "${FILESDIR}"/python-3.5-distutils-OO-build.patch |
106 |
- popd > /dev/null || die |
107 |
- |
108 |
- eapply_user |
109 |
-} |
110 |
- |
111 |
-src_compile() { |
112 |
- # Tadaam! PyPy compiled! |
113 |
- mv "${WORKDIR}"/${P}*/{libpypy3-c.so,pypy3-c} . || die |
114 |
- mv "${WORKDIR}"/${P}*/include/*.h include/ || die |
115 |
- mv pypy/module/cpyext/include/*.h include/ || die |
116 |
- mv pypy/module/cpyext/parse/*.h include/ || die |
117 |
- |
118 |
- #use doc && emake -C pypy/doc/ html |
119 |
- #needed even without jit :( also needed in both compile and install phases |
120 |
- pax-mark m pypy3-c libpypy3-c.so |
121 |
-} |
122 |
- |
123 |
-src_test() { |
124 |
- # (unset) |
125 |
- local -x PYTHONDONTWRITEBYTECODE |
126 |
- |
127 |
- # Test runner requires Python 2 too. However, it spawns PyPy3 |
128 |
- # internally so that we end up testing the correct interpreter. |
129 |
- "${PYTHON}" ./pypy/test_all.py --pypy=./pypy3-c lib-python || die |
130 |
-} |
131 |
- |
132 |
-src_install() { |
133 |
- local dest=/usr/$(get_libdir)/pypy3 |
134 |
- einfo "Installing PyPy ..." |
135 |
- insinto "${dest}" |
136 |
- doins -r include lib_pypy lib-python pypy3-c libpypy3-c.so |
137 |
- fperms a+x ${dest}/pypy3-c ${dest}/libpypy3-c.so |
138 |
- pax-mark m "${ED%/}${dest}/pypy3-c" "${ED%/}${dest}/libpypy3-c.so" |
139 |
- dosym ../$(get_libdir)/pypy3/pypy3-c /usr/bin/pypy3 |
140 |
- dodoc README.rst |
141 |
- |
142 |
- if ! use gdbm; then |
143 |
- rm -r "${ED%/}${dest}"/lib_pypy/_gdbm* || die |
144 |
- fi |
145 |
- if ! use sqlite; then |
146 |
- rm -r "${ED%/}${dest}"/lib-python/*3/sqlite3 \ |
147 |
- "${ED%/}${dest}"/lib_pypy/_sqlite3* \ |
148 |
- "${ED%/}${dest}"/lib-python/*3/test/test_sqlite.py || die |
149 |
- fi |
150 |
- if ! use tk; then |
151 |
- rm -r "${ED%/}${dest}"/lib-python/*3/{idlelib,tkinter} \ |
152 |
- "${ED%/}${dest}"/lib_pypy/_tkinter \ |
153 |
- "${ED%/}${dest}"/lib-python/*3/test/test_{tcl,tk,ttk*}.py || die |
154 |
- fi |
155 |
- |
156 |
- # Install docs |
157 |
- #use doc && dodoc -r pypy/doc/_build/html |
158 |
- |
159 |
- einfo "Generating caches and byte-compiling ..." |
160 |
- |
161 |
- local -x PYTHON=${ED%/}${dest}/pypy3-c |
162 |
- local -x LD_LIBRARY_PATH="${ED%/}${dest}" |
163 |
- # we can't use eclass function since PyPy is dumb and always gives |
164 |
- # paths relative to the interpreter |
165 |
- local PYTHON_SITEDIR=${EPREFIX}/usr/$(get_libdir)/pypy3/site-packages |
166 |
- python_export pypy3 EPYTHON |
167 |
- |
168 |
- echo "EPYTHON='${EPYTHON}'" > epython.py || die |
169 |
- python_domodule epython.py |
170 |
- |
171 |
- # Generate Grammar and PatternGrammar pickles. |
172 |
- "${PYTHON}" -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \ |
173 |
- || die "Generation of Grammar and PatternGrammar pickles failed" |
174 |
- |
175 |
- # Generate cffi modules |
176 |
- # Please keep in sync with pypy/tool/build_cffi_imports.py! |
177 |
-#cffi_build_scripts = { |
178 |
-# "sqlite3": "_sqlite3_build.py", |
179 |
-# "audioop": "_audioop_build.py", |
180 |
-# "tk": "_tkinter/tklib_build.py", |
181 |
-# "curses": "_curses_build.py" if sys.platform != "win32" else None, |
182 |
-# "syslog": "_syslog_build.py" if sys.platform != "win32" else None, |
183 |
-# "_gdbm": "_gdbm_build.py" if sys.platform != "win32" else None, |
184 |
-# "pwdgrp": "_pwdgrp_build.py" if sys.platform != "win32" else None, |
185 |
-# "resource": "_resource_build.py" if sys.platform != "win32" else None, |
186 |
-# "lzma": "_lzma_build.py", |
187 |
-# "_decimal": "_decimal_build.py", |
188 |
-# "ssl": "_ssl_build.py", |
189 |
- cffi_targets=( audioop curses syslog pwdgrp resource lzma decimal ssl ) |
190 |
- use gdbm && cffi_targets+=( gdbm ) |
191 |
- use sqlite && cffi_targets+=( sqlite3 ) |
192 |
- use tk && cffi_targets+=( tkinter/tklib ) |
193 |
- |
194 |
- local t |
195 |
- # all modules except tkinter output to . |
196 |
- # tkinter outputs to the correct dir ... |
197 |
- cd "${ED%/}${dest}"/lib_pypy || die |
198 |
- for t in "${cffi_targets[@]}"; do |
199 |
- # tkinter doesn't work via -m |
200 |
- "${PYTHON}" "_${t}_build.py" || die "Failed to build CFFI bindings for ${t}" |
201 |
- done |
202 |
- |
203 |
- # Cleanup temporary objects |
204 |
- find "${ED%/}${dest}" -name "_cffi_*.[co]" -delete || die |
205 |
- find "${ED%/}${dest}" -type d -empty -delete || die |
206 |
- |
207 |
- # compile the installed modules |
208 |
- python_optimize "${ED%/}${dest}" |
209 |
-} |