Magellan Linux

Annotation of /smage/branches/alx07x-stable/core/spidermonkey/spidermonkey-52.8.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12264 - (hide annotations) (download)
Fri Aug 31 11:11:32 2018 UTC (5 years, 8 months ago) by niro
Original Path: smage/branches/alx07x-unstable/core/spidermonkey/spidermonkey-52.8.0-r1.smage2
File size: 3093 byte(s)
-release branches/alx07x-unstable
1 niro 12054 # $Id$
2    
3     PNAME="spidermonkey"
4     PVER="52.8.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++-7.3"
14     SDEPEND=">= dev-lang/python-2.7
15 niro 12055 >= app-arch/zip-3
16     >= sys-libs/zlib-dev-1.2
17     >= sys-libs/libstdc++-dev-7.3"
18 niro 12054
19     SRCFILE="firefox-${PVER}esr.source.tar.xz"
20     SRCDIR="${BUILDDIR}/firefox-${PVER}esr"
21    
22     # enforce 32bit builds
23     EMUL_LINUX_32=true
24     sminclude multilib python
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}-52.7.3-fix-soname.patch
31     mirror://${PNAME}/${PNAME}-52.7.3-copy-headers.patch
32     mirror://${PNAME}/${PNAME}-52.7.3-disable-mozglue.patch
33     mirror://${PNAME}/${PNAME}-52.8.0-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     cd ${SRCDIR}
42    
43     mpatch ${PNAME}-52.7.3-fix-soname.patch || die
44     mpatch ${PNAME}-52.7.3-copy-headers.patch || die
45     mpatch ${PNAME}-52.7.3-disable-mozglue.patch || die
46     mpatch ${PNAME}-52.8.0-include-configure-script.patch || die
47    
48     # create missing python execs on multilib systems
49     if [[ ${ARCH} = x86_64 ]] && [[ $(mlibdir) != lib ]]
50     then
51     for abi in ${MULTILIB_ABIS}
52     do
53     cd ${SRCDIR}-${abi}
54     sed -i '/^rm -rf _virtualenv/d' configure.in || die
55     sed -i '/^mkdir -p _virtualenv/d' configure.in || die
56    
57     install -d _virtualenv/bin || die
58     cp -a /usr/bin/python-m32 _virtualenv/bin || die
59     cp -a /usr/bin/python-m64 _virtualenv/bin || die
60     cp -a /usr/bin/python$(mget-python-version)-m32 _virtualenv/bin || die
61     cp -a /usr/bin/python$(mget-python-version)-m64 _virtualenv/bin || die
62     done
63     fi
64    
65     export WANT_AUTOCONF=2.1
66     all-abis autoconf || die
67    
68     export WANT_AUTOCONF=2.1
69     SRCSUBDIR="js/src" all-abis autoconf || die
70     }
71    
72     src_compile()
73     {
74     export CPPFLAGS=""
75     export CFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp'
76     export CXXFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp'
77     # will be set via multilib include
78     #export CC=gcc
79     #export CXX=g++
80     export SHELL="${SHELL}"
81    
82     SRCSUBDIR="js/src" \
83     mconfigure \
84     --disable-debug \
85     --disable-debug-symbols \
86     --disable-strip \
87     --enable-gold \
88     --enable-optimize="-O2" \
89     --enable-pie \
90     --enable-posix-nspr-emulation \
91 niro 12055 --disable-readline \
92 niro 12054 --enable-release \
93     --enable-shared-js \
94     --disable-tests \
95     --with-intl-api \
96     --with-system-zlib \
97     --without-system-icu \
98     || die
99    
100     # shell export fixes some bugs in a chroot environment
101     # see: http://comments.gmane.org/gmane.linux.lfs.beyond.support/47450
102     SHELL="${SHELL}" SRCSUBDIR="js/src" mmake || die
103     }
104    
105     src_install()
106     {
107     SHELL="${SHELL}" SRCSUBDIR="js/src" mmake DESTDIR=${BINDIR} install || die
108    
109     # remove static libraries
110     find ${BINDIR} -iname '*.ajs' -delete || die
111     }