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