Magellan Linux

Contents of /trunk/extras/spidermonkey/spidermonkey-1.8.5-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30860 - (show annotations) (download)
Fri Apr 27 08:34:59 2018 UTC (6 years ago) by niro
File size: 1035 byte(s)
auto added: ver bump to 1.8.5-r4
1 # $Id$
2
3 PNAME="spidermonkey"
4 PVER="1.8.5"
5 PBUILD="r4"
6
7 PCAT="dev-java"
8
9 DESCRIPTION="SpiderMonkey is the code-name for the Mozilla's C implementation of JavaScript."
10 HOMEPAGE="https://developer.mozilla.org/en-US/docs/SpiderMonkey"
11
12 DEPEND=">= dev-libs/nspr-4.10
13 >= sys-libs/libstdc++-5.3"
14 SDEPEND=">= dev-lang/python-2.7
15 >= app-arch/zip-3"
16
17 SUBPVER="1.0.0"
18 SRCFILE="js${PVER//.}-${SUBPVER}.tar.gz"
19 SRCDIR="${BUILDDIR}/js-${PVER}/js/src"
20
21 EMUL_LINUX_32=true
22 sminclude multilib mbuild
23 msetfeature "!check"
24
25 SRC_URI=(
26 http://ftp.mozilla.org/pub/mozilla.org/js/${SRCFILE}
27 mirror://${PNAME}/${SRCFILE}
28 mirror://${PNAME}/${PNAME}-${PVER}-fix-install-symlinks.patch
29 mirror://${PNAME}/${PNAME}-${PVER}-gcc6.patch
30 )
31
32 src_prepare()
33 {
34 munpack ${SRCFILE} || die
35 mpatch ${PNAME}-${PVER}-fix-install-symlinks.patch || die
36 mpatch ${PNAME}-${PVER}-gcc6.patch || die
37 }
38
39 src_compile()
40 {
41 # fortify_source not supported
42 export CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/}
43
44 mconfigure --with-system-nspr --enable-threadsafe || die
45 mmake || die
46 }