diff options
author | Alexis Ballier <aballier@gentoo.org> | 2007-11-15 13:23:17 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2007-11-15 13:23:17 +0000 |
commit | 45f16cdd2fa84a2777503be4cf21535943bd8a56 (patch) | |
tree | 45f060b439b532ea36cb3133dcb682c84877d6eb /dev-lang | |
parent | Delete old ebuilds so that ~arch users get 1.6.3 version too. (diff) | |
download | gentoo-2-45f16cdd2fa84a2777503be4cf21535943bd8a56.tar.gz gentoo-2-45f16cdd2fa84a2777503be4cf21535943bd8a56.tar.bz2 gentoo-2-45f16cdd2fa84a2777503be4cf21535943bd8a56.zip |
version bump
(Portage version: 2.1.3.19)
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/spidermonkey/ChangeLog | 8 | ||||
-rw-r--r-- | dev-lang/spidermonkey/files/digest-spidermonkey-1.7.0 | 3 | ||||
-rw-r--r-- | dev-lang/spidermonkey/files/spidermonkey-1.7.0-threadsafe.diff | 18 | ||||
-rw-r--r-- | dev-lang/spidermonkey/spidermonkey-1.7.0.ebuild | 50 |
4 files changed, 78 insertions, 1 deletions
diff --git a/dev-lang/spidermonkey/ChangeLog b/dev-lang/spidermonkey/ChangeLog index e241829f24ab..6dc8dcee1f3f 100644 --- a/dev-lang/spidermonkey/ChangeLog +++ b/dev-lang/spidermonkey/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-lang/spidermonkey # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/ChangeLog,v 1.34 2007/10/15 14:10:56 corsair Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/ChangeLog,v 1.35 2007/11/15 13:23:17 aballier Exp $ + +*spidermonkey-1.7.0 (15 Nov 2007) + + 15 Nov 2007; Alexis Ballier <aballier@gentoo.org> + +files/spidermonkey-1.7.0-threadsafe.diff, +spidermonkey-1.7.0.ebuild: + version bump 15 Oct 2007; Markus Rothe <corsair@gentoo.org> spidermonkey-1.6.ebuild: Stable on ppc64 diff --git a/dev-lang/spidermonkey/files/digest-spidermonkey-1.7.0 b/dev-lang/spidermonkey/files/digest-spidermonkey-1.7.0 new file mode 100644 index 000000000000..4088b6253282 --- /dev/null +++ b/dev-lang/spidermonkey/files/digest-spidermonkey-1.7.0 @@ -0,0 +1,3 @@ +MD5 5571134c3863686b623ebe4e6b1f6fe6 js-1.7.0.tar.gz 1165607 +RMD160 6eadf1ac7c10a13b3db3d499856c9e18ddbcdfdb js-1.7.0.tar.gz 1165607 +SHA256 44363f0f3895800ee6010763eae90c0d15ed28e07d783bc7b3c607ce98d8668b js-1.7.0.tar.gz 1165607 diff --git a/dev-lang/spidermonkey/files/spidermonkey-1.7.0-threadsafe.diff b/dev-lang/spidermonkey/files/spidermonkey-1.7.0-threadsafe.diff new file mode 100644 index 000000000000..8728811fbfc4 --- /dev/null +++ b/dev-lang/spidermonkey/files/spidermonkey-1.7.0-threadsafe.diff @@ -0,0 +1,18 @@ +Index: src/Makefile.ref +=================================================================== +--- src.orig/Makefile.ref ++++ src/Makefile.ref +@@ -63,11 +63,11 @@ INCLUDES += -I$(OBJDIR) + + ifdef JS_THREADSAFE + DEFINES += -DJS_THREADSAFE +-INCLUDES += -I$(DIST)/include/nspr ++INCLUDES += -I/usr/include/nspr + ifdef USE_MSVC + OTHER_LIBS += $(DIST)/lib/libnspr$(NSPR_LIBSUFFIX).lib + else +-OTHER_LIBS += -L$(DIST)/lib -lnspr$(NSPR_LIBSUFFIX) ++OTHER_LIBS += -L/usr/$(LIBDIR)/nspr -lnspr$(NSPR_LIBSUFFIX) + endif + endif + diff --git a/dev-lang/spidermonkey/spidermonkey-1.7.0.ebuild b/dev-lang/spidermonkey/spidermonkey-1.7.0.ebuild new file mode 100644 index 000000000000..93246426a23d --- /dev/null +++ b/dev-lang/spidermonkey/spidermonkey-1.7.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/spidermonkey-1.7.0.ebuild,v 1.1 2007/11/15 13:23:17 aballier Exp $ + +inherit eutils toolchain-funcs multilib + +MY_P="js-${PV}" +DESCRIPTION="Stand-alone JavaScript C library" +HOMEPAGE="http://www.mozilla.org/js/spidermonkey/" +SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/js/${MY_P}.tar.gz" + +LICENSE="NPL-1.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="threadsafe" + +S="${WORKDIR}/js/src" + +RDEPEND="threadsafe? ( dev-libs/nspr )" + +DEPEND="${RDEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${PN}-1.5-build.patch" + epatch "${FILESDIR}/${PN}-1.6-header.patch" + epatch "${FILESDIR}/${P}-threadsafe.diff" + if [[ ${CHOST} == *-freebsd* ]]; then + # Don't try to be smart, this does not work in cross-compile anyway + ln -s "${S}/config/Linux_All.mk" "${S}/config/$(uname -s)$(uname -r).mk" + fi +} + +src_compile() { + tc-export CC LD AR + if use threadsafe; then + emake -j1 -f Makefile.ref LIBDIR="$(get_libdir)" JS_THREADSAFE=1 \ + || die "emake with threadsafe enabled failed"; + else + emake -j1 -f Makefile.ref LIBDIR="$(get_libdir)" \ + || die "emake without threadsafe enabled failed"; + fi +} + +src_install() { + emake -f Makefile.ref install DESTDIR="${D}" LIBDIR="$(get_libdir)" || die + dodoc ../jsd/README + dohtml README.html +} |