Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30866 - (hide annotations) (download)
Mon Apr 30 14:51:41 2018 UTC (6 years ago) by niro
File size: 2724 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 niro 30864 SRCDIR="${BUILDDIR}/mozilla-unified-FIREFOX_${PVER//./_}esr_RELEASE"
21 niro 30861
22     EMUL_LINUX_32=true
23 niro 30864 sminclude multilib
24 niro 30861 msetfeature "!check"
25    
26     SRC_URI=(
27 niro 30863 #https://hg.mozilla.org/mozilla-unified/archive/${SRCFILE}
28 niro 30861 mirror://${PNAME}/${SRCFILE}
29     mirror://${PNAME}/${PNAME}-${PVER}-fix-soname.patch
30     mirror://${PNAME}/${PNAME}-${PVER}-copy-headers.patch
31     mirror://${PNAME}/${PNAME}-${PVER}-disable-mozglue.patch
32     mirror://${PNAME}/${PNAME}-${PVER}-include-configure-script.patch
33     )
34    
35     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"
36    
37     src_prepare()
38     {
39     munpack ${SRCFILE} || die
40 niro 30864 mpatch ${PNAME}-${PVER}-fix-soname.patch || die
41     mpatch ${PNAME}-${PVER}-copy-headers.patch || die
42     mpatch ${PNAME}-${PVER}-disable-mozglue.patch || die
43     mpatch ${PNAME}-${PVER}-include-configure-script.patch || die
44 niro 30866
45     # create missing python execs on multilib systems
46     if [[ ${ARCH} = x86_64 ]] && [[ $(mlibdir) != lib ]]
47     then
48     cd ${SRCDIR}
49     sed -i '/^rm -rf _virtualenv/d' configure.in || die
50     sed -i '/^mkdir -p _virtualenv/d' configure.in || die
51    
52     local _mychost="${CHOST}"
53     install -d obj-${_mychost}/_virtualenv/bin || die
54     cp -a /usr/bin/python-m32 obj-${_mychost}/_virtualenv/bin || die
55     cp -a /usr/bin/python-m64 obj-${_mychost}/_virtualenv/bin || die
56     cp -a /usr/bin/python$(mget-python-version)-m32 obj-${_mychost}/_virtualenv/bin || die
57     cp -a /usr/bin/python$(mget-python-version)-m64 obj-${_mychost}/_virtualenv/bin || die
58     fi
59 niro 30861 }
60    
61     src_compile()
62     {
63     export CFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp -flto=3'
64     export CXXFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp -flto=3'
65     export CC=gcc
66     export CXX=g++
67     export PYTHON=/usr/bin/python2
68    
69 niro 30865 SRCSUBDIR="js/src" \
70 niro 30861 mconfigure \
71     --disable-debug \
72     --disable-debug-symbols \
73     --disable-strip \
74     --enable-gold \
75     --enable-optimize="-O2" \
76     --enable-pie \
77     --enable-posix-nspr-emulation \
78     --enable-readline \
79     --enable-release \
80     --enable-shared-js \
81     --enable-tests \
82     --with-intl-api \
83     --with-system-zlib \
84     --without-system-icu \
85     || die
86    
87 niro 30865 SRCSUBDIR="js/src" mmake || die
88 niro 30861 }
89 niro 30864
90     src_install()
91     {
92 niro 30865 SRCSUBDIR="js/src" mmake DESTDIR=${BINDIR} install || die
93 niro 30864 }