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, 24 May 2019 14:21:43
Message-Id: 1558707688.01b47c7023da4fa059a5d94d0b051f93e1db1006.mgorny@gentoo
1 commit: 01b47c7023da4fa059a5d94d0b051f93e1db1006
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 24 14:12:51 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri May 24 14:21:28 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01b47c70
7
8 dev-python/pypy3: Update the live ebuild to py3.6 branch
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pypy3/pypy3-9999.ebuild | 22 ++++++++++++++--------
13 1 file changed, 14 insertions(+), 8 deletions(-)
14
15 diff --git a/dev-python/pypy3/pypy3-9999.ebuild b/dev-python/pypy3/pypy3-9999.ebuild
16 index 236616d1f28..ca7aae03fe8 100644
17 --- a/dev-python/pypy3/pypy3-9999.ebuild
18 +++ b/dev-python/pypy3/pypy3-9999.ebuild
19 @@ -7,18 +7,18 @@ EAPI=7
20 PYTHON_COMPAT=( python2_7 pypy )
21 EHG_PROJECT="pypy"
22 EHG_REPO_URI="https://bitbucket.org/pypy/pypy"
23 -EHG_REVISION="py3.5"
24 +EHG_REVISION="py3.6"
25 inherit check-reqs mercurial pax-utils python-any-r1 toolchain-funcs
26
27 -MY_P=pypy3.5-v${PV}
28 +MY_P=pypy3.6-v${PV}
29
30 -DESCRIPTION="A fast, compliant alternative implementation of the Python (3.5) language"
31 +DESCRIPTION="A fast, compliant alternative implementation of the Python (3.6) language"
32 HOMEPAGE="http://pypy.org/"
33 SRC_URI=""
34
35 LICENSE="MIT"
36 # pypy3 -c 'import sysconfig; print(sysconfig.get_config_var("SOABI"))'
37 -SLOT="0/71"
38 +SLOT="0/71-py36"
39 KEYWORDS=""
40 IUSE="bzip2 gdbm +jit libressl low-memory ncurses sandbox sqlite tk"
41
42 @@ -178,12 +178,18 @@ src_compile() {
43 # "lzma": "_lzma_build.py",
44 # "_decimal": "_decimal_build.py",
45 # "_ssl": "_ssl_build.py",
46 - cffi_targets=( audioop syslog pwdgrp resource lzma decimal ssl )
47 +# "_blake2": "_blake2/_blake2_build.py",
48 +# "_sha3": "_sha3/_sha3_build.py",
49 + cffi_targets=( blake2/_blake2 sha3/_sha3 ssl
50 + audioop syslog pwdgrp resource lzma decimal )
51 use gdbm && cffi_targets+=( gdbm )
52 use ncurses && cffi_targets+=( curses )
53 use sqlite && cffi_targets+=( sqlite3 )
54 use tk && cffi_targets+=( tkinter/tklib )
55
56 + einfo "Please disregard the import errors during CFFI cache generation."
57 + einfo "They come from modules not built yet."
58 +
59 local t
60 # all modules except tkinter output to .
61 # tkinter outputs to the correct dir ...
62 @@ -208,7 +214,7 @@ src_test() {
63 }
64
65 src_install() {
66 - local dest=/usr/lib/pypy3.5
67 + local dest=/usr/lib/pypy3.6
68 einfo "Installing PyPy ..."
69 exeinto "${dest}"
70 doexe pypy3-c libpypy3-c.so
71 @@ -217,7 +223,7 @@ src_install() {
72 # preserve mtimes to avoid obsoleting caches
73 insopts -p
74 doins -r include lib_pypy lib-python
75 - dosym ../lib/pypy3.5/pypy3-c /usr/bin/pypy3
76 + dosym ../lib/pypy3.6/pypy3-c /usr/bin/pypy3
77 dodoc README.rst
78
79 if ! use gdbm; then
80 @@ -239,7 +245,7 @@ src_install() {
81 local -x PYTHON=${ED%/}${dest}/pypy3-c
82 # we can't use eclass function since PyPy is dumb and always gives
83 # paths relative to the interpreter
84 - local PYTHON_SITEDIR=${EPREFIX}/usr/lib/pypy3.5/site-packages
85 + local PYTHON_SITEDIR=${EPREFIX}/usr/lib/pypy3.6/site-packages
86 python_export pypy3 EPYTHON
87
88 echo "EPYTHON='${EPYTHON}'" > epython.py || die