Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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