Gentoo Archives: gentoo-commits

From: "Ian Stakenvicius (axs)" <axs@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/spidermonkey: spidermonkey-1.8.2.15-r1.ebuild ChangeLog
Date: Thu, 29 Dec 2011 17:49:22
Message-Id: 20111229174912.639E42004B@flycatcher.gentoo.org
1 axs 11/12/29 17:49:12
2
3 Modified: ChangeLog
4 Added: spidermonkey-1.8.2.15-r1.ebuild
5 Log:
6 Added js shell to spidermonkey-1.8.2.15, as per user request in bug 377291
7
8 (Portage version: 2.1.10.41/cvs/Linux i686)
9
10 Revision Changes Path
11 1.68 dev-lang/spidermonkey/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/ChangeLog?rev=1.68&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/ChangeLog?rev=1.68&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/ChangeLog?r1=1.67&r2=1.68
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/ChangeLog,v
20 retrieving revision 1.67
21 retrieving revision 1.68
22 diff -u -r1.67 -r1.68
23 --- ChangeLog 26 Nov 2011 04:49:25 -0000 1.67
24 +++ ChangeLog 29 Dec 2011 17:49:12 -0000 1.68
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-lang/spidermonkey
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/ChangeLog,v 1.67 2011/11/26 04:49:25 dirtyepic Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/ChangeLog,v 1.68 2011/12/29 17:49:12 axs Exp $
30 +
31 +*spidermonkey-1.8.2.15-r1 (29 Dec 2011)
32 +
33 + 29 Dec 2011; Ian Stakenvicius <axs@g.o>
34 + +spidermonkey-1.8.2.15-r1.ebuild:
35 + Added js shell to spidermonkey-1.8.2.15, as per user request in bug 377291
36
37 26 Nov 2011; Ryan Hill <dirtyepic@g.o> spidermonkey-1.8.5-r1.ebuild:
38 Fix typo (committed as obvious).
39
40
41
42 1.1 dev-lang/spidermonkey/spidermonkey-1.8.2.15-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/spidermonkey-1.8.2.15-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/spidermonkey-1.8.2.15-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: spidermonkey-1.8.2.15-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/spidermonkey-1.8.2.15-r1.ebuild,v 1.1 2011/12/29 17:49:12 axs Exp $
52
53 EAPI="3"
54 inherit eutils toolchain-funcs multilib python
55
56 MY_PV="${PV}"
57 MY_PV="${MY_PV/1.8.2/3.6}"
58 DESCRIPTION="Stand-alone JavaScript C library"
59 HOMEPAGE="http://www.mozilla.org/js/spidermonkey/"
60 REL_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases"
61 SRC_URI="${REL_URI}/${MY_PV}/source/firefox-${MY_PV}.source.tar.bz2"
62
63 LICENSE="NPL-1.1"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x64-macos ~x86-macos"
66 IUSE="threadsafe"
67
68 S="${WORKDIR}/mozilla-1.9.2"
69 BUILDDIR="${S}/js/src"
70
71 RDEPEND="threadsafe? ( >=dev-libs/nspr-4.8.6 )"
72
73 DEPEND="${RDEPEND}
74 app-arch/zip
75 =dev-lang/python-2*[threads]
76 dev-util/pkgconfig"
77
78 pkg_setup(){
79 python_set_active_version 2
80 }
81
82 src_prepare() {
83 epatch "${FILESDIR}/${PN}-1.9.2.13-as-needed.patch"
84
85 epatch_user
86
87 cd "${S}"
88 if [[ ${CHOST} == *-freebsd* ]]; then
89 # Don't try to be smart, this does not work in cross-compile anyway
90 ln -s "${BUILDDIR}/config/Linux_All.mk" "${S}/config/$(uname -s)$(uname -r).mk"
91 fi
92 }
93
94 src_configure() {
95 cd ${BUILDDIR}
96
97 local myconf
98
99 if use threadsafe ; then
100 myconf="${myconf} --with-system-nspr \
101 --enable-threadsafe"
102 fi
103 # Disable no-print-directory
104 MAKEOPTS=${MAKEOPTS/--no-print-directory/}
105
106 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" PYTHON="$(PYTHON)" econf \
107 ${myconf}
108 }
109
110 src_compile() {
111 cd ${BUILDDIR}
112 emake -j1 || die "emake failed";
113 }
114
115 src_install() {
116 cd ${BUILDDIR}
117 emake install DESTDIR="${D}" || die
118 dobin shell/js ||die
119 dodoc ../jsd/README
120 dohtml README.html
121
122 if [[ ${CHOST} == *-darwin* ]] ; then
123 # fixup install_name
124 install_name_tool -id "${EPREFIX}"/usr/$(get_libdir)/libmozjs.dylib \
125 "${ED}"/usr/$(get_libdir)/libmozjs.dylib || die
126 fi
127 }