Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14466 - (hide annotations) (download)
Tue Aug 4 10:25:33 2020 UTC (3 years, 9 months ago) by niro
File size: 2826 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     mirror://${PNAME}/${PNAME}-60.7.2-fix-soname.patch
31     mirror://${PNAME}/${PNAME}-60.7.2-fix-timezone-issues.patch
32     )
33    
34     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"
35    
36     src_prepare()
37     {
38     munpack ${SRCFILE} || die
39    
40     mpatch ${PNAME}-60.7.2-fix-soname.patch || die
41     mpatch ${PNAME}-60.7.2-fix-timezone-issues.patch || die
42    
43     export WANT_AUTOCONF=2.1
44     all-abis autoconf || die
45    
46     export WANT_AUTOCONF=2.1
47     SRCSUBDIR="js/src" all-abis autoconf || die
48    
49     all-abis "install -d ${SRCDIR}-$(mabi)/jsobj || die"
50     }
51    
52     src_compile()
53     {
54     export CPPFLAGS=""
55     export CFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp'
56     export CXXFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp'
57     # will be set via multilib include
58     #export CC=gcc
59     #export CXX=g++
60     export SHELL="${SHELL}"
61    
62     # honor multilib setups with multiarch-wrapper
63     # mozilla creates an virtual env, so we tell configure where to find the actual python exec for current mabi
64     # the multiarch wrapper does not work here, non multilib just take the normal python exec
65     if [[ $(mlibdir) != lib ]]
66     then
67     export PYTHON=${MAGE_PYTHON2_EXEC}-$(mabi)
68     fi
69    
70     SRCSUBDIR="jsobj" \
71     all-abis $(echo PYTHON=${PYTHON}) \
72     ${SRCDIR}-$(mabi)/js/src/configure \
73     --prefix=/usr \
74     --datadir=/usr/share \
75     --libdir=/usr/'$(mlibdir)' \
76     --disable-debug \
77     --disable-debug-symbols \
78     --disable-strip \
79     --enable-linker="gold" \
80     --enable-optimize="-O2" \
81     --enable-pie \
82     --enable-posix-nspr-emulation \
83     --disable-readline \
84     --disable-jemalloc \
85     --enable-release \
86     --enable-shared-js \
87     --disable-tests \
88     --with-intl-api \
89     --with-system-zlib \
90     --without-system-icu \
91     || die
92    
93     # shell export fixes some bugs in a chroot environment
94     # see: http://comments.gmane.org/gmane.linux.lfs.beyond.support/47450
95     SHELL="${SHELL}" SRCSUBDIR="jsobj" mmake || die
96     }
97    
98     src_install()
99     {
100     SHELL="${SHELL}" SRCSUBDIR="jsobj" mmake DESTDIR=${BINDIR} install || die
101    
102     # remove static libraries
103     find ${BINDIR} -iname '*.ajs' -delete || die
104     }
105