Contents of /trunk/extras/spidermonkey/spidermonkey-1.70-r1.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1257 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1257 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/spidermonkey/spidermonkey-1.70-r1.smage2,v 1.3 2008/04/19 09:17:10 niro Exp $ |
2 | |
3 | PNAME="spidermonkey" |
4 | PVER="1.70" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="dev-java" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="SpiderMonkey is the code-name for the Mozilla's C implementation of JavaScript." |
11 | HOMEPAGE="http://www.mozilla.org/js/spidermonkey/" |
12 | |
13 | DEPEND=">= dev-libs/nspr-4.7" |
14 | |
15 | SRCFILE="js-${PVER/0/.0}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/js" |
17 | |
18 | sminclude mbuild |
19 | |
20 | SRC_URI=( |
21 | ftp://ftp.mozilla.org/pub/mozilla.org/js/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/${PNAME}-1.60-makefile.patch |
24 | mirror://${PNAME}/${PNAME}-1.60-missing-headers.patch |
25 | mirror://${PNAME}/${PNAME}-${PVER}-enable-threadsafe.patch |
26 | ) |
27 | |
28 | src_prepare() |
29 | { |
30 | munpack ${SRCFILE} || die |
31 | cd ${SRCDIR} |
32 | |
33 | # several fixes |
34 | mpatch ${PNAME}-1.60-makefile.patch || die |
35 | |
36 | # add some missing headers |
37 | mpatch ${PNAME}-1.60-missing-headers.patch || die |
38 | |
39 | # enable threadsafe, needs nspr |
40 | mpatch ${PNAME}-${PVER}-enable-threadsafe.patch || die |
41 | } |
42 | |
43 | src_compile() |
44 | { |
45 | cd ${SRCDIR}/src |
46 | mmake -j1 -f Makefile.ref LIBDIR=$(mlibdir) JS_THREADSAFE=1 || die |
47 | } |
48 | |
49 | src_install() |
50 | { |
51 | cd ${SRCDIR}/src |
52 | make -f Makefile.ref LIBDIR=$(mlibdir) DESTDIR=${BINDIR} install || die |
53 | |
54 | cd ${SRCDIR} |
55 | minstalldocs README || die |
56 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |