Magellan Linux

Contents of /trunk/extras/spidermonkey/spidermonkey-52.7.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30861 - (show annotations) (download)
Mon Apr 30 11:31:25 2018 UTC (5 years, 11 months ago) by niro
File size: 1946 byte(s)
auto added: ver bump to 52.7.3-r1
1 # $Id$
2
3 PNAME="spidermonkey"
4 PVER="52.7.3"
5 PBUILD="r1"
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=">= sys-libs/zlib-1.2
13 >= sys-libs/readline-7
14 >= sys-libs/libstdc++-7.3"
15 SDEPEND=">= dev-lang/python-2.7
16 >= app-arch/zip-3"
17
18 # direct mecurial export
19 SRCFILE="FIREFOX_{PVER//./_}esr_RELEASE.tar.bz2"
20 SRCDIR="${BUILDDIR}/js-${PVER}/js/src"
21
22 EMUL_LINUX_32=true
23 sminclude multilib mbuild
24 msetfeature "!check"
25
26 SRC_URI=(
27 https://hg.mozilla.org/mozilla-unified/archive/${SRCFILE}
28 mirror://${PNAME}/${SRCFILE}
29 mirror://${PNAME}/${PNAME}-${PVER}-fix-soname.patch
30 mirror://${PNAME}/${PNAME}-${PVER}-copy-headers.patch
31 mirror://${PNAME}/${PNAME}-${PVER}-disable-mozglue.patch
32 mirror://${PNAME}/${PNAME}-${PVER}-include-configure-script.patch
33 )
34
35 UP2DATE="updatecmd https://hg.mozilla.org/mozilla-unified/tags | grep '/FIREFOX_.*esr_RELEASE' | sed -e 's:.*/FIREFOX_\(.*\)esr_RELEASE:\1:' -e 's:_:\.:g' | upsort_pipe"
36
37 src_prepare()
38 {
39 munpack ${SRCFILE} || die
40 mpatch ${PNAME}-${PVER}-fix-soname.patch || die
41 mpatch ${PNAME}-${PVER}-copy-headers.patch || die
42 mpatch ${PNAME}-${PVER}-disable-mozglue.patch || die
43 mpatch ${PNAME}-${PVER}-include-configure-script.patch || die
44 }
45
46 src_compile()
47 {
48 export CFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp -flto=3'
49 export CXXFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp -flto=3'
50 export CC=gcc
51 export CXX=g++
52 export PYTHON=/usr/bin/python2
53
54 mconfigure \
55 --disable-debug \
56 --disable-debug-symbols \
57 --disable-strip \
58 --enable-gold \
59 --enable-optimize="-O2" \
60 --enable-pie \
61 --enable-posix-nspr-emulation \
62 --enable-readline \
63 --enable-release \
64 --enable-shared-js \
65 --enable-tests \
66 --with-intl-api \
67 --with-system-zlib \
68 --without-system-icu \
69 || die
70
71 mmake || die
72 }