Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 30861 by niro, Mon Apr 30 11:31:25 2018 UTC revision 30877 by niro, Fri May 11 08:58:21 2018 UTC
# Line 16  SDEPEND=">= dev-lang/python-2.7 Line 16  SDEPEND=">= dev-lang/python-2.7
16   >= app-arch/zip-3"   >= app-arch/zip-3"
17    
18  # direct mecurial export  # direct mecurial export
19  SRCFILE="FIREFOX_{PVER//./_}esr_RELEASE.tar.bz2"  SRCFILE="FIREFOX_${PVER//./_}esr_RELEASE.tar.bz2"
20  SRCDIR="${BUILDDIR}/js-${PVER}/js/src"  SRCDIR="${BUILDDIR}/mozilla-unified-FIREFOX_${PVER//./_}esr_RELEASE"
21    
22  EMUL_LINUX_32=true  sminclude python
 sminclude multilib mbuild  
23  msetfeature "!check"  msetfeature "!check"
24    
25  SRC_URI=(  SRC_URI=(
26   https://hg.mozilla.org/mozilla-unified/archive/${SRCFILE}   #https://hg.mozilla.org/mozilla-unified/archive/${SRCFILE}
27   mirror://${PNAME}/${SRCFILE}   mirror://${PNAME}/${SRCFILE}
28   mirror://${PNAME}/${PNAME}-${PVER}-fix-soname.patch   mirror://${PNAME}/${PNAME}-${PVER}-fix-soname.patch
29   mirror://${PNAME}/${PNAME}-${PVER}-copy-headers.patch   mirror://${PNAME}/${PNAME}-${PVER}-copy-headers.patch
# Line 37  UP2DATE="updatecmd https://hg.mozilla.or Line 36  UP2DATE="updatecmd https://hg.mozilla.or
36  src_prepare()  src_prepare()
37  {  {
38   munpack ${SRCFILE} || die   munpack ${SRCFILE} || die
39     cd ${SRCDIR}
40    
41   mpatch ${PNAME}-${PVER}-fix-soname.patch || die   mpatch ${PNAME}-${PVER}-fix-soname.patch || die
42   mpatch ${PNAME}-${PVER}-copy-headers.patch || die   mpatch ${PNAME}-${PVER}-copy-headers.patch || die
43   mpatch ${PNAME}-${PVER}-disable-mozglue.patch || die   mpatch ${PNAME}-${PVER}-disable-mozglue.patch || die
44   mpatch ${PNAME}-${PVER}-include-configure-script.patch || die   mpatch ${PNAME}-${PVER}-include-configure-script.patch || die
45    
46     sed -i '/^rm -rf _virtualenv/d' configure.in || die
47     sed -i '/^mkdir -p _virtualenv/d' configure.in || die
48    
49     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    
55     export WANT_AUTOCONF=2.1
56     autoconf || die
57  }  }
58    
59  src_compile()  src_compile()
60  {  {
61     export CPPFLAGS=""
62   export CFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp -flto=3'   export CFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp -flto=3'
63   export CXXFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp -flto=3'   export CXXFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp -flto=3'
64   export CC=gcc   export CC=gcc
65   export CXX=g++   export CXX=g++
66   export PYTHON=/usr/bin/python2   export SHELL="${SHELL}"
67    
68     cd ${SRCDIR}/js/src
69    
70   mconfigure \   mconfigure \
71   --disable-debug \   --disable-debug \
72   --disable-debug-symbols \   --disable-debug-symbols \
# Line 62  src_compile() Line 78  src_compile()
78   --enable-readline \   --enable-readline \
79   --enable-release \   --enable-release \
80   --enable-shared-js \   --enable-shared-js \
81   --enable-tests \   --disable-tests \
82   --with-intl-api \   --with-intl-api \
83   --with-system-zlib \   --with-system-zlib \
84   --without-system-icu \   --without-system-icu \
85   || die   || die
86    
87   mmake || die   # shell export fixes some bugs in a chroot environment
88     # see: http://comments.gmane.org/gmane.linux.lfs.beyond.support/47450
89     SHELL="${SHELL}" mmake || die
90    }
91    
92    src_install()
93    {
94     cd ${SRCDIR}/js/src
95     SHELL="${SHELL}" mmake DESTDIR=${BINDIR} install || die
96  }  }

Legend:
Removed from v.30861  
changed lines
  Added in v.30877