Gentoo Archives: gentoo-commits

From: "Ian Stakenvicius (axs)" <axs@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/spidermonkey: metadata.xml spidermonkey-17.0.0.ebuild ChangeLog
Date: Fri, 02 Aug 2013 17:16:30
Message-Id: 20130802171622.993EA2171C@flycatcher.gentoo.org
1 axs 13/08/02 17:16:22
2
3 Modified: metadata.xml ChangeLog
4 Added: spidermonkey-17.0.0.ebuild
5 Log:
6 version bump, currently masked, see bug 463924
7
8 (Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED)
9
10 Revision Changes Path
11 1.6 dev-lang/spidermonkey/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/metadata.xml?rev=1.6&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/metadata.xml?rev=1.6&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/metadata.xml?r1=1.5&r2=1.6
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/metadata.xml,v
20 retrieving revision 1.5
21 retrieving revision 1.6
22 diff -u -r1.5 -r1.6
23 --- metadata.xml 22 Oct 2012 14:15:02 -0000 1.5
24 +++ metadata.xml 2 Aug 2013 17:16:22 -0000 1.6
25 @@ -6,6 +6,7 @@
26 Stand-alone JavaScript C library
27 </longdescription>
28 <use>
29 + <flag name='debug'>Enable assertions to allow for easier debugging of programs that link to spidemronkey -- note this will often crash software on regular end-user systems</flag>
30 <flag name='threadsafe'>Build a threadsafe version of spidermonkey</flag>
31 </use>
32 </pkgmetadata>
33
34
35
36 1.118 dev-lang/spidermonkey/ChangeLog
37
38 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/ChangeLog?rev=1.118&view=markup
39 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/ChangeLog?rev=1.118&content-type=text/plain
40 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/ChangeLog?r1=1.117&r2=1.118
41
42 Index: ChangeLog
43 ===================================================================
44 RCS file: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/ChangeLog,v
45 retrieving revision 1.117
46 retrieving revision 1.118
47 diff -u -r1.117 -r1.118
48 --- ChangeLog 8 Jun 2013 21:35:23 -0000 1.117
49 +++ ChangeLog 2 Aug 2013 17:16:22 -0000 1.118
50 @@ -1,6 +1,12 @@
51 # ChangeLog for dev-lang/spidermonkey
52 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
53 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/ChangeLog,v 1.117 2013/06/08 21:35:23 anarchy Exp $
54 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/ChangeLog,v 1.118 2013/08/02 17:16:22 axs Exp $
55 +
56 +*spidermonkey-17.0.0 (02 Aug 2013)
57 +
58 + 02 Aug 2013; Ian Stakenvicius <axs@g.o> +spidermonkey-17.0.0.ebuild,
59 + metadata.xml:
60 + version bump, currently masked, see bug 463924
61
62 08 Jun 2013; Jory A. Pratt <anarchy@g.o> spidermonkey-1.8.5-r4.ebuild,
63 +files/spidermonkey-1.8.5-isfinite.patch:
64
65
66
67 1.1 dev-lang/spidermonkey/spidermonkey-17.0.0.ebuild
68
69 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/spidermonkey-17.0.0.ebuild?rev=1.1&view=markup
70 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/spidermonkey-17.0.0.ebuild?rev=1.1&content-type=text/plain
71
72 Index: spidermonkey-17.0.0.ebuild
73 ===================================================================
74 # Copyright 1999-2013 Gentoo Foundation
75 # Distributed under the terms of the GNU General Public License v2
76 # $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/spidermonkey-17.0.0.ebuild,v 1.1 2013/08/02 17:16:22 axs Exp $
77
78 EAPI="5"
79 WANT_AUTOCONF="2.1"
80 inherit eutils toolchain-funcs multilib python versionator pax-utils
81
82 MY_PN="mozjs"
83 MY_P="${MY_PN}${PV}"
84 DESCRIPTION="Stand-alone JavaScript C library"
85 HOMEPAGE="http://www.mozilla.org/js/spidermonkey/"
86 SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/js/${MY_PN}${PV}.tar.gz"
87
88 LICENSE="NPL-1.1"
89 SLOT="0/mozjs17.0.0"
90 KEYWORDS="~alpha ~amd64 ~arm ~hppa -ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
91 IUSE="debug jit minimal static-libs test"
92
93 REQUIRED_USE="debug? ( jit )"
94
95 S="${WORKDIR}/${MY_P}"
96 BUILDDIR="${S}/js/src"
97
98 RDEPEND=">=dev-libs/nspr-4.9.4
99 virtual/libffi"
100 DEPEND="${RDEPEND}
101 app-arch/zip
102 =dev-lang/python-2*[threads]
103 virtual/pkgconfig"
104
105 pkg_setup(){
106 if [[ ${MERGE_TYPE} != "binary" ]]; then
107 python_set_active_version 2
108 python_pkg_setup
109 export LC_ALL="C"
110 fi
111 }
112
113 src_prepare() {
114 epatch_user
115
116 if [[ ${CHOST} == *-freebsd* ]]; then
117 # Don't try to be smart, this does not work in cross-compile anyway
118 ln -sfn "${BUILDDIR}/config/Linux_All.mk" "${S}/config/$(uname -s)$(uname -r).mk" || die
119 fi
120 }
121
122 src_configure() {
123 cd "${BUILDDIR}" || die
124
125 CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
126 AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" \
127 LD="$(tc-getLD)" PYTHON="$(PYTHON)" \
128 econf \
129 ${myopts} \
130 --enable-jemalloc \
131 --enable-readline \
132 --enable-threadsafe \
133 --with-system-nspr \
134 --enable-system-ffi \
135 --enable-jemalloc \
136 $(use_enable debug) \
137 $(use_enable jit tracejit) \
138 $(use_enable jit methodjit) \
139 $(use_enable static-libs static) \
140 $(use_enable test tests)
141 }
142
143 src_compile() {
144 cd "${BUILDDIR}" || die
145 if tc-is-cross-compiler; then
146 make CFLAGS="" CXXFLAGS="" \
147 CC=$(tc-getBUILD_CC) CXX=$(tc-getBUILD_CXX) \
148 AR=$(tc-getBUILD_AR) RANLIB=$(tc-getBUILD_RANLIB) \
149 jscpucfg host_jsoplengen host_jskwgen || die
150 make CFLAGS="" CXXFLAGS="" \
151 CC=$(tc-getBUILD_CC) CXX=$(tc-getBUILD_CXX) \
152 AR=$(tc-getBUILD_AR) RANLIB=$(tc-getBUILD_RANLIB) \
153 -C config nsinstall || die
154 mv {,native-}jscpucfg || die
155 mv {,native-}host_jskwgen || die
156 mv {,native-}host_jsoplengen || die
157 mv config/{,native-}nsinstall || die
158 sed -e 's@./jscpucfg@./native-jscpucfg@' \
159 -e 's@./host_jskwgen@./native-host_jskwgen@' \
160 -e 's@./host_jsoplengen@./native-host_jsoplengen@' \
161 -i Makefile || die
162 sed -e 's@/nsinstall@/native-nsinstall@' -i config/config.mk || die
163 rm -f config/host_nsinstall.o \
164 config/host_pathsub.o \
165 host_jskwgen.o \
166 host_jsoplengen.o || die
167 fi
168 emake
169 }
170
171 src_test() {
172 cd "${BUILDDIR}/jsapi-tests" || die
173 emake check
174 }
175
176 src_install() {
177 cd "${BUILDDIR}" || die
178 emake DESTDIR="${D}" install
179
180 if ! use minimal; then
181 if use jit; then
182 pax-mark m "${ED}/usr/bin/js1*"
183 fi
184 else
185 rm -f "${ED}/usr/bin/js1*"
186 fi
187
188 if ! use static-libs; then
189 # We can't actually disable building of static libraries
190 # They're used by the tests and in a few other places
191 find "${D}" -iname '*.a' -delete || die
192 fi
193 }