1 |
mgorny 14/03/30 20:57:45 |
2 |
|
3 |
Modified: pypy-bin-2.0.2.ebuild ChangeLog |
4 |
Added: pypy-bin-2.0.2-r1.ebuild |
5 |
Log: |
6 |
Backport the :0 slot switch to pypy-2.0.2 since we have binpackages for this version. Update deps. |
7 |
|
8 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.8 dev-python/pypy-bin/pypy-bin-2.0.2.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pypy-bin/pypy-bin-2.0.2.ebuild?rev=1.8&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pypy-bin/pypy-bin-2.0.2.ebuild?rev=1.8&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pypy-bin/pypy-bin-2.0.2.ebuild?r1=1.7&r2=1.8 |
16 |
|
17 |
Index: pypy-bin-2.0.2.ebuild |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/pypy-bin/pypy-bin-2.0.2.ebuild,v |
20 |
retrieving revision 1.7 |
21 |
retrieving revision 1.8 |
22 |
diff -u -r1.7 -r1.8 |
23 |
--- pypy-bin-2.0.2.ebuild 21 Feb 2014 21:25:51 -0000 1.7 |
24 |
+++ pypy-bin-2.0.2.ebuild 30 Mar 2014 20:57:45 -0000 1.8 |
25 |
@@ -1,6 +1,6 @@ |
26 |
# Copyright 1999-2014 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pypy-bin/pypy-bin-2.0.2.ebuild,v 1.7 2014/02/21 21:25:51 mgorny Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pypy-bin/pypy-bin-2.0.2.ebuild,v 1.8 2014/03/30 20:57:45 mgorny Exp $ |
30 |
|
31 |
EAPI=5 |
32 |
|
33 |
@@ -55,22 +55,19 @@ |
34 |
RDEPEND=" |
35 |
~app-arch/bzip2-1.0.6 |
36 |
~dev-libs/expat-2.1.0 |
37 |
- || ( ~dev-libs/libffi-3.0.13 |
38 |
- ~dev-libs/libffi-3.0.12 |
39 |
- ~dev-libs/libffi-3.0.11 ) |
40 |
- || ( ~dev-libs/openssl-1.0.1f |
41 |
- ~dev-libs/openssl-1.0.1e |
42 |
- ~dev-libs/openssl-1.0.1d |
43 |
- ~dev-libs/openssl-1.0.1c ) |
44 |
- || ( ~sys-libs/glibc-2.17 |
45 |
- ~sys-libs/glibc-2.16.0 |
46 |
- ~sys-libs/glibc-2.15 ) |
47 |
+ ( <dev-libs/libffi-3.0.14 |
48 |
+ >=dev-libs/libffi-3.0.11 ) |
49 |
+ ( <dev-libs/openssl-1.0.1g |
50 |
+ >=dev-libs/openssl-1.0.1c ) |
51 |
+ ( <sys-libs/glibc-2.20 |
52 |
+ >=sys-libs/glibc-2.15 ) |
53 |
~sys-libs/ncurses-5.9 |
54 |
- || ( ~sys-libs/zlib-1.2.8 |
55 |
- ~sys-libs/zlib-1.2.7 ) |
56 |
+ ( <sys-libs/zlib-1.2.9 |
57 |
+ >=sys-libs/zlib-1.2.7 ) |
58 |
sqlite? ( dev-db/sqlite:3 ) |
59 |
!dev-python/pypy:${SLOT}" |
60 |
-DEPEND="doc? ( dev-python/sphinx ) |
61 |
+DEPEND="app-arch/xz-utils |
62 |
+ doc? ( dev-python/sphinx ) |
63 |
test? ( ${RDEPEND} )" |
64 |
PDEPEND="app-admin/python-updater" |
65 |
|
66 |
|
67 |
|
68 |
|
69 |
1.9 dev-python/pypy-bin/ChangeLog |
70 |
|
71 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pypy-bin/ChangeLog?rev=1.9&view=markup |
72 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pypy-bin/ChangeLog?rev=1.9&content-type=text/plain |
73 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pypy-bin/ChangeLog?r1=1.8&r2=1.9 |
74 |
|
75 |
Index: ChangeLog |
76 |
=================================================================== |
77 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/pypy-bin/ChangeLog,v |
78 |
retrieving revision 1.8 |
79 |
retrieving revision 1.9 |
80 |
diff -u -r1.8 -r1.9 |
81 |
--- ChangeLog 21 Feb 2014 21:25:51 -0000 1.8 |
82 |
+++ ChangeLog 30 Mar 2014 20:57:45 -0000 1.9 |
83 |
@@ -1,6 +1,13 @@ |
84 |
# ChangeLog for dev-python/pypy-bin |
85 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
86 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pypy-bin/ChangeLog,v 1.8 2014/02/21 21:25:51 mgorny Exp $ |
87 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pypy-bin/ChangeLog,v 1.9 2014/03/30 20:57:45 mgorny Exp $ |
88 |
+ |
89 |
+*pypy-bin-2.0.2-r1 (30 Mar 2014) |
90 |
+ |
91 |
+ 30 Mar 2014; Michał Górny <mgorny@g.o> +pypy-bin-2.0.2-r1.ebuild, |
92 |
+ pypy-bin-2.0.2.ebuild: |
93 |
+ Backport the :0 slot switch to pypy-2.0.2 since we have binpackages for this |
94 |
+ version. Update deps. |
95 |
|
96 |
21 Feb 2014; Michał Górny <mgorny@g.o> pypy-bin-2.0.2.ebuild: |
97 |
Bump openssl dep since the old version was cleaned. |
98 |
|
99 |
|
100 |
|
101 |
1.1 dev-python/pypy-bin/pypy-bin-2.0.2-r1.ebuild |
102 |
|
103 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pypy-bin/pypy-bin-2.0.2-r1.ebuild?rev=1.1&view=markup |
104 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pypy-bin/pypy-bin-2.0.2-r1.ebuild?rev=1.1&content-type=text/plain |
105 |
|
106 |
Index: pypy-bin-2.0.2-r1.ebuild |
107 |
=================================================================== |
108 |
# Copyright 1999-2014 Gentoo Foundation |
109 |
# Distributed under the terms of the GNU General Public License v2 |
110 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/pypy-bin/pypy-bin-2.0.2-r1.ebuild,v 1.1 2014/03/30 20:57:45 mgorny Exp $ |
111 |
|
112 |
EAPI=5 |
113 |
|
114 |
PYTHON_COMPAT=( python2_7 pypy2_0 ) |
115 |
inherit eutils multilib pax-utils python-any-r1 versionator |
116 |
|
117 |
BINHOST="http://dev.gentoo.org/~mgorny/dist/${PN}" |
118 |
|
119 |
DESCRIPTION="A fast, compliant alternative implementation of the Python language (binary package)" |
120 |
HOMEPAGE="http://pypy.org/" |
121 |
SRC_URI="mirror://bitbucket/pypy/pypy/downloads/pypy-${PV}-src.tar.bz2 |
122 |
amd64? ( |
123 |
jit? ( shadowstack? ( |
124 |
${BINHOST}/${P}-amd64+bzip2+jit+ncurses+shadowstack.tar.xz |
125 |
) ) |
126 |
jit? ( !shadowstack? ( |
127 |
${BINHOST}/${P}-amd64+bzip2+jit+ncurses.tar.xz |
128 |
) ) |
129 |
!jit? ( !shadowstack? ( |
130 |
${BINHOST}/${P}-amd64+bzip2+ncurses.tar.xz |
131 |
) ) |
132 |
) |
133 |
x86? ( |
134 |
sse2? ( |
135 |
jit? ( shadowstack? ( |
136 |
${BINHOST}/${P}-x86+bzip2+jit+ncurses+shadowstack+sse2.tar.xz |
137 |
) ) |
138 |
jit? ( !shadowstack? ( |
139 |
${BINHOST}/${P}-x86+bzip2+jit+ncurses+sse2.tar.xz |
140 |
) ) |
141 |
!jit? ( !shadowstack? ( |
142 |
${BINHOST}/${P}-x86+bzip2+ncurses+sse2.tar.xz |
143 |
) ) |
144 |
) |
145 |
!sse2? ( |
146 |
!jit? ( !shadowstack? ( |
147 |
${BINHOST}/${P}-x86+bzip2+ncurses.tar.xz |
148 |
) ) |
149 |
) |
150 |
)" |
151 |
|
152 |
# Supported variants |
153 |
REQUIRED_USE="!jit? ( !shadowstack ) |
154 |
x86? ( !sse2? ( !jit !shadowstack ) )" |
155 |
|
156 |
LICENSE="MIT" |
157 |
SLOT="0/$(get_version_component_range 1-2 ${PV})" |
158 |
KEYWORDS="~amd64 ~x86" |
159 |
IUSE="doc +jit shadowstack sqlite sse2 test" |
160 |
|
161 |
# yep, world would be easier if people started filling subslots... |
162 |
RDEPEND=" |
163 |
~app-arch/bzip2-1.0.6 |
164 |
~dev-libs/expat-2.1.0 |
165 |
( <dev-libs/libffi-3.0.14 |
166 |
>=dev-libs/libffi-3.0.11 ) |
167 |
( <dev-libs/openssl-1.0.1g |
168 |
>=dev-libs/openssl-1.0.1c ) |
169 |
( <sys-libs/glibc-2.20 |
170 |
>=sys-libs/glibc-2.15 ) |
171 |
~sys-libs/ncurses-5.9 |
172 |
( <sys-libs/zlib-1.2.9 |
173 |
>=sys-libs/zlib-1.2.7 ) |
174 |
sqlite? ( dev-db/sqlite:3 ) |
175 |
!dev-python/pypy:${SLOT}" |
176 |
DEPEND="app-arch/xz-utils |
177 |
doc? ( dev-python/sphinx ) |
178 |
test? ( ${RDEPEND} )" |
179 |
PDEPEND="app-admin/python-updater" |
180 |
|
181 |
S=${WORKDIR}/pypy-${PV}-src |
182 |
|
183 |
pkg_setup() { |
184 |
use doc && python-any-r1_pkg_setup |
185 |
} |
186 |
|
187 |
src_prepare() { |
188 |
epatch "${FILESDIR}/1.9-scripts-location.patch" |
189 |
epatch "${FILESDIR}/1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch" |
190 |
epatch "${FILESDIR}/2.0.2-distutils-fix_handling_of_executables_and_flags.patch" |
191 |
|
192 |
epatch_user |
193 |
} |
194 |
|
195 |
src_compile() { |
196 |
# Tadaam! PyPy compiled! |
197 |
mv "${WORKDIR}"/${P}*/pypy-c . || die |
198 |
mv "${WORKDIR}"/${P}*/include/*.h include/ || die |
199 |
mv pypy/module/cpyext/include/*.h include/ || die |
200 |
|
201 |
use doc && emake -C pypy/doc/ html |
202 |
#needed even without jit :( also needed in both compile and install phases |
203 |
pax-mark m pypy-c |
204 |
} |
205 |
|
206 |
src_test() { |
207 |
# (unset) |
208 |
local -x PYTHONDONTWRITEBYTECODE |
209 |
|
210 |
./pypy-c ./pypy/test_all.py --pypy=./pypy-c lib-python || die |
211 |
} |
212 |
|
213 |
src_install() { |
214 |
einfo "Installing PyPy ..." |
215 |
insinto "/usr/$(get_libdir)/pypy" |
216 |
doins -r include lib_pypy lib-python pypy-c |
217 |
fperms a+x ${INSDESTTREE}/pypy-c |
218 |
#needed even without jit :( |
219 |
pax-mark m "${ED%/}${INSDESTTREE}/pypy-c" |
220 |
dosym ../$(get_libdir)/pypy/pypy-c /usr/bin/pypy |
221 |
dodoc README.rst |
222 |
|
223 |
if ! use sqlite; then |
224 |
rm -r "${ED%/}${INSDESTTREE}"/lib-python/*2.7/sqlite3 || die |
225 |
rm "${ED%/}${INSDESTTREE}"/lib_pypy/_sqlite3.py || die |
226 |
fi |
227 |
|
228 |
# Install docs |
229 |
use doc && dohtml -r pypy/doc/_build/html/ |
230 |
|
231 |
einfo "Generating caches and byte-compiling ..." |
232 |
|
233 |
python_export pypy EPYTHON PYTHON PYTHON_SITEDIR |
234 |
local PYTHON=${ED%/}${INSDESTTREE}/pypy-c |
235 |
|
236 |
echo "EPYTHON='${EPYTHON}'" > epython.py |
237 |
python_domodule epython.py |
238 |
|
239 |
# Note: call portage helpers before this line. |
240 |
# PYTHONPATH confuses them and will result in random failures. |
241 |
|
242 |
local -x PYTHONPATH="${ED%/}${INSDESTTREE}/lib_pypy:${ED%/}${INSDESTTREE}/lib-python/2.7" |
243 |
|
244 |
# Generate Grammar and PatternGrammar pickles. |
245 |
"${PYTHON}" -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \ |
246 |
|| die "Generation of Grammar and PatternGrammar pickles failed" |
247 |
|
248 |
# Generate cffi cache |
249 |
"${PYTHON}" -c "import _curses" || die "Failed to import _curses" |
250 |
if use sqlite; then |
251 |
"${PYTHON}" -c "import _sqlite3" || die "Failed to import _sqlite3" |
252 |
fi |
253 |
|
254 |
# compile the installed modules |
255 |
python_optimize "${ED%/}${INSDESTTREE}" |
256 |
} |