diff options
author | Dirkjan Ochtman <djc@gentoo.org> | 2011-05-16 12:05:54 +0000 |
---|---|---|
committer | Dirkjan Ochtman <djc@gentoo.org> | 2011-05-16 12:05:54 +0000 |
commit | 024b507347d0ab4025aed82afcaa69b30e2fb582 (patch) | |
tree | dc3681800d52a8970f68b467ac53c3b431702816 /dev-lang | |
parent | Mask new spidermonkey. (diff) | |
download | gentoo-2-024b507347d0ab4025aed82afcaa69b30e2fb582.tar.gz gentoo-2-024b507347d0ab4025aed82afcaa69b30e2fb582.tar.bz2 gentoo-2-024b507347d0ab4025aed82afcaa69b30e2fb582.zip |
Version bump spidermonkey to 2.0.1 (package.masked).
(Portage version: 2.1.9.49/cvs/Linux x86_64)
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/spidermonkey/ChangeLog | 7 | ||||
-rw-r--r-- | dev-lang/spidermonkey/spidermonkey-2.0.1.ebuild | 75 |
2 files changed, 81 insertions, 1 deletions
diff --git a/dev-lang/spidermonkey/ChangeLog b/dev-lang/spidermonkey/ChangeLog index 033928ff0623..b5e5d00dd0d1 100644 --- a/dev-lang/spidermonkey/ChangeLog +++ b/dev-lang/spidermonkey/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-lang/spidermonkey # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/ChangeLog,v 1.58 2011/04/25 16:24:59 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/ChangeLog,v 1.59 2011/05/16 12:05:54 djc Exp $ + +*spidermonkey-2.0.1 (16 May 2011) + + 16 May 2011; Dirkjan Ochtman <djc@gentoo.org> +spidermonkey-2.0.1.ebuild: + Version bump to 2.0.1 (package.masked for now). 25 Apr 2011; Raúl Porcel <armin76@gentoo.org> spidermonkey-1.9.2.15.ebuild: sparc stable wrt #357655 diff --git a/dev-lang/spidermonkey/spidermonkey-2.0.1.ebuild b/dev-lang/spidermonkey/spidermonkey-2.0.1.ebuild new file mode 100644 index 000000000000..b7712f7b75fd --- /dev/null +++ b/dev-lang/spidermonkey/spidermonkey-2.0.1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/spidermonkey-2.0.1.ebuild,v 1.1 2011/05/16 12:05:54 djc Exp $ + +EAPI="2" +inherit eutils toolchain-funcs multilib python + +MY_PV="${PV}" +MY_PV="${MY_PV/2.0/4.0}" +DESCRIPTION="Stand-alone JavaScript C library" +HOMEPAGE="http://www.mozilla.org/js/spidermonkey/" +REL_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases" +SRC_URI="${REL_URI}/${MY_PV}/source/firefox-${MY_PV}.source.tar.bz2" + +LICENSE="NPL-1.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="test threadsafe" + +S="${WORKDIR}/mozilla-2.0" +BUILDDIR="${S}/js/src" + +RDEPEND="threadsafe? ( >=dev-libs/nspr-4.8.6 )" + +DEPEND="${RDEPEND} + app-arch/zip + =dev-lang/python-2*[threads] + dev-util/pkgconfig" + +pkg_setup(){ + python_set_active_version 2 +} + +src_prepare() { + epatch_user + cd "${S}" + if [[ ${CHOST} == *-freebsd* ]]; then + # Don't try to be smart, this does not work in cross-compile anyway + ln -s "${BUILDDIR}/config/Linux_All.mk" "${S}/config/$(uname -s)$(uname -r).mk" + fi +} + +src_configure() { + cd ${BUILDDIR} + + local myconf + + if use threadsafe ; then + myconf="${myconf} --with-system-nspr \ + --enable-threadsafe" + fi + # Disable no-print-directory + MAKEOPTS=${MAKEOPTS/--no-print-directory/} + + CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" PYTHON="$(PYTHON)" econf \ + ${myconf} +} + +src_compile() { + cd ${BUILDDIR} + emake -j1 || die "emake failed"; +} + +src_test() { + # failure in check-date-format-tofte.js is https://bugzil.la/600522 + cd ${BUILDDIR} + emake check +} + +src_install() { + cd ${BUILDDIR} + emake install DESTDIR="${D}" || die + dodoc ../jsd/README + dohtml README.html +} |