Annotation of /trunk/extras/spidermonkey/spidermonkey-52.7.3-r1.smage2
Parent Directory | Revision Log
Revision 30879 -
(hide annotations)
(download)
Mon May 14 09:58:50 2018 UTC (6 years ago) by niro
File size: 2779 byte(s)
Mon May 14 09:58:50 2018 UTC (6 years ago) by niro
File size: 2779 byte(s)
-autoreconf js/src too
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 | niro | 30875 | sminclude python |
23 | niro | 30861 | msetfeature "!check" |
24 | |||
25 | SRC_URI=( | ||
26 | niro | 30863 | #https://hg.mozilla.org/mozilla-unified/archive/${SRCFILE} |
27 | niro | 30861 | mirror://${PNAME}/${SRCFILE} |
28 | mirror://${PNAME}/${PNAME}-${PVER}-fix-soname.patch | ||
29 | mirror://${PNAME}/${PNAME}-${PVER}-copy-headers.patch | ||
30 | mirror://${PNAME}/${PNAME}-${PVER}-disable-mozglue.patch | ||
31 | mirror://${PNAME}/${PNAME}-${PVER}-include-configure-script.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 | niro | 30876 | cd ${SRCDIR} |
40 | |||
41 | niro | 30864 | mpatch ${PNAME}-${PVER}-fix-soname.patch || die |
42 | mpatch ${PNAME}-${PVER}-copy-headers.patch || die | ||
43 | mpatch ${PNAME}-${PVER}-disable-mozglue.patch || die | ||
44 | mpatch ${PNAME}-${PVER}-include-configure-script.patch || die | ||
45 | niro | 30866 | |
46 | niro | 30876 | sed -i '/^rm -rf _virtualenv/d' configure.in || die |
47 | sed -i '/^mkdir -p _virtualenv/d' configure.in || die | ||
48 | niro | 30866 | |
49 | niro | 30876 | install -d _virtualenv/bin || die |
50 | cp -a /usr/bin/python-m32 _virtualenv/bin || die | ||
51 | cp -a /usr/bin/python-m64 _virtualenv/bin || die | ||
52 | cp -a /usr/bin/python$(mget-python-version)-m32 _virtualenv/bin || die | ||
53 | cp -a /usr/bin/python$(mget-python-version)-m64 _virtualenv/bin || die | ||
54 | niro | 30869 | |
55 | export WANT_AUTOCONF=2.1 | ||
56 | autoconf || die | ||
57 | niro | 30879 | |
58 | cd ${SRCDIR}/js/src | ||
59 | export WANT_AUTOCONF=2.1 | ||
60 | autoconf || die | ||
61 | niro | 30861 | } |
62 | |||
63 | src_compile() | ||
64 | { | ||
65 | niro | 30874 | export CPPFLAGS="" |
66 | niro | 30861 | export CFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp -flto=3' |
67 | export CXXFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp -flto=3' | ||
68 | export CC=gcc | ||
69 | export CXX=g++ | ||
70 | niro | 30872 | export SHELL="${SHELL}" |
71 | niro | 30861 | |
72 | niro | 30876 | cd ${SRCDIR}/js/src |
73 | |||
74 | niro | 30878 | # --enable-optimize="-O2" |
75 | # --enable-gold | ||
76 | niro | 30861 | mconfigure \ |
77 | --disable-debug \ | ||
78 | --disable-debug-symbols \ | ||
79 | --disable-strip \ | ||
80 | niro | 30874 | --enable-gold \ |
81 | niro | 30878 | --disable-optimize \ |
82 | niro | 30861 | --enable-pie \ |
83 | --enable-posix-nspr-emulation \ | ||
84 | --enable-readline \ | ||
85 | --enable-release \ | ||
86 | --enable-shared-js \ | ||
87 | niro | 30877 | --disable-tests \ |
88 | niro | 30861 | --with-intl-api \ |
89 | --with-system-zlib \ | ||
90 | --without-system-icu \ | ||
91 | || die | ||
92 | |||
93 | niro | 30870 | # shell export fixes some bugs in a chroot environment |
94 | # see: http://comments.gmane.org/gmane.linux.lfs.beyond.support/47450 | ||
95 | niro | 30876 | SHELL="${SHELL}" mmake || die |
96 | niro | 30861 | } |
97 | niro | 30864 | |
98 | src_install() | ||
99 | { | ||
100 | niro | 30876 | cd ${SRCDIR}/js/src |
101 | SHELL="${SHELL}" mmake DESTDIR=${BINDIR} install || die | ||
102 | niro | 30864 | } |