From afdbb696726e1262e1e0c61f407c60bbd3c67eb0 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 29 Dec 2010 14:18:56 +0000 Subject: Version bump spidermonkey to 1.9.2.13 (bug 347914). (Portage version: 2.1.9.26/cvs/Linux x86_64) --- dev-lang/spidermonkey/ChangeLog | 9 ++- .../files/spidermonkey-1.9.2.13-as-needed.patch | 22 +++++++ dev-lang/spidermonkey/metadata.xml | 10 ++- dev-lang/spidermonkey/spidermonkey-1.9.2.13.ebuild | 73 ++++++++++++++++++++++ 4 files changed, 110 insertions(+), 4 deletions(-) create mode 100644 dev-lang/spidermonkey/files/spidermonkey-1.9.2.13-as-needed.patch create mode 100644 dev-lang/spidermonkey/spidermonkey-1.9.2.13.ebuild (limited to 'dev-lang') diff --git a/dev-lang/spidermonkey/ChangeLog b/dev-lang/spidermonkey/ChangeLog index e9343494738d..886aa30f2c37 100644 --- a/dev-lang/spidermonkey/ChangeLog +++ b/dev-lang/spidermonkey/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-lang/spidermonkey # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/ChangeLog,v 1.47 2010/08/06 23:15:48 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/ChangeLog,v 1.48 2010/12/29 14:18:56 djc Exp $ + +*spidermonkey-1.9.2.13 (29 Dec 2010) + + 29 Dec 2010; Dirkjan Ochtman + +spidermonkey-1.9.2.13.ebuild, + +files/spidermonkey-1.9.2.13-as-needed.patch, metadata.xml: + Version bump to 1.9.2.13 (bug 347914). *spidermonkey-1.7.0-r2 (06 Aug 2010) diff --git a/dev-lang/spidermonkey/files/spidermonkey-1.9.2.13-as-needed.patch b/dev-lang/spidermonkey/files/spidermonkey-1.9.2.13-as-needed.patch new file mode 100644 index 000000000000..847bf792c5b2 --- /dev/null +++ b/dev-lang/spidermonkey/files/spidermonkey-1.9.2.13-as-needed.patch @@ -0,0 +1,22 @@ +diff --git a/js/src/jsapi-tests/Makefile.in b/js/src/jsapi-tests/Makefile.in +--- a/js/src/jsapi-tests/Makefile.in ++++ b/js/src/jsapi-tests/Makefile.in +@@ -55,17 +55,17 @@ CPPSRCS = \ + testSameValue.cpp \ + testDebugger.cpp \ + testDefineGetterSetterNonEnumerable.cpp \ + testExtendedEq.cpp \ + $(NULL) + + DEFINES += -DEXPORT_JS_API + +-LIBS = $(NSPR_LIBS) $(DEPTH)/$(LIB_PREFIX)js_static.$(LIB_SUFFIX) ++LIBS = $(DEPTH)/$(LIB_PREFIX)js_static.$(LIB_SUFFIX) $(NSPR_LIBS) + + LOCAL_INCLUDES += -I$(topsrcdir) -I.. + + ifdef _MSC_VER + ifdef WINCE + WIN32_EXE_LDFLAGS += -ENTRY:mainACRTStartup + endif + endif diff --git a/dev-lang/spidermonkey/metadata.xml b/dev-lang/spidermonkey/metadata.xml index 64708559be1d..96a93a5c8bc5 100644 --- a/dev-lang/spidermonkey/metadata.xml +++ b/dev-lang/spidermonkey/metadata.xml @@ -1,11 +1,15 @@ - no-herd - aballier@gentoo.org - Alexis Ballier + djc@gentoo.org + Dirkjan Ochtman + + anarchy@gentoo.org + Jory A. Pratt + + mozilla Stand-alone JavaScript C library diff --git a/dev-lang/spidermonkey/spidermonkey-1.9.2.13.ebuild b/dev-lang/spidermonkey/spidermonkey-1.9.2.13.ebuild new file mode 100644 index 000000000000..7d6c123cd50c --- /dev/null +++ b/dev-lang/spidermonkey/spidermonkey-1.9.2.13.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/spidermonkey-1.9.2.13.ebuild,v 1.1 2010/12/29 14:18:56 djc Exp $ + +EAPI="2" +inherit eutils toolchain-funcs multilib python + +MY_PV="${PV}" +MY_PV="${MY_PV/1.9.2/3.6}" +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 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="threadsafe" + +S="${WORKDIR}/mozilla-1.9.2" +BUILDDIR="${S}/js/src" + +RDEPEND="threadsafe? ( >=dev-libs/nspr-4.8.6 )" + +DEPEND="${RDEPEND} + =dev-lang/python-2*[threads] + dev-util/pkgconfig" + +pkg_setup(){ + python_set_active_version 2 +} + +src_prepare() { + unpack ${A} + + epatch "${FILESDIR}/${PN}-1.9.2.13-as-needed.patch" + + 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_install() { + cd ${BUILDDIR} + emake install DESTDIR="${D}" || die + dodoc ../jsd/README + dohtml README.html +} -- cgit v1.2.3-65-gdbad