Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30868 - (hide annotations) (download)
Wed May 2 09:10:51 2018 UTC (6 years, 6 months ago) by niro
File size: 2641 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 niro 30867 for abi in ${MULTILIB_ABIS}
49     do
50     cd ${SRCDIR}-${abi}
51     sed -i '/^rm -rf _virtualenv/d' configure.in || die
52     sed -i '/^mkdir -p _virtualenv/d' configure.in || die
53 niro 30866
54 niro 30867 install -d _virtualenv/bin || die
55     cp -a /usr/bin/python-m32 _virtualenv/bin || die
56     cp -a /usr/bin/python-m64 _virtualenv/bin || die
57     cp -a /usr/bin/python$(mget-python-version)-m32 _virtualenv/bin || die
58     cp -a /usr/bin/python$(mget-python-version)-m64 _virtualenv/bin || die
59     done
60 niro 30866 fi
61 niro 30861 }
62    
63     src_compile()
64     {
65     export CFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp -flto=3'
66     export CXXFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp -flto=3'
67     export CC=gcc
68     export CXX=g++
69    
70 niro 30865 SRCSUBDIR="js/src" \
71 niro 30861 mconfigure \
72     --disable-debug \
73     --disable-debug-symbols \
74     --disable-strip \
75     --enable-gold \
76     --enable-optimize="-O2" \
77     --enable-pie \
78     --enable-posix-nspr-emulation \
79     --enable-readline \
80     --enable-release \
81     --enable-shared-js \
82     --enable-tests \
83     --with-intl-api \
84     --with-system-zlib \
85     --without-system-icu \
86     || die
87    
88 niro 30865 SRCSUBDIR="js/src" mmake || die
89 niro 30861 }
90 niro 30864
91     src_install()
92     {
93 niro 30865 SRCSUBDIR="js/src" mmake DESTDIR=${BINDIR} install || die
94 niro 30864 }