Gentoo Archives: gentoo-commits

From: Ian Stakenvicius <axs@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mozilla:master commit in: dev-lang/spidermonkey/
Date: Mon, 02 Jun 2014 12:21:48
Message-Id: 1401711684.bb3cf3cd7d9b67a1367d273eb864395b99e2ed83.axs@gentoo
1 commit: bb3cf3cd7d9b67a1367d273eb864395b99e2ed83
2 Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 2 12:12:10 2014 +0000
4 Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 2 12:21:24 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=bb3cf3cd
7
8 cleanup spidermonkey
9
10 ---
11 dev-lang/spidermonkey/Manifest | 1 -
12 .../spidermonkey/spidermonkey-24.2.0-r1.ebuild | 137 ---------------------
13 .../spidermonkey/spidermonkey-31.0_alpha2.ebuild | 19 +--
14 3 files changed, 11 insertions(+), 146 deletions(-)
15
16 diff --git a/dev-lang/spidermonkey/Manifest b/dev-lang/spidermonkey/Manifest
17 index 5fb45d0..6daba48 100644
18 --- a/dev-lang/spidermonkey/Manifest
19 +++ b/dev-lang/spidermonkey/Manifest
20 @@ -1,2 +1 @@
21 -DIST mozjs-24.2.0.tar.bz2 15624530 SHA256 e62f3f331ddd90df1e238c09d61a505c516fe9fd8c5c95336611d191d18437d8 SHA512 49805e256f6fa797505c01b7596d5bb941ed7a2454862c52ed42ad48b5ae4540b777e77ed8da1b98c89f8622ed2c76052187983687008a4ff53594addb328df4 WHIRLPOOL ea74d19c79b1a0fe407e2803900c49c23e8b76444fb4e20995072c3c59427e8df1895df04f2f4de779a1c58cd1166dd97aeaf7564350832011efe89dbcf9583e
22 DIST mozjs-31.0a2.tar.bz2 21261131 SHA256 fe57dca9bf5be446d6bea385245824c1b4487d06040d90a0a9fa1adf21836303 SHA512 d4dbc0cf5d5bc3b1d52d346d0d54bb10182962551eba3ef2186efc7a433f8b856db9c8df2488e6a4385fbd18dcd22468c76f025bb52187af33990066089709fd WHIRLPOOL 4305a6c4b141efbb559ff879189270e291f396d825f87627d9e8c62cab5de7b56eb4c6b0fd91e2d5ed568eb17e896822755c54e47b2bddd7d2275d3c2a088836
23
24 diff --git a/dev-lang/spidermonkey/spidermonkey-24.2.0-r1.ebuild b/dev-lang/spidermonkey/spidermonkey-24.2.0-r1.ebuild
25 deleted file mode 100644
26 index 7a9be92..0000000
27 --- a/dev-lang/spidermonkey/spidermonkey-24.2.0-r1.ebuild
28 +++ /dev/null
29 @@ -1,137 +0,0 @@
30 -# Copyright 1999-2014 Gentoo Foundation
31 -# Distributed under the terms of the GNU General Public License v2
32 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/spidermonkey-24.2.0-r1.ebuild,v 1.1 2014/03/08 14:38:51 anarchy Exp $
33 -
34 -EAPI="5"
35 -WANT_AUTOCONF="2.1"
36 -PYTHON_COMPAT=( python2_{6,7} )
37 -PYTHON_REQ_USE="threads"
38 -inherit autotools eutils toolchain-funcs multilib python-any-r1 versionator pax-utils
39 -
40 -MY_PN="mozjs"
41 -MY_P="${MY_PN}-${PV/_/.}"
42 -DESCRIPTION="Stand-alone JavaScript C library"
43 -HOMEPAGE="http://www.mozilla.org/js/spidermonkey/"
44 -SRC_URI="https://ftp.mozilla.org/pub/mozilla.org/js/${MY_P}.tar.bz2"
45 -
46 -LICENSE="NPL-1.1"
47 -SLOT="24"
48 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
49 -IUSE="debug icu jit minimal static-libs +system-icu test"
50 -
51 -RESTRICT="ia64? ( test )"
52 -
53 -S="${WORKDIR}/${MY_P%.rc*}"
54 -BUILDDIR="${S}/js/src"
55 -
56 -RDEPEND=">=dev-libs/nspr-4.9.4
57 - virtual/libffi
58 - >=sys-libs/zlib-1.1.4
59 - system-icu? ( >=dev-libs/icu-1.51:= )"
60 -DEPEND="${RDEPEND}
61 - ${PYTHON_DEPS}
62 - app-arch/zip
63 - virtual/pkgconfig"
64 -
65 -pkg_setup(){
66 - if [[ ${MERGE_TYPE} != "binary" ]]; then
67 - python-any-r1_pkg_setup
68 - export LC_ALL="C"
69 - fi
70 -}
71 -
72 -src_prepare() {
73 - epatch "${FILESDIR}"/${PN}-${SLOT}-system-icu.patch
74 - epatch "${FILESDIR}"/${PN}-24.2.0-fix-file-permissions.patch
75 - epatch "${FILESDIR}"/${PN}-${SLOT}-upward-growing-stack.patch
76 - epatch_user
77 -
78 - if [[ ${CHOST} == *-freebsd* ]]; then
79 - # Don't try to be smart, this does not work in cross-compile anyway
80 - ln -sfn "${BUILDDIR}/config/Linux_All.mk" "${S}/config/$(uname -s)$(uname -r).mk" || die
81 - fi
82 -
83 - cd "${BUILDDIR}" || die
84 - eautoconf
85 -}
86 -
87 -src_configure() {
88 - cd "${BUILDDIR}" || die
89 -
90 - local myopts=""
91 - if use icu; then # make sure system-icu flag only affects icu-enabled build
92 - myopts+="$(use_with system-icu)"
93 - else
94 - myopts+="--without-system-icu"
95 - fi
96 -
97 - CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
98 - AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" \
99 - LD="$(tc-getLD)" \
100 - econf \
101 - ${myopts} \
102 - --enable-jemalloc \
103 - --enable-readline \
104 - --enable-threadsafe \
105 - --with-system-nspr \
106 - --enable-system-ffi \
107 - --enable-jemalloc \
108 - $(use_enable icu intl-api) \
109 - $(use_enable debug) \
110 - $(use_enable jit tracejit) \
111 - $(use_enable jit methodjit) \
112 - $(use_enable static-libs static) \
113 - $(use_enable test tests)
114 -}
115 -
116 -src_compile() {
117 - cd "${BUILDDIR}" || die
118 - if tc-is-cross-compiler; then
119 - make CFLAGS="" CXXFLAGS="" \
120 - CC=$(tc-getBUILD_CC) CXX=$(tc-getBUILD_CXX) \
121 - AR=$(tc-getBUILD_AR) RANLIB=$(tc-getBUILD_RANLIB) \
122 - jscpucfg host_jsoplengen host_jskwgen || die
123 - make CFLAGS="" CXXFLAGS="" \
124 - CC=$(tc-getBUILD_CC) CXX=$(tc-getBUILD_CXX) \
125 - AR=$(tc-getBUILD_AR) RANLIB=$(tc-getBUILD_RANLIB) \
126 - -C config nsinstall || die
127 - mv {,native-}jscpucfg || die
128 - mv {,native-}host_jskwgen || die
129 - mv {,native-}host_jsoplengen || die
130 - mv config/{,native-}nsinstall || die
131 - sed -e 's@./jscpucfg@./native-jscpucfg@' \
132 - -e 's@./host_jskwgen@./native-host_jskwgen@' \
133 - -e 's@./host_jsoplengen@./native-host_jsoplengen@' \
134 - -i Makefile || die
135 - sed -e 's@/nsinstall@/native-nsinstall@' -i config/config.mk || die
136 - rm -f config/host_nsinstall.o \
137 - config/host_pathsub.o \
138 - host_jskwgen.o \
139 - host_jsoplengen.o || die
140 - fi
141 - emake
142 -}
143 -
144 -src_test() {
145 - cd "${BUILDDIR}/jsapi-tests" || die
146 - emake check
147 -}
148 -
149 -src_install() {
150 - cd "${BUILDDIR}" || die
151 - emake DESTDIR="${D}" install
152 -
153 - if ! use minimal; then
154 - if use jit; then
155 - pax-mark m "${ED}/usr/bin/js${SLOT}"
156 - fi
157 - else
158 - rm -f "${ED}/usr/bin/js${SLOT}"
159 - fi
160 -
161 - if ! use static-libs; then
162 - # We can't actually disable building of static libraries
163 - # They're used by the tests and in a few other places
164 - find "${D}" -iname '*.a' -delete || die
165 - fi
166 -}
167
168 diff --git a/dev-lang/spidermonkey/spidermonkey-31.0_alpha2.ebuild b/dev-lang/spidermonkey/spidermonkey-31.0_alpha2.ebuild
169 index d78e741..50b0dbd 100644
170 --- a/dev-lang/spidermonkey/spidermonkey-31.0_alpha2.ebuild
171 +++ b/dev-lang/spidermonkey/spidermonkey-31.0_alpha2.ebuild
172 @@ -45,10 +45,6 @@ pkg_setup(){
173
174 src_prepare() {
175 epatch "${FILESDIR}"/${PN}-${SLOT}-jit-tests.patch
176 -# epatch_user
177 -#
178 -# cd "${BUILDDIR}" || die
179 -# eautoconf
180 }
181
182 src_configure() {
183 @@ -72,11 +68,11 @@ src_configure() {
184 --enable-threadsafe \
185 --with-system-nspr \
186 --enable-system-ffi \
187 - --enable-jemalloc \
188 + --disable-optimize \
189 $(use_with icu intl-api) \
190 $(use_enable debug) \
191 - $(use_enable jit tracejit) \
192 - $(use_enable jit methodjit) \
193 + $(use_enable jit ion) \
194 + $(use_enable jit yarr-jit) \
195 $(use_enable static-libs static) \
196 $(use_enable test tests)
197 }
198 @@ -87,10 +83,14 @@ src_compile() {
199 make CFLAGS="" CXXFLAGS="" \
200 CC=$(tc-getBUILD_CC) CXX=$(tc-getBUILD_CXX) \
201 AR=$(tc-getBUILD_AR) RANLIB=$(tc-getBUILD_RANLIB) \
202 + MOZ_OPTIMIZE_FLAGS="" MOZ_DEBUG_FLAGS="" \
203 + HOST_OPTIMIZE_FLAGS="" MODULE_OPTIMIZE_FLAGS="" \
204 + MOZ_PGO_OPTIMIZE_FLAGS="" \
205 jscpucfg host_jsoplengen host_jskwgen || die
206 make CFLAGS="" CXXFLAGS="" \
207 CC=$(tc-getBUILD_CC) CXX=$(tc-getBUILD_CXX) \
208 AR=$(tc-getBUILD_AR) RANLIB=$(tc-getBUILD_RANLIB) \
209 + MOZ_OPTIMIZE_FLAGS="" MOZ_DEBUG_FLAGS="" HOST_OPTIMIZE_FLAGS="" \
210 -C config nsinstall || die
211 mv {,native-}jscpucfg || die
212 mv {,native-}host_jskwgen || die
213 @@ -106,7 +106,10 @@ src_compile() {
214 host_jskwgen.o \
215 host_jsoplengen.o || die
216 fi
217 - emake
218 + emake \
219 + MOZ_OPTIMIZE_FLAGS="" MOZ_DEBUG_FLAGS="" \
220 + HOST_OPTIMIZE_FLAGS="" MODULE_OPTIMIZE_FLAGS="" \
221 + MOZ_PGO_OPTIMIZE_FLAGS=""
222 }
223
224 src_test() {