Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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