Magellan Linux

Contents of /smage/trunk/core/spidermonkey/spidermonkey-60.7.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13149 - (show annotations) (download)
Sat Jun 29 10:42:23 2019 UTC (4 years, 9 months ago) by niro
File size: 2885 byte(s)
auto added: ver bump to 60.7.2-r1
1 # $Id$
2
3 PNAME="spidermonkey"
4 PVER="60.7.2"
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 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}-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 # create missing python execs on multilib systems
44 if [[ ${ARCH} = x86_64 ]] && [[ $(mlibdir) != lib ]]
45 then
46 for abi in ${MULTILIB_ABIS}
47 do
48 cd ${SRCDIR}-${abi}
49 sed -i '/^rm -rf _virtualenv/d' configure.in || die
50 sed -i '/^mkdir -p _virtualenv/d' configure.in || die
51
52 install -d _virtualenv/bin || die
53 cp -a /usr/bin/python-m32 _virtualenv/bin || die
54 cp -a /usr/bin/python-m64 _virtualenv/bin || die
55 cp -a /usr/bin/python$(mget-python-version)-m32 _virtualenv/bin || die
56 cp -a /usr/bin/python$(mget-python-version)-m64 _virtualenv/bin || die
57 done
58 fi
59
60 export WANT_AUTOCONF=2.1
61 all-abis autoconf || die
62
63 export WANT_AUTOCONF=2.1
64 SRCSUBDIR="js/src" all-abis autoconf || die
65 }
66
67 src_compile()
68 {
69 export CPPFLAGS=""
70 export CFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp'
71 export CXXFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp'
72 # will be set via multilib include
73 #export CC=gcc
74 #export CXX=g++
75 export SHELL="${SHELL}"
76
77 SRCSUBDIR="js/src" \
78 mconfigure \
79 --disable-debug \
80 --disable-debug-symbols \
81 --disable-strip \
82 --enable-linker="gold" \
83 --enable-optimize="-O2" \
84 --enable-pie \
85 --enable-posix-nspr-emulation \
86 --disable-readline \
87 --disable-jemalloc \
88 --enable-release \
89 --enable-shared-js \
90 --disable-tests \
91 --with-intl-api \
92 --with-system-zlib \
93 --without-system-icu \
94 || die
95
96 # shell export fixes some bugs in a chroot environment
97 # see: http://comments.gmane.org/gmane.linux.lfs.beyond.support/47450
98 SHELL="${SHELL}" SRCSUBDIR="js/src" mmake || die
99 }
100
101 src_install()
102 {
103 SHELL="${SHELL}" SRCSUBDIR="js/src" mmake DESTDIR=${BINDIR} install || die
104
105 # remove static libraries
106 find ${BINDIR} -iname '*.ajs' -delete || die
107 }
108