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/
Date: Fri, 27 Apr 2018 06:35:03
Message-Id: 1524810870.726a19d2a9960cd108e2eedab622355a1c5cd1e3.mgorny@gentoo
1 commit: 726a19d2a9960cd108e2eedab622355a1c5cd1e3
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 26 15:23:51 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 27 06:34:30 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=726a19d2
7
8 dev-python/pypy3: Bump to 6.0.0
9
10 dev-python/pypy3/Manifest | 1 +
11 .../{pypy3-9999.ebuild => pypy3-6.0.0.ebuild} | 54 ++++++----------------
12 dev-python/pypy3/pypy3-9999.ebuild | 2 +-
13 3 files changed, 15 insertions(+), 42 deletions(-)
14
15 diff --git a/dev-python/pypy3/Manifest b/dev-python/pypy3/Manifest
16 index 79018f78649..9978328ad1b 100644
17 --- a/dev-python/pypy3/Manifest
18 +++ b/dev-python/pypy3/Manifest
19 @@ -1,3 +1,4 @@
20 DIST pypy3-v5.10.0-src.tar.bz2 29075971 BLAKE2B 02fb64d514ab292e09ced57e1c206b04d0fb38353ad6ec0e836448344a6d126d0fccfb61cbd278ea3acaa227032640e82f9ffd7efe3b33ade1ca34a18831b3e4 SHA512 69a373c18dbad9dd617f994ad885c8d8975f0c484ba9dd547e6e892c9a3030a43e9e3ee668aee5f4969403883de1311cef97a0a5e5701921172ee6c2119b771b
21 DIST pypy3-v5.10.1-src.tar.bz2 29071765 BLAKE2B d5c163697d8dd36a9a61e9a355719628902de0c9a4c038d31cd134d9bb26b8058abfdf85b09715208146295c37e343fae5e1e4a3c8d1999306eeea93791e326c SHA512 91b0ed25130bdbb46d5e577136b5fe63d5162917dcc2d0b69f5cac2a283ece9d0bfd3c7c8dc61ff391e0550fa1603326f6edeb2df3159d71617fefe6c07439f5
22 DIST pypy3-v5.9.0-src.tar.bz2 29055111 BLAKE2B 181d87ebe4a83a3f03b28d891f248f718ad120ed54621f8054f19a65aebbe90b65c69e40ca656612356b2019aa9ac22d5e242e688a80190b046511a8ceb9c040 SHA512 3d5384d644fdd1bc8b95f5747dbd1771ae06eb2cfc7b57be359b8bf40177676afd097620d0cb9d9000c40d8cce075cfa6bfd92de987d3dd927c04d7d595dc5bd
23 +DIST pypy3-v6.0.0-src.tar.bz2 22648140 BLAKE2B b8678859b0c24494788ddf6f410a3ec1a56a04663452e1aba25d3f41c5073a95866d1623f00cb1a6c9d0256df728fa60d1edb5b58d26c0d88577769cc8a6205d SHA512 ea406c4dd1837a6ab13026de01330790f3c18f6e2bfb83e8553e52acf78b43dfb559ce75c2d91395055c771db359356c8183ed950da6f01a21bf09128935af5e
24
25 diff --git a/dev-python/pypy3/pypy3-9999.ebuild b/dev-python/pypy3/pypy3-6.0.0.ebuild
26 similarity index 86%
27 copy from dev-python/pypy3/pypy3-9999.ebuild
28 copy to dev-python/pypy3/pypy3-6.0.0.ebuild
29 index c3217b6688d..71af571b476 100644
30 --- a/dev-python/pypy3/pypy3-9999.ebuild
31 +++ b/dev-python/pypy3/pypy3-6.0.0.ebuild
32 @@ -5,20 +5,19 @@ EAPI=6
33
34 # pypy3 needs to be built using python 2
35 PYTHON_COMPAT=( python2_7 pypy )
36 -EHG_PROJECT="pypy"
37 -EHG_REPO_URI="https://bitbucket.org/pypy/pypy"
38 -EHG_REVISION="py3k"
39 -inherit check-reqs mercurial pax-utils python-any-r1 toolchain-funcs versionator
40 +inherit check-reqs pax-utils python-any-r1 toolchain-funcs versionator
41
42 -DESCRIPTION="A fast, compliant alternative implementation of the Python (3.3) language"
43 +MY_P=pypy3-v${PV}
44 +
45 +DESCRIPTION="A fast, compliant alternative implementation of the Python (3.5) language"
46 HOMEPAGE="http://pypy.org/"
47 -SRC_URI=""
48 +SRC_URI="https://bitbucket.org/pypy/pypy/downloads/${MY_P}-src.tar.bz2"
49
50 LICENSE="MIT"
51 # pypy3 -c 'import sysconfig; print(sysconfig.get_config_var("SOABI"))'
52 -SLOT="0/59"
53 -KEYWORDS=""
54 -IUSE="bzip2 gdbm +jit libressl low-memory ncurses sandbox sqlite cpu_flags_x86_sse2 tk"
55 +SLOT="0/60"
56 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
57 +IUSE="bzip2 gdbm +jit libressl low-memory ncurses sandbox sqlite tk"
58
59 RDEPEND=">=sys-libs/zlib-1.1.3:0=
60 virtual/libffi:0=
61 @@ -47,8 +46,7 @@ DEPEND="${RDEPEND}
62 )
63 )"
64
65 -# Who would care about predictable directory names?
66 -S="${WORKDIR}/pypy3-v${PV%_*}-src"
67 +S="${WORKDIR}/${MY_P}-src"
68
69 check_env() {
70 if use low-memory; then
71 @@ -85,11 +83,6 @@ pkg_setup() {
72 fi
73 }
74
75 -src_unpack() {
76 - default
77 - mercurial_src_unpack
78 -}
79 -
80 src_prepare() {
81 eapply "${FILESDIR}/4.0.0-gentoo-path.patch"
82 eapply "${FILESDIR}/1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch"
83 @@ -111,32 +104,12 @@ src_prepare() {
84 src_configure() {
85 tc-export CC
86
87 - local jit_backend
88 - if use jit; then
89 - jit_backend='--jit-backend='
90 -
91 - # We only need the explicit sse2 switch for x86.
92 - # On other arches we can rely on autodetection which uses
93 - # compiler macros. Plus, --jit-backend= doesn't accept all
94 - # the modern values...
95 -
96 - if use x86; then
97 - if use cpu_flags_x86_sse2; then
98 - jit_backend+=x86
99 - else
100 - jit_backend+=x86-without-sse2
101 - fi
102 - else
103 - jit_backend+=auto
104 - fi
105 - fi
106 -
107 local args=(
108 --shared
109 $(usex jit -Ojit -O2)
110 $(usex sandbox --sandbox '')
111
112 - ${jit_backend}
113 + --jit-backend=auto
114
115 pypy/goal/targetpypystandalone
116 )
117 @@ -197,7 +170,7 @@ src_compile() {
118 # "resource": "_resource_build.py" if sys.platform != "win32" else None,
119 # "lzma": "_lzma_build.py",
120 # "_decimal": "_decimal_build.py",
121 -# "ssl": "_ssl_build.py",
122 +# "_ssl": "_ssl_build.py",
123 cffi_targets=( audioop syslog pwdgrp resource lzma decimal ssl )
124 use gdbm && cffi_targets+=( gdbm )
125 use ncurses && cffi_targets+=( curses )
126 @@ -241,12 +214,11 @@ src_install() {
127 dodoc README.rst
128
129 if ! use gdbm; then
130 - rm -r "${ED%/}${dest}"/lib_pypy/gdbm.py \
131 - "${ED%/}${dest}"/lib-python/*3/test/test_gdbm.py || die
132 + rm -r "${ED%/}${dest}"/lib_pypy/_gdbm* || die
133 fi
134 if ! use sqlite; then
135 rm -r "${ED%/}${dest}"/lib-python/*3/sqlite3 \
136 - "${ED%/}${dest}"/lib_pypy/_sqlite3.py \
137 + "${ED%/}${dest}"/lib_pypy/_sqlite3* \
138 "${ED%/}${dest}"/lib-python/*3/test/test_sqlite.py || die
139 fi
140 if ! use tk; then
141
142 diff --git a/dev-python/pypy3/pypy3-9999.ebuild b/dev-python/pypy3/pypy3-9999.ebuild
143 index c3217b6688d..61b32ea2ad5 100644
144 --- a/dev-python/pypy3/pypy3-9999.ebuild
145 +++ b/dev-python/pypy3/pypy3-9999.ebuild
146 @@ -16,7 +16,7 @@ SRC_URI=""
147
148 LICENSE="MIT"
149 # pypy3 -c 'import sysconfig; print(sysconfig.get_config_var("SOABI"))'
150 -SLOT="0/59"
151 +SLOT="0/60"
152 KEYWORDS=""
153 IUSE="bzip2 gdbm +jit libressl low-memory ncurses sandbox sqlite cpu_flags_x86_sse2 tk"