Magellan Linux

Annotation of /smage/trunk/core/spidermonkey/spidermonkey-68.11.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14468 - (hide annotations) (download)
Tue Aug 4 10:39:45 2020 UTC (3 years, 9 months ago) by niro
File size: 2590 byte(s)
auto added: ver bump to 68.11.0-r1
1 niro 14466 # $Id$
2    
3     PNAME="spidermonkey"
4     PVER="68.11.0"
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/libstdc++-8.3"
14     SDEPEND=">= dev-lang/python-2.7
15     >= app-arch/zip-3
16     >= sys-libs/zlib-dev-1.2
17     >= sys-libs/libstdc++-dev-8.3"
18    
19     SRCFILE="firefox-${PVER}esr.source.tar.xz"
20     SRCDIR="${BUILDDIR}/firefox-${PVER}"
21    
22     # enforce 32bit builds
23     EMUL_LINUX_32=true
24     sminclude multilib python2
25     msetfeature "!check"
26    
27     SRC_URI=(
28     http://ftp.mozilla.org/pub/firefox/releases/${PVER}esr/source/${SRCFILE}
29     mirror://${PNAME}/${SRCFILE}
30     )
31    
32     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"
33    
34     src_prepare()
35     {
36     munpack ${SRCFILE} || die
37    
38     export WANT_AUTOCONF=2.1
39     all-abis autoconf || die
40    
41     export WANT_AUTOCONF=2.1
42     SRCSUBDIR="js/src" all-abis autoconf || die
43    
44     all-abis "install -d ${SRCDIR}-$(mabi)/jsobj || die"
45     }
46    
47     src_compile()
48     {
49     export CPPFLAGS=""
50     export CFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp'
51     export CXXFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp'
52     # will be set via multilib include
53     #export CC=gcc
54     #export CXX=g++
55     export SHELL="${SHELL}"
56    
57     # honor multilib setups with multiarch-wrapper
58     # mozilla creates an virtual env, so we tell configure where to find the actual python exec for current mabi
59     # the multiarch wrapper does not work here, non multilib just take the normal python exec
60     if [[ $(mlibdir) != lib ]]
61     then
62     export PYTHON=${MAGE_PYTHON2_EXEC}-$(mabi)
63     fi
64    
65     SRCSUBDIR="jsobj" \
66     all-abis $(echo PYTHON=${PYTHON}) \
67     ${SRCDIR}-$(mabi)/js/src/configure \
68     --prefix=/usr \
69     --datadir=/usr/share \
70     --libdir=/usr/'$(mlibdir)' \
71     --disable-debug \
72     --disable-debug-symbols \
73     --disable-strip \
74     --enable-linker="gold" \
75     --enable-optimize="-O2" \
76     --enable-posix-nspr-emulation \
77     --disable-readline \
78     --disable-jemalloc \
79     --enable-release \
80     --enable-shared-js \
81     --disable-tests \
82     --with-intl-api \
83     --with-system-zlib \
84     --without-system-icu \
85     || die
86    
87     # shell export fixes some bugs in a chroot environment
88     # see: http://comments.gmane.org/gmane.linux.lfs.beyond.support/47450
89     SHELL="${SHELL}" SRCSUBDIR="jsobj" mmake || die
90     }
91    
92     src_install()
93     {
94     SHELL="${SHELL}" SRCSUBDIR="jsobj" mmake DESTDIR=${BINDIR} install || die
95    
96     # remove static libraries
97     find ${BINDIR} -iname '*.ajs' -delete || die
98     }
99