1 |
floppym 12/01/30 15:50:35 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pypy-1.7-r1.ebuild |
5 |
Log: |
6 |
Apply patches from Arfrever to resolve bug 397523. |
7 |
|
8 |
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.8 dev-python/pypy/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pypy/ChangeLog?rev=1.8&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pypy/ChangeLog?rev=1.8&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pypy/ChangeLog?r1=1.7&r2=1.8 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/pypy/ChangeLog,v |
20 |
retrieving revision 1.7 |
21 |
retrieving revision 1.8 |
22 |
diff -u -r1.7 -r1.8 |
23 |
--- ChangeLog 15 Jan 2012 22:07:18 -0000 1.7 |
24 |
+++ ChangeLog 30 Jan 2012 15:50:35 -0000 1.8 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for dev-python/pypy |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pypy/ChangeLog,v 1.7 2012/01/15 22:07:18 hwoarang Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pypy/ChangeLog,v 1.8 2012/01/30 15:50:35 floppym Exp $ |
30 |
+ |
31 |
+*pypy-1.7-r1 (30 Jan 2012) |
32 |
+ |
33 |
+ 30 Jan 2012; Mike Gilbert <floppym@g.o> |
34 |
+ +files/pypy-1.7-distutils-fix_handling_of_executables_and_flags.patch, +files/ |
35 |
+ pypy-1.7-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patc |
36 |
+ h, +pypy-1.7-r1.ebuild: |
37 |
+ Apply patches from Arfrever to resolve bug 397523. |
38 |
|
39 |
15 Jan 2012; Markos Chandras <hwoarang@g.o> pypy-1.7.ebuild: |
40 |
Don't call use() in global scope. Patch by Arfrever. |
41 |
|
42 |
|
43 |
|
44 |
1.1 dev-python/pypy/pypy-1.7-r1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pypy/pypy-1.7-r1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pypy/pypy-1.7-r1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: pypy-1.7-r1.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2012 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/pypy/pypy-1.7-r1.ebuild,v 1.1 2012/01/30 15:50:35 floppym Exp $ |
54 |
|
55 |
EAPI="4" |
56 |
|
57 |
inherit eutils toolchain-funcs check-reqs python versionator |
58 |
|
59 |
DESCRIPTION="PyPy is a fast, compliant alternative implementation of the Python language" |
60 |
HOMEPAGE="http://pypy.org/" |
61 |
SRC_URI="https://bitbucket.org/pypy/pypy/get/release-${PV}.tar.bz2" |
62 |
SLOTVER=$(get_version_component_range 1-2 ${PV}) |
63 |
|
64 |
LICENSE="MIT" |
65 |
SLOT="${SLOTVER}" |
66 |
PYTHON_ABI="2.7-pypy-${SLOTVER}" |
67 |
KEYWORDS="~amd64 ~x86" |
68 |
IUSE="doc examples +jit sandbox test bzip2 ncurses xml ssl" |
69 |
|
70 |
RDEPEND=">=sys-libs/zlib-1.1.3 |
71 |
virtual/libffi |
72 |
virtual/libintl |
73 |
bzip2? ( app-arch/bzip2 ) |
74 |
ncurses? ( sys-libs/ncurses ) |
75 |
xml? ( dev-libs/expat ) |
76 |
ssl? ( dev-libs/openssl )" |
77 |
DEPEND="${RDEPEND}" |
78 |
PDEPEND="app-admin/python-updater" |
79 |
|
80 |
S="${WORKDIR}/${PN}-pypy-release-${PV}" |
81 |
|
82 |
DOC="README LICENSE" |
83 |
|
84 |
pkg_pretend() { |
85 |
CHECKREQS_MEMORY="1250M" |
86 |
use amd64 && CHECKREQS_MEMORY="2500M" |
87 |
check-reqs_pkg_pretend |
88 |
} |
89 |
|
90 |
src_prepare() { |
91 |
epatch "${FILESDIR}/${PV}-patches.patch" |
92 |
epatch "${FILESDIR}/${PV}-scripts-location.patch" |
93 |
epatch "${FILESDIR}/${P}-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch" |
94 |
epatch "${FILESDIR}/${P}-distutils-fix_handling_of_executables_and_flags.patch" |
95 |
} |
96 |
|
97 |
src_compile() { |
98 |
|
99 |
if use jit; then |
100 |
conf="-Ojit" |
101 |
else |
102 |
conf="-O2" |
103 |
fi |
104 |
if use sandbox; then |
105 |
conf+=" --sandbox" |
106 |
fi |
107 |
|
108 |
conf+=" ./pypy/translator/goal/targetpypystandalone.py" |
109 |
# Avoid linking against libraries disabled by use flags |
110 |
optional_use=("bzip2" "ncurses" "xml" "ssl") |
111 |
optional_mod=("bz2" "_minimal_curses" "pyexpat" "_ssl") |
112 |
for ((i = 0; i < ${#optional_use[*]}; i++)); do |
113 |
if use ${optional_use[$i]}; then |
114 |
conf+=" --withmod-${optional_mod[$i]}" |
115 |
else |
116 |
conf+=" --withoutmod-${optional_mod[$i]}" |
117 |
fi |
118 |
done |
119 |
|
120 |
translate_cmd="$(PYTHON -2) ./pypy/translator/goal/translate.py $conf" |
121 |
echo ${_BOLD}"${translate_cmd}"${_NORMAL} |
122 |
${translate_cmd} || die "compile error" |
123 |
} |
124 |
|
125 |
src_install() { |
126 |
INSPATH="/usr/$(get_libdir)/pypy${SLOT}" |
127 |
insinto ${INSPATH} |
128 |
doins -r include lib_pypy lib-python pypy-c |
129 |
fperms a+x ${INSPATH}/pypy-c |
130 |
dosym ../$(get_libdir)/pypy${SLOT}/pypy-c /usr/bin/pypy-c${SLOT} |
131 |
} |
132 |
|
133 |
src_test() { |
134 |
$(PYTHON -2) ./pypy/test_all.py --pypy=./pypy-c lib-python |
135 |
} |