public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-lang/spidermonkey: ChangeLog spidermonkey-1.8.5.ebuild spidermonkey-2.0.1.ebuild
@ 2011-07-03  5:28 Nirbheek Chauhan (nirbheek)
  0 siblings, 0 replies; only message in thread
From: Nirbheek Chauhan (nirbheek) @ 2011-07-03  5:28 UTC (permalink / raw
  To: gentoo-commits

nirbheek    11/07/03 05:28:44

  Modified:             ChangeLog
  Added:                spidermonkey-1.8.5.ebuild
  Removed:              spidermonkey-2.0.1.ebuild
  Log:
  Add 1.8.5, which is a new js tarball created from the firefox-4.0 source called 'mozjs185'. This release changes the library name, and the pkg-config file name. See https://bugzilla.mozilla.org/show_bug.cgi?id=628723 for more details. Also, remove obsolete spidermonkey-2.0 ebuild.
  
  (Portage version: 2.2.0_alpha39_p14/cvs/Linux x86_64)

Revision  Changes    Path
1.61                 dev-lang/spidermonkey/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/ChangeLog?rev=1.61&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/ChangeLog?rev=1.61&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/ChangeLog?r1=1.60&r2=1.61

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/ChangeLog,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -r1.60 -r1.61
--- ChangeLog	22 Jun 2011 02:22:54 -0000	1.60
+++ ChangeLog	3 Jul 2011 05:28:44 -0000	1.61
@@ -1,6 +1,17 @@
 # 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.60 2011/06/22 02:22:54 nirbheek Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/ChangeLog,v 1.61 2011/07/03 05:28:44 nirbheek Exp $
+
+*spidermonkey-1.8.5 (03 Jul 2011)
+
+  03 Jul 2011; Nirbheek Chauhan <nirbheek@gentoo.org>
+  +spidermonkey-1.8.5.ebuild,
+  +files/spidermonkey-1.8.5-fix-install-symlinks.patch,
+  -spidermonkey-2.0.1.ebuild:
+  Add 1.8.5, which is a new js tarball created from the firefox-4.0 source
+  called 'mozjs185'. This release changes the library name, and the pkg-config
+  file name. See https://bugzilla.mozilla.org/show_bug.cgi?id=628723 for more
+  details. Also, remove obsolete spidermonkey-2.0 ebuild.
 
 *spidermonkey-1.8.2.15 (22 Jun 2011)
 



1.1                  dev-lang/spidermonkey/spidermonkey-1.8.5.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/spidermonkey-1.8.5.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/spidermonkey-1.8.5.ebuild?rev=1.1&content-type=text/plain

Index: spidermonkey-1.8.5.ebuild
===================================================================
# 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-1.8.5.ebuild,v 1.1 2011/07/03 05:28:44 nirbheek Exp $

EAPI="3"
inherit eutils toolchain-funcs multilib python versionator

MY_PN="js"
TARBALL_PV="$(replace_all_version_separators '' $(get_version_component_range 1-3))"
MY_P="${MY_PN}-${PV}"
TARBALL_P="${MY_PN}${TARBALL_PV}-1.0.0"
DESCRIPTION="Stand-alone JavaScript C library"
HOMEPAGE="http://www.mozilla.org/js/spidermonkey/"
SRC_URI="https://ftp.mozilla.org/pub/mozilla.org/js/${TARBALL_P}.tar.gz"

LICENSE="NPL-1.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
IUSE="static-libs test"

S="${WORKDIR}/${MY_P}"
BUILDDIR="${S}/js/src"

RDEPEND=">=dev-libs/nspr-4.7.0"
DEPEND="${RDEPEND}
	app-arch/zip
	=dev-lang/python-2*[threads]
	dev-util/pkgconfig"

pkg_setup(){
	python_set_active_version 2
}

src_prepare() {
	# https://bugzilla.mozilla.org/show_bug.cgi?id=628723#c43
	epatch "${FILESDIR}/${P}-fix-install-symlinks.patch"

	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"
	fi
}

src_configure() {
	cd "${BUILDDIR}"

	CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" PYTHON="$(PYTHON)" \
	econf \
		--enable-jemalloc \
		--enable-readline \
		--enable-threadsafe \
		--with-system-nspr \
		$(use_enable static-libs static) \
		$(use_enable test tests)
}

src_compile() {
	cd "${BUILDDIR}"
	emake || die
}

src_test() {
	cd "${BUILDDIR}/jsapi-tests"
	emake check || die
}

src_install() {
	cd "${BUILDDIR}"
	emake DESTDIR="${D}" install || die
	dodoc ../../README || die
	dohtml README.html || die

	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
}






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-03  5:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-03  5:28 [gentoo-commits] gentoo-x86 commit in dev-lang/spidermonkey: ChangeLog spidermonkey-1.8.5.ebuild spidermonkey-2.0.1.ebuild Nirbheek Chauhan (nirbheek)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox