Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30883 - (hide annotations) (download)
Mon May 14 12:43:59 2018 UTC (5 years, 11 months ago) by niro
File size: 2667 byte(s)
-removed lto and reenabled optimization
1 niro 30880 # $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/readline-7
14     >= sys-libs/libstdc++-7.3"
15     SDEPEND=">= dev-lang/python-2.7
16     >= app-arch/zip-3"
17    
18     SRCFILE="firefox-${PVER}esr.source.tar.xz"
19 niro 30881 SRCDIR="${BUILDDIR}/firefox-${PVER}esr"
20 niro 30880
21     sminclude python
22     msetfeature "!check"
23    
24     SRC_URI=(
25     http://ftp.mozilla.org/pub/firefox/releases/${PVER}esr/source/${SRCFILE}
26     mirror://${PNAME}/${SRCFILE}
27     mirror://${PNAME}/${PNAME}-52.7.3-fix-soname.patch
28     mirror://${PNAME}/${PNAME}-52.7.3-copy-headers.patch
29     mirror://${PNAME}/${PNAME}-52.7.3-disable-mozglue.patch
30 niro 30882 mirror://${PNAME}/${PNAME}-52.8.0-include-configure-script.patch
31 niro 30880 )
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     cd ${SRCDIR}
39    
40     mpatch ${PNAME}-52.7.3-fix-soname.patch || die
41     mpatch ${PNAME}-52.7.3-copy-headers.patch || die
42     mpatch ${PNAME}-52.7.3-disable-mozglue.patch || die
43 niro 30882 mpatch ${PNAME}-52.8.0-include-configure-script.patch || die
44 niro 30880
45     sed -i '/^rm -rf _virtualenv/d' configure.in || die
46     sed -i '/^mkdir -p _virtualenv/d' configure.in || die
47    
48     install -d _virtualenv/bin || die
49     cp -a /usr/bin/python-m32 _virtualenv/bin || die
50     cp -a /usr/bin/python-m64 _virtualenv/bin || die
51     cp -a /usr/bin/python$(mget-python-version)-m32 _virtualenv/bin || die
52     cp -a /usr/bin/python$(mget-python-version)-m64 _virtualenv/bin || die
53    
54     export WANT_AUTOCONF=2.1
55     autoconf || die
56    
57     cd ${SRCDIR}/js/src
58     export WANT_AUTOCONF=2.1
59     autoconf || die
60     }
61    
62     src_compile()
63     {
64     export CPPFLAGS=""
65 niro 30883 export CFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp'
66     export CXXFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp'
67 niro 30880 export CC=gcc
68     export CXX=g++
69     export SHELL="${SHELL}"
70    
71     cd ${SRCDIR}/js/src
72    
73     mconfigure \
74     --disable-debug \
75     --disable-debug-symbols \
76     --disable-strip \
77     --enable-gold \
78 niro 30883 --enable-optimize="-O2"
79 niro 30880 --enable-pie \
80     --enable-posix-nspr-emulation \
81     --enable-readline \
82     --enable-release \
83     --enable-shared-js \
84     --disable-tests \
85     --with-intl-api \
86     --with-system-zlib \
87     --without-system-icu \
88     || die
89    
90     # shell export fixes some bugs in a chroot environment
91     # see: http://comments.gmane.org/gmane.linux.lfs.beyond.support/47450
92     SHELL="${SHELL}" mmake || die
93     }
94    
95     src_install()
96     {
97     cd ${SRCDIR}/js/src
98     SHELL="${SHELL}" mmake DESTDIR=${BINDIR} install || die
99     }