1 |
axs 14/05/23 21:13:46 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: spidermonkey-24.2.0-r2.ebuild |
5 |
Log: |
6 |
changed the flags that USE=jit controls on spidermonkey24 ; addresses bug 510982 |
7 |
|
8 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED) |
9 |
|
10 |
Revision Changes Path |
11 |
1.150 dev-lang/spidermonkey/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/ChangeLog?rev=1.150&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/ChangeLog?rev=1.150&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/ChangeLog?r1=1.149&r2=1.150 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/ChangeLog,v |
20 |
retrieving revision 1.149 |
21 |
retrieving revision 1.150 |
22 |
diff -u -r1.149 -r1.150 |
23 |
--- ChangeLog 5 May 2014 20:28:23 -0000 1.149 |
24 |
+++ ChangeLog 23 May 2014 21:13:46 -0000 1.150 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for dev-lang/spidermonkey |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/ChangeLog,v 1.149 2014/05/05 20:28:23 axs Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/ChangeLog,v 1.150 2014/05/23 21:13:46 axs Exp $ |
30 |
+ |
31 |
+*spidermonkey-24.2.0-r2 (23 May 2014) |
32 |
+ |
33 |
+ 23 May 2014; Ian Stakenvicius (_AxS_) <axs@g.o> |
34 |
+ +spidermonkey-24.2.0-r2.ebuild: |
35 |
+ changed the flags that USE=jit controls on spidermonkey24 ; addresses bug |
36 |
+ 510982 |
37 |
|
38 |
05 May 2014; Ian Stakenvicius (_AxS_) <axs@g.o> |
39 |
+files/spidermonkey-24-upward-growing-stack.patch, |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-lang/spidermonkey/spidermonkey-24.2.0-r2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/spidermonkey-24.2.0-r2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/spidermonkey-24.2.0-r2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: spidermonkey-24.2.0-r2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/spidermonkey-24.2.0-r2.ebuild,v 1.1 2014/05/23 21:13:46 axs Exp $ |
53 |
|
54 |
EAPI="5" |
55 |
WANT_AUTOCONF="2.1" |
56 |
PYTHON_COMPAT=( python2_{6,7} ) |
57 |
PYTHON_REQ_USE="threads" |
58 |
inherit autotools eutils toolchain-funcs multilib python-any-r1 versionator pax-utils |
59 |
|
60 |
MY_PN="mozjs" |
61 |
MY_P="${MY_PN}-${PV/_/.}" |
62 |
DESCRIPTION="Stand-alone JavaScript C library" |
63 |
HOMEPAGE="http://www.mozilla.org/js/spidermonkey/" |
64 |
SRC_URI="https://ftp.mozilla.org/pub/mozilla.org/js/${MY_P}.tar.bz2" |
65 |
|
66 |
LICENSE="NPL-1.1" |
67 |
SLOT="24" |
68 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
69 |
IUSE="debug icu jit minimal static-libs +system-icu test" |
70 |
|
71 |
RESTRICT="ia64? ( test )" |
72 |
|
73 |
S="${WORKDIR}/${MY_P%.rc*}" |
74 |
BUILDDIR="${S}/js/src" |
75 |
|
76 |
RDEPEND=">=dev-libs/nspr-4.9.4 |
77 |
virtual/libffi |
78 |
>=sys-libs/zlib-1.1.4 |
79 |
system-icu? ( >=dev-libs/icu-1.51:= )" |
80 |
DEPEND="${RDEPEND} |
81 |
${PYTHON_DEPS} |
82 |
app-arch/zip |
83 |
virtual/pkgconfig" |
84 |
|
85 |
pkg_setup(){ |
86 |
if [[ ${MERGE_TYPE} != "binary" ]]; then |
87 |
python-any-r1_pkg_setup |
88 |
export LC_ALL="C" |
89 |
fi |
90 |
} |
91 |
|
92 |
src_prepare() { |
93 |
epatch "${FILESDIR}"/${PN}-${SLOT}-system-icu.patch |
94 |
epatch "${FILESDIR}"/${PN}-24.2.0-fix-file-permissions.patch |
95 |
epatch "${FILESDIR}"/${PN}-${SLOT}-upward-growing-stack.patch |
96 |
epatch_user |
97 |
|
98 |
if [[ ${CHOST} == *-freebsd* ]]; then |
99 |
# Don't try to be smart, this does not work in cross-compile anyway |
100 |
ln -sfn "${BUILDDIR}/config/Linux_All.mk" "${S}/config/$(uname -s)$(uname -r).mk" || die |
101 |
fi |
102 |
|
103 |
cd "${BUILDDIR}" || die |
104 |
eautoconf |
105 |
} |
106 |
|
107 |
src_configure() { |
108 |
cd "${BUILDDIR}" || die |
109 |
|
110 |
local myopts="" |
111 |
if use icu; then # make sure system-icu flag only affects icu-enabled build |
112 |
myopts+="$(use_with system-icu)" |
113 |
else |
114 |
myopts+="--without-system-icu" |
115 |
fi |
116 |
|
117 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" \ |
118 |
AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" \ |
119 |
LD="$(tc-getLD)" \ |
120 |
econf \ |
121 |
${myopts} \ |
122 |
--enable-jemalloc \ |
123 |
--enable-readline \ |
124 |
--enable-threadsafe \ |
125 |
--with-system-nspr \ |
126 |
--enable-system-ffi \ |
127 |
$(use_enable icu intl-api) \ |
128 |
$(use_enable debug) \ |
129 |
$(use_enable jit yarr-jit) \ |
130 |
$(use_enable jit ion) \ |
131 |
$(use_enable static-libs static) \ |
132 |
$(use_enable test tests) |
133 |
} |
134 |
|
135 |
src_compile() { |
136 |
cd "${BUILDDIR}" || die |
137 |
if tc-is-cross-compiler; then |
138 |
make CFLAGS="" CXXFLAGS="" \ |
139 |
CC=$(tc-getBUILD_CC) CXX=$(tc-getBUILD_CXX) \ |
140 |
AR=$(tc-getBUILD_AR) RANLIB=$(tc-getBUILD_RANLIB) \ |
141 |
jscpucfg host_jsoplengen host_jskwgen || die |
142 |
make CFLAGS="" CXXFLAGS="" \ |
143 |
CC=$(tc-getBUILD_CC) CXX=$(tc-getBUILD_CXX) \ |
144 |
AR=$(tc-getBUILD_AR) RANLIB=$(tc-getBUILD_RANLIB) \ |
145 |
-C config nsinstall || die |
146 |
mv {,native-}jscpucfg || die |
147 |
mv {,native-}host_jskwgen || die |
148 |
mv {,native-}host_jsoplengen || die |
149 |
mv config/{,native-}nsinstall || die |
150 |
sed -e 's@./jscpucfg@./native-jscpucfg@' \ |
151 |
-e 's@./host_jskwgen@./native-host_jskwgen@' \ |
152 |
-e 's@./host_jsoplengen@./native-host_jsoplengen@' \ |
153 |
-i Makefile || die |
154 |
sed -e 's@/nsinstall@/native-nsinstall@' -i config/config.mk || die |
155 |
rm -f config/host_nsinstall.o \ |
156 |
config/host_pathsub.o \ |
157 |
host_jskwgen.o \ |
158 |
host_jsoplengen.o || die |
159 |
fi |
160 |
emake |
161 |
} |
162 |
|
163 |
src_test() { |
164 |
cd "${BUILDDIR}/jsapi-tests" || die |
165 |
emake check |
166 |
} |
167 |
|
168 |
src_install() { |
169 |
cd "${BUILDDIR}" || die |
170 |
emake DESTDIR="${D}" install |
171 |
|
172 |
if ! use minimal; then |
173 |
if use jit; then |
174 |
pax-mark m "${ED}/usr/bin/js${SLOT}" |
175 |
fi |
176 |
else |
177 |
rm -f "${ED}/usr/bin/js${SLOT}" |
178 |
fi |
179 |
|
180 |
if ! use static-libs; then |
181 |
# We can't actually disable building of static libraries |
182 |
# They're used by the tests and in a few other places |
183 |
find "${D}" -iname '*.a' -delete || die |
184 |
fi |
185 |
} |