Gentoo Archives: gentoo-commits

From: "Nirbheek Chauhan (nirbheek)" <nirbheek@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/spidermonkey: ChangeLog spidermonkey-1.8.5.ebuild spidermonkey-2.0.1.ebuild
Date: Sun, 03 Jul 2011 05:28:54
Message-Id: 20110703052844.E89522004B@flycatcher.gentoo.org
1 nirbheek 11/07/03 05:28:44
2
3 Modified: ChangeLog
4 Added: spidermonkey-1.8.5.ebuild
5 Removed: spidermonkey-2.0.1.ebuild
6 Log:
7 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.
8
9 (Portage version: 2.2.0_alpha39_p14/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.61 dev-lang/spidermonkey/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/ChangeLog?rev=1.61&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/ChangeLog?rev=1.61&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/ChangeLog?r1=1.60&r2=1.61
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/ChangeLog,v
21 retrieving revision 1.60
22 retrieving revision 1.61
23 diff -u -r1.60 -r1.61
24 --- ChangeLog 22 Jun 2011 02:22:54 -0000 1.60
25 +++ ChangeLog 3 Jul 2011 05:28:44 -0000 1.61
26 @@ -1,6 +1,17 @@
27 # ChangeLog for dev-lang/spidermonkey
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/ChangeLog,v 1.60 2011/06/22 02:22:54 nirbheek Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/ChangeLog,v 1.61 2011/07/03 05:28:44 nirbheek Exp $
31 +
32 +*spidermonkey-1.8.5 (03 Jul 2011)
33 +
34 + 03 Jul 2011; Nirbheek Chauhan <nirbheek@g.o>
35 + +spidermonkey-1.8.5.ebuild,
36 + +files/spidermonkey-1.8.5-fix-install-symlinks.patch,
37 + -spidermonkey-2.0.1.ebuild:
38 + Add 1.8.5, which is a new js tarball created from the firefox-4.0 source
39 + called 'mozjs185'. This release changes the library name, and the pkg-config
40 + file name. See https://bugzilla.mozilla.org/show_bug.cgi?id=628723 for more
41 + details. Also, remove obsolete spidermonkey-2.0 ebuild.
42
43 *spidermonkey-1.8.2.15 (22 Jun 2011)
44
45
46
47
48 1.1 dev-lang/spidermonkey/spidermonkey-1.8.5.ebuild
49
50 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/spidermonkey-1.8.5.ebuild?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/spidermonkey-1.8.5.ebuild?rev=1.1&content-type=text/plain
52
53 Index: spidermonkey-1.8.5.ebuild
54 ===================================================================
55 # Copyright 1999-2011 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/spidermonkey-1.8.5.ebuild,v 1.1 2011/07/03 05:28:44 nirbheek Exp $
58
59 EAPI="3"
60 inherit eutils toolchain-funcs multilib python versionator
61
62 MY_PN="js"
63 TARBALL_PV="$(replace_all_version_separators '' $(get_version_component_range 1-3))"
64 MY_P="${MY_PN}-${PV}"
65 TARBALL_P="${MY_PN}${TARBALL_PV}-1.0.0"
66 DESCRIPTION="Stand-alone JavaScript C library"
67 HOMEPAGE="http://www.mozilla.org/js/spidermonkey/"
68 SRC_URI="https://ftp.mozilla.org/pub/mozilla.org/js/${TARBALL_P}.tar.gz"
69
70 LICENSE="NPL-1.1"
71 SLOT="0"
72 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
73 IUSE="static-libs test"
74
75 S="${WORKDIR}/${MY_P}"
76 BUILDDIR="${S}/js/src"
77
78 RDEPEND=">=dev-libs/nspr-4.7.0"
79 DEPEND="${RDEPEND}
80 app-arch/zip
81 =dev-lang/python-2*[threads]
82 dev-util/pkgconfig"
83
84 pkg_setup(){
85 python_set_active_version 2
86 }
87
88 src_prepare() {
89 # https://bugzilla.mozilla.org/show_bug.cgi?id=628723#c43
90 epatch "${FILESDIR}/${P}-fix-install-symlinks.patch"
91
92 epatch_user
93
94 if [[ ${CHOST} == *-freebsd* ]]; then
95 # Don't try to be smart, this does not work in cross-compile anyway
96 ln -sfn "${BUILDDIR}/config/Linux_All.mk" "${S}/config/$(uname -s)$(uname -r).mk"
97 fi
98 }
99
100 src_configure() {
101 cd "${BUILDDIR}"
102
103 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" PYTHON="$(PYTHON)" \
104 econf \
105 --enable-jemalloc \
106 --enable-readline \
107 --enable-threadsafe \
108 --with-system-nspr \
109 $(use_enable static-libs static) \
110 $(use_enable test tests)
111 }
112
113 src_compile() {
114 cd "${BUILDDIR}"
115 emake || die
116 }
117
118 src_test() {
119 cd "${BUILDDIR}/jsapi-tests"
120 emake check || die
121 }
122
123 src_install() {
124 cd "${BUILDDIR}"
125 emake DESTDIR="${D}" install || die
126 dodoc ../../README || die
127 dohtml README.html || die
128
129 if ! use static-libs; then
130 # We can't actually disable building of static libraries
131 # They're used by the tests and in a few other places
132 find "${D}" -iname '*.a' -delete || die
133 fi
134 }