From: "Ian Stakenvicius" <axs@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/mozilla:master commit in: dev-lang/spidermonkey/
Date: Mon, 19 Aug 2013 14:09:01 +0000 (UTC) [thread overview]
Message-ID: <1376921348.a151abfcac11a17a3ce33647c5e564c6b2e212e5.axs@gentoo> (raw)
commit: a151abfcac11a17a3ce33647c5e564c6b2e212e5
Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 19 14:09:08 2013 +0000
Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Mon Aug 19 14:09:08 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=a151abfc
added draft beta of spidermonkey-24 -- note, still needs patch to use system icu
---
dev-lang/spidermonkey/Manifest | 1 +
.../spidermonkey/spidermonkey-24.0_beta1.ebuild | 122 +++++++++++++++++++++
2 files changed, 123 insertions(+)
diff --git a/dev-lang/spidermonkey/Manifest b/dev-lang/spidermonkey/Manifest
new file mode 100644
index 0000000..3320e62
--- /dev/null
+++ b/dev-lang/spidermonkey/Manifest
@@ -0,0 +1 @@
+DIST mozjs-24.0_beta1.tar.bz2 15487104 SHA256 29e22de463cb74ea12282c772cda40a35014fe562bca33fc4a1be2209b3d1029 SHA512 5c84ee413d444114b5bc5d5657bb66ce45d1cd4fff340c14cdc329b467eacf01938ac297b767fa8e7b8ca7a535cacb1b8df91bf8a0e2e86f30dbf651f61b45d6 WHIRLPOOL 29bf21d6c46b4ccc347a9f9c13170d19c52c5e359ba374017594f41f21de601b7e9753814462361230aa438f80775dad51a25a8605356300d943fab443a4fb21
diff --git a/dev-lang/spidermonkey/spidermonkey-24.0_beta1.ebuild b/dev-lang/spidermonkey/spidermonkey-24.0_beta1.ebuild
new file mode 100644
index 0000000..38d9e6b
--- /dev/null
+++ b/dev-lang/spidermonkey/spidermonkey-24.0_beta1.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/spidermonkey-17.0.0-r1.ebuild,v 1.1 2013/08/10 02:43:06 axs Exp $
+
+EAPI="5"
+WANT_AUTOCONF="2.1"
+PYTHON_COMPAT=( python2_{6,7} )
+PYTHON_REQ_USE="threads"
+inherit eutils toolchain-funcs multilib python-any-r1 versionator pax-utils
+
+MY_PN="mozjs"
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="Stand-alone JavaScript C library"
+HOMEPAGE="http://www.mozilla.org/js/spidermonkey/"
+SRC_URI="http://dev.gentoo.org/~axs/distfiles/${MY_P}.tar.bz2"
+
+LICENSE="NPL-1.1"
+SLOT="24"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa -ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="debug jit minimal static-libs test"
+
+REQUIRED_USE="debug? ( jit )"
+
+S="${WORKDIR}/${MY_P}"
+BUILDDIR="${S}/js/src"
+
+RDEPEND=">=dev-libs/nspr-4.9.4
+ virtual/libffi"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ app-arch/zip
+ virtual/pkgconfig"
+
+pkg_setup(){
+ if [[ ${MERGE_TYPE} != "binary" ]]; then
+ python-any-r1_pkg_setup
+ export LC_ALL="C"
+ fi
+}
+
+src_prepare() {
+ epatch_user
+
+ if [[ ${CHOST} == *-freebsd* ]]; then
+ # Don't try to be smart, this does not work in cross-compile anyway
+ ln -sfn "${BUILDDIR}/config/Linux_All.mk" "${S}/config/$(uname -s)$(uname -r).mk" || die
+ fi
+}
+
+src_configure() {
+ cd "${BUILDDIR}" || die
+
+ CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
+ AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" \
+ LD="$(tc-getLD)" \
+ econf \
+ ${myopts} \
+ --enable-jemalloc \
+ --enable-readline \
+ --enable-threadsafe \
+ --with-system-nspr \
+ --enable-system-ffi \
+ --enable-jemalloc \
+ --enable-system-icu \
+ $(use_enable debug) \
+ $(use_enable jit tracejit) \
+ $(use_enable jit methodjit) \
+ $(use_enable static-libs static) \
+ $(use_enable test tests)
+}
+
+src_compile() {
+ cd "${BUILDDIR}" || die
+ if tc-is-cross-compiler; then
+ make CFLAGS="" CXXFLAGS="" \
+ CC=$(tc-getBUILD_CC) CXX=$(tc-getBUILD_CXX) \
+ AR=$(tc-getBUILD_AR) RANLIB=$(tc-getBUILD_RANLIB) \
+ jscpucfg host_jsoplengen host_jskwgen || die
+ make CFLAGS="" CXXFLAGS="" \
+ CC=$(tc-getBUILD_CC) CXX=$(tc-getBUILD_CXX) \
+ AR=$(tc-getBUILD_AR) RANLIB=$(tc-getBUILD_RANLIB) \
+ -C config nsinstall || die
+ mv {,native-}jscpucfg || die
+ mv {,native-}host_jskwgen || die
+ mv {,native-}host_jsoplengen || die
+ mv config/{,native-}nsinstall || die
+ sed -e 's@./jscpucfg@./native-jscpucfg@' \
+ -e 's@./host_jskwgen@./native-host_jskwgen@' \
+ -e 's@./host_jsoplengen@./native-host_jsoplengen@' \
+ -i Makefile || die
+ sed -e 's@/nsinstall@/native-nsinstall@' -i config/config.mk || die
+ rm -f config/host_nsinstall.o \
+ config/host_pathsub.o \
+ host_jskwgen.o \
+ host_jsoplengen.o || die
+ fi
+ emake
+}
+
+src_test() {
+ cd "${BUILDDIR}/jsapi-tests" || die
+ emake check
+}
+
+src_install() {
+ cd "${BUILDDIR}" || die
+ emake DESTDIR="${D}" install
+
+ if ! use minimal; then
+ if use jit; then
+ pax-mark m "${ED}/usr/bin/js${SLOT}"
+ fi
+ else
+ rm -f "${ED}/usr/bin/js${SLOT}"
+ fi
+
+ if ! use static-libs; then
+ # We can't actually disable building of static libraries
+ # They're used by the tests and in a few other places
+ find "${D}" -iname '*.a' -delete || die
+ fi
+}
next reply other threads:[~2013-08-19 14:09 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-19 14:09 Ian Stakenvicius [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-08-07 14:09 [gentoo-commits] proj/mozilla:master commit in: dev-lang/spidermonkey/ Ian Stakenvicius
2018-07-30 23:02 Ian Stakenvicius
2018-07-06 19:50 Ian Stakenvicius
2017-06-05 14:36 Jory Pratt
2014-10-17 17:11 Ian Stakenvicius
2014-10-17 16:54 Ian Stakenvicius
2014-06-02 12:21 Ian Stakenvicius
2013-11-09 4:00 Ian Stakenvicius
2013-08-02 17:18 Ian Stakenvicius
2012-10-12 20:16 Ian Stakenvicius
2012-06-18 20:05 Ian Stakenvicius
2012-05-07 15:37 Jory Pratt
2011-11-14 19:57 Jory Pratt
2011-11-14 19:37 Jory Pratt
2011-11-14 19:16 Jory Pratt
2011-06-22 2:23 Nirbheek Chauhan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1376921348.a151abfcac11a17a3ce33647c5e564c6b2e212e5.axs@gentoo \
--to=axs@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox