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/pypy3-bin/
Date: Sat, 05 Jan 2019 13:40:05
Message-Id: 1546695589.211b958e16f7a93e4f7c15557fa2099856ab894f.mgorny@gentoo
1 commit: 211b958e16f7a93e4f7c15557fa2099856ab894f
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 5 13:27:21 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 5 13:39:49 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=211b958e
7
8 dev-python/pypy3-bin: Remove 5.10.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pypy3-bin/Manifest | 6 -
13 dev-python/pypy3-bin/pypy3-bin-5.10.1.ebuild | 183 ---------------------------
14 2 files changed, 189 deletions(-)
15
16 diff --git a/dev-python/pypy3-bin/Manifest b/dev-python/pypy3-bin/Manifest
17 index 1c8664d69df..2f2b56451a9 100644
18 --- a/dev-python/pypy3-bin/Manifest
19 +++ b/dev-python/pypy3-bin/Manifest
20 @@ -1,8 +1,3 @@
21 -DIST pypy3-bin-5.10.1-amd64+bzip2+jit+ncurses.tar.lz 10635227 BLAKE2B 242509202f5dcc644043ecf69cc50006462146f443ce833d895661545f3270a70f7ddcd7f352084fd3ca71547b548a4b9102f198bf37fa9ed341b70a7e725a1a SHA512 9cb7a4ba15f9608b7925f5110262de2b8a06f05f8619d268d6aad4e492e942b8ecd3626dcb12b77fd4ab3f2742b4887d247e4126d2d5c4b55b765e92c3c3d159
22 -DIST pypy3-bin-5.10.1-amd64+bzip2+ncurses.tar.lz 6648051 BLAKE2B d97d306076e293f9a1c4d2e413bd6d72811a93f7eee17a87622e809cd24994d039a23e8ba720d7d941791f4fbb4f1d47431bd477b76e9aadcade56163483b985 SHA512 9b1e9fe8f06dea1ed008992f7e3f0858a5c65d86cab2d6fe6736a0f4a9c0bb9e42adf609436e9aca4a363c297b4054a376360e1842c68b5d15728b651c1bd884
23 -DIST pypy3-bin-5.10.1-x86+bzip2+jit+ncurses+sse2.tar.lz 8244224 BLAKE2B 3ad4a63cab485f151fbd2bd49c55fcc084ff51e50a7ac5fa00ead3e6867794b35f37b7ceb060e85eaecb2a6b2a6fc62dc5a3df832e72cdcb5baa49140e9770e8 SHA512 6f8bb0f575cfe29afcec4d75331ec78516167e6ea345eebdcb7b73c48e9ecf0431433e23b54d2b0fcc16e7e7bc0e6ebfa14b0748a0e4f6b558f6fb20411ca769
24 -DIST pypy3-bin-5.10.1-x86+bzip2+ncurses+sse2.tar.lz 5351320 BLAKE2B e45ede827a98f6b1e6c00bc1bbeb2a422b53bb68efe9708235be034fe02e90f97352f04e1ab77dc56030942a407887542cf0308c3e4da41f55dcc0d3d251b0ac SHA512 71ba8ababf0ef380adf538989829e068b4353195f796d6d06c128803757d9e41b2e3fe5e96b7029494beb96f83bb8943158541ada7b4c27e46d0511ca62f6a89
25 -DIST pypy3-bin-5.10.1-x86+bzip2+ncurses.tar.lz 5343927 BLAKE2B 27c5842a1f00ff9b56c1417c290ab677bc8e1cff36ce5d226f1e3e262b14c0f0e8a5f3d474e23bcaef467b8210357d0724e752d9249f275c16cc645e59cd1530 SHA512 6f7ff616d6d0532ce4919d5e6cd69a46fd81c548efda2869653ce07d736d83f256f302040726931d85c83a297ab4c7f6e15675a17576fbffa4313a48435e182e
26 DIST pypy3-bin-6.0.0-amd64+bzip2+jit+ncurses.ffi7.tar.lz 10697120 BLAKE2B 3e368d0fb6b875472d79b531bef926bedddf73c1f2bb25e00f56cd41c4349be119281d2c2d52239bd2769f3f9810280f8c00d9332e02b8664e46de06f2c112d8 SHA512 2e9c405212d35289a8add374cae185bf9096a46604c4e2935f1a58bee51aa756b311e5b611098e917da7fbd10194706fca809249f627b7d4b8c628bf9b38aa54
27 DIST pypy3-bin-6.0.0-amd64+bzip2+jit+ncurses.tar.lz 10674209 BLAKE2B f9e00ba0cdc113ebe156212c5497e122a45bc9544cb242ad02273e06210eb691f930aee7faf1d4ed3a7b14080905a9cb6d30b309c38a2c3795f2183750b4469f SHA512 52e615e2b51a43a2c91f9a2a8f0cec16a6090bfd230ef08dda462bb530da9ee66acec9c449e77f299e0b3363d6bcbc7150b14e7adbe9862d36f4738dfc6be1ca
28 DIST pypy3-bin-6.0.0-amd64+bzip2+ncurses.ffi7.tar.lz 6710567 BLAKE2B 239badab3e3f4cb17116f2d2b3cbf58f7a481bdbc78d813563f5a7c2c67002cce598de70ebdbdd8d5dc348ec5db07559a2f35e712ebe46d1f472f2b2ccb9fa05 SHA512 ae3e76c2df50a2ec39e8f447fcacf913a1e9a3cf1268324ddc303b35e8a7a07413278e313e92579c311238ec185cb61d3d97fcbf6e972846859dc423792f55f0
29 @@ -13,5 +8,4 @@ DIST pypy3-bin-6.0.0-x86+bzip2+ncurses+sse2.ffi7.tar.lz 5384351 BLAKE2B 952676b1
30 DIST pypy3-bin-6.0.0-x86+bzip2+ncurses+sse2.tar.lz 5363942 BLAKE2B d53b89ef73c2d4ee2bc00360a0c4a791fd8b6ac2d28dfeeb7510a465e6302f79c378aacebbaf4993b6ee55dbc6d85876149fe3f5a0d689713f029c928d93a729 SHA512 ce72d84200dd275841e691810dbf402423883b282cacbe8bbdae9285936869d40b3d43d053b0f3d4904c7ced72f35480d1780358180a1c98e8111852fef1f77f
31 DIST pypy3-bin-6.0.0-x86+bzip2+ncurses.ffi7.tar.lz 5384380 BLAKE2B 7e452d0b163f401d0741e95aa2f55e84eb223eb3152f0299b365d1dd53268d315496977d988149c29e0e3439834d7283bfa9a9e05f2d7a8abb3f3d65aa05e567 SHA512 d743c4275abfbce1ef1ae2949e93097faeca8377e38761183ff7d0cc23b92d93700bf370d1511c968743e769a0b41acfeae01543885cc55bef8cdd2c6817af0f
32 DIST pypy3-bin-6.0.0-x86+bzip2+ncurses.tar.lz 5366917 BLAKE2B 338a9c221048dabc548250edec05256be64dd5d1aeb5b2fff839d7d5e8dda29e7d4e0a03b1fc0c9cd418685c558bb47598c625e2d28cd4caabc45e21eee9f4f8 SHA512 5274535d01564a9087aea486320921c8784cabcc7bde3634c27b9006988fdc745e6e5e5c2fb8e7b0318fd5ca6fda3fce208743cfa079a7474ea44277237ea873
33 -DIST pypy3-v5.10.1-src.tar.bz2 29071765 BLAKE2B d5c163697d8dd36a9a61e9a355719628902de0c9a4c038d31cd134d9bb26b8058abfdf85b09715208146295c37e343fae5e1e4a3c8d1999306eeea93791e326c SHA512 91b0ed25130bdbb46d5e577136b5fe63d5162917dcc2d0b69f5cac2a283ece9d0bfd3c7c8dc61ff391e0550fa1603326f6edeb2df3159d71617fefe6c07439f5
34 DIST pypy3-v6.0.0-src.tar.bz2 22648140 BLAKE2B b8678859b0c24494788ddf6f410a3ec1a56a04663452e1aba25d3f41c5073a95866d1623f00cb1a6c9d0256df728fa60d1edb5b58d26c0d88577769cc8a6205d SHA512 ea406c4dd1837a6ab13026de01330790f3c18f6e2bfb83e8553e52acf78b43dfb559ce75c2d91395055c771db359356c8183ed950da6f01a21bf09128935af5e
35
36 diff --git a/dev-python/pypy3-bin/pypy3-bin-5.10.1.ebuild b/dev-python/pypy3-bin/pypy3-bin-5.10.1.ebuild
37 deleted file mode 100644
38 index 2457cda763f..00000000000
39 --- a/dev-python/pypy3-bin/pypy3-bin-5.10.1.ebuild
40 +++ /dev/null
41 @@ -1,183 +0,0 @@
42 -# Copyright 1999-2018 Gentoo Foundation
43 -# Distributed under the terms of the GNU General Public License v2
44 -
45 -EAPI=6
46 -
47 -# Test runner needs Python 2.
48 -PYTHON_COMPAT=( python2_7 pypy )
49 -inherit pax-utils python-any-r1 unpacker versionator
50 -
51 -BINHOST="https://dev.gentoo.org/~mgorny/dist/pypy3-bin/${PV}"
52 -MY_P=pypy3-v${PV}
53 -
54 -DESCRIPTION="A fast, compliant alternative implementation of Python 3.3 (binary package)"
55 -HOMEPAGE="http://pypy.org/"
56 -SRC_URI="https://bitbucket.org/pypy/pypy/downloads/${MY_P}-src.tar.bz2
57 - amd64? (
58 - jit? ( ${BINHOST}/${P}-amd64+bzip2+jit+ncurses.tar.lz )
59 - !jit? ( ${BINHOST}/${P}-amd64+bzip2+ncurses.tar.lz )
60 - )
61 - x86? (
62 - cpu_flags_x86_sse2? (
63 - jit? ( ${BINHOST}/${P}-x86+bzip2+jit+ncurses+sse2.tar.lz )
64 - !jit? ( ${BINHOST}/${P}-x86+bzip2+ncurses+sse2.tar.lz )
65 - )
66 - !cpu_flags_x86_sse2? (
67 - !jit? ( ${BINHOST}/${P}-x86+bzip2+ncurses.tar.lz )
68 - )
69 - )"
70 -
71 -# Supported variants
72 -REQUIRED_USE="x86? ( !cpu_flags_x86_sse2? ( !jit ) )"
73 -
74 -LICENSE="MIT"
75 -# pypy -c 'import sysconfig; print sysconfig.get_config_var("SOABI")'
76 -SLOT="0/510"
77 -KEYWORDS="~amd64 ~x86"
78 -IUSE="gdbm +jit libressl sqlite cpu_flags_x86_sse2 test tk"
79 -
80 -RDEPEND="
81 - app-arch/bzip2:0/1
82 - dev-libs/expat:0/0
83 - dev-libs/libffi:0/0
84 - sys-devel/gcc:*
85 - sys-libs/glibc
86 - sys-libs/ncurses:0/6
87 - sys-libs/zlib:0/1
88 - gdbm? ( sys-libs/gdbm:0= )
89 - !libressl? ( dev-libs/openssl:0=[-bindist] )
90 - libressl? ( dev-libs/libressl:0= )
91 - sqlite? ( dev-db/sqlite:3= )
92 - tk? (
93 - dev-lang/tk:0=
94 - dev-tcltk/tix:0=
95 - )
96 - !dev-python/pypy3:0"
97 -DEPEND="${RDEPEND}
98 - app-arch/lzip
99 - app-arch/xz-utils
100 - test? ( ${PYTHON_DEPS} )"
101 -
102 -S=${WORKDIR}/${MY_P}-src
103 -
104 -QA_PREBUILT="
105 - usr/lib*/pypy3/pypy3-c
106 - usr/lib*/pypy3/libpypy3-c.so"
107 -
108 -src_prepare() {
109 - eapply "${FILESDIR}/4.0.0-gentoo-path.patch"
110 - eapply "${FILESDIR}/1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch"
111 -
112 - sed -e "s^@EPREFIX@^${EPREFIX}^" \
113 - -e "s^@libdir@^$(get_libdir)^" \
114 - -i lib-python/3/distutils/command/install.py || die
115 -
116 - # apply CPython stdlib patches
117 - pushd lib-python/3 > /dev/null || die
118 - eapply "${FILESDIR}"/5.8.0_all_distutils_cxx.patch
119 - eapply "${FILESDIR}"/python-3.5-distutils-OO-build.patch
120 - popd > /dev/null || die
121 -
122 - eapply_user
123 -}
124 -
125 -src_compile() {
126 - # Tadaam! PyPy compiled!
127 - mv "${WORKDIR}"/${P}*/{libpypy3-c.so,pypy3-c} . || die
128 - mv "${WORKDIR}"/${P}*/include/*.h include/ || die
129 - mv pypy/module/cpyext/include/*.h include/ || die
130 - mv pypy/module/cpyext/parse/*.h include/ || die
131 -
132 - pax-mark m pypy3-c libpypy3-c.so
133 -
134 - einfo "Generating caches and CFFI modules ..."
135 -
136 - # Generate Grammar and PatternGrammar pickles.
137 - ./pypy3-c -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \
138 - || die "Generation of Grammar and PatternGrammar pickles failed"
139 -
140 - # Generate cffi modules
141 - # Please keep in sync with pypy/tool/build_cffi_imports.py!
142 -#cffi_build_scripts = {
143 -# "sqlite3": "_sqlite3_build.py",
144 -# "audioop": "_audioop_build.py",
145 -# "tk": "_tkinter/tklib_build.py",
146 -# "curses": "_curses_build.py" if sys.platform != "win32" else None,
147 -# "syslog": "_syslog_build.py" if sys.platform != "win32" else None,
148 -# "_gdbm": "_gdbm_build.py" if sys.platform != "win32" else None,
149 -# "pwdgrp": "_pwdgrp_build.py" if sys.platform != "win32" else None,
150 -# "resource": "_resource_build.py" if sys.platform != "win32" else None,
151 -# "lzma": "_lzma_build.py",
152 -# "_decimal": "_decimal_build.py",
153 -# "ssl": "_ssl_build.py",
154 - cffi_targets=( audioop curses syslog pwdgrp resource lzma decimal ssl )
155 - use gdbm && cffi_targets+=( gdbm )
156 - use sqlite && cffi_targets+=( sqlite3 )
157 - use tk && cffi_targets+=( tkinter/tklib )
158 -
159 - local t
160 - # all modules except tkinter output to .
161 - # tkinter outputs to the correct dir ...
162 - cd lib_pypy || die
163 - for t in "${cffi_targets[@]}"; do
164 - # tkinter doesn't work via -m
165 - ../pypy3-c "_${t}_build.py" || die "Failed to build CFFI bindings for ${t}"
166 - done
167 -
168 - # Cleanup temporary objects
169 - find -name "_cffi_*.[co]" -delete || die
170 - find -type d -empty -delete || die
171 -}
172 -
173 -src_test() {
174 - # (unset)
175 - local -x PYTHONDONTWRITEBYTECODE
176 -
177 - # Test runner requires Python 2 too. However, it spawns PyPy3
178 - # internally so that we end up testing the correct interpreter.
179 - "${PYTHON}" ./pypy/test_all.py --pypy=./pypy3-c lib-python || die
180 -}
181 -
182 -src_install() {
183 - local dest=/usr/$(get_libdir)/pypy3
184 - einfo "Installing PyPy ..."
185 - exeinto "${dest}"
186 - doexe pypy3-c libpypy3-c.so
187 - pax-mark m "${ED%/}${dest}/pypy3-c" "${ED%/}${dest}/libpypy3-c.so"
188 - insinto "${dest}"
189 - # preserve mtimes to avoid obsoleting caches
190 - insopts -p
191 - doins -r include lib_pypy lib-python
192 - dosym ../$(get_libdir)/pypy3/pypy3-c /usr/bin/pypy3
193 - dodoc README.rst
194 -
195 - if ! use gdbm; then
196 - rm -r "${ED%/}${dest}"/lib_pypy/_gdbm* || die
197 - fi
198 - if ! use sqlite; then
199 - rm -r "${ED%/}${dest}"/lib-python/*3/sqlite3 \
200 - "${ED%/}${dest}"/lib_pypy/_sqlite3* \
201 - "${ED%/}${dest}"/lib-python/*3/test/test_sqlite.py || die
202 - fi
203 - if ! use tk; then
204 - rm -r "${ED%/}${dest}"/lib-python/*3/{idlelib,tkinter} \
205 - "${ED%/}${dest}"/lib_pypy/_tkinter \
206 - "${ED%/}${dest}"/lib-python/*3/test/test_{tcl,tk,ttk*}.py || die
207 - fi
208 -
209 - einfo "Generating caches and byte-compiling ..."
210 -
211 - local -x PYTHON=${ED%/}${dest}/pypy3-c
212 - # we can't use eclass function since PyPy is dumb and always gives
213 - # paths relative to the interpreter
214 - local PYTHON_SITEDIR=${EPREFIX}/usr/$(get_libdir)/pypy3/site-packages
215 - python_export pypy3 EPYTHON
216 -
217 - echo "EPYTHON='${EPYTHON}'" > epython.py || die
218 - python_domodule epython.py
219 -
220 - einfo "Byte-compiling Python standard library..."
221 -
222 - # compile the installed modules
223 - python_optimize "${ED%/}${dest}"
224 -}