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 30871 by niro, Wed May 2 11:36:07 2018 UTC revision 30878 by niro, Mon May 14 09:27:11 2018 UTC
# Line 19  SDEPEND=">= dev-lang/python-2.7 Line 19  SDEPEND=">= dev-lang/python-2.7
19  SRCFILE="FIREFOX_${PVER//./_}esr_RELEASE.tar.bz2"  SRCFILE="FIREFOX_${PVER//./_}esr_RELEASE.tar.bz2"
20  SRCDIR="${BUILDDIR}/mozilla-unified-FIREFOX_${PVER//./_}esr_RELEASE"  SRCDIR="${BUILDDIR}/mozilla-unified-FIREFOX_${PVER//./_}esr_RELEASE"
21    
22  EMUL_LINUX_32=true  sminclude python
 sminclude multilib python  
23  msetfeature "!check"  msetfeature "!check"
24    
25  SRC_URI=(  SRC_URI=(
# 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   # create missing python execs on multilib systems   sed -i '/^rm -rf _virtualenv/d' configure.in || die
47   if [[ ${ARCH} = x86_64 ]] && [[ $(mlibdir) != lib ]]   sed -i '/^mkdir -p _virtualenv/d' configure.in || die
48   then  
49   for abi in ${MULTILIB_ABIS}   install -d _virtualenv/bin || die
50   do   cp -a /usr/bin/python-m32 _virtualenv/bin || die
51   cd ${SRCDIR}-${abi}   cp -a /usr/bin/python-m64 _virtualenv/bin || die
52   sed -i '/^rm -rf _virtualenv/d' configure.in || die   cp -a /usr/bin/python$(mget-python-version)-m32 _virtualenv/bin || die
53   sed -i '/^mkdir -p _virtualenv/d' configure.in || die   cp -a /usr/bin/python$(mget-python-version)-m64 _virtualenv/bin || die
   
  install -d _virtualenv/bin || die  
  cp -a /usr/bin/python-m32 _virtualenv/bin || die  
  cp -a /usr/bin/python-m64 _virtualenv/bin || die  
  cp -a /usr/bin/python$(mget-python-version)-m32 _virtualenv/bin || die  
  cp -a /usr/bin/python$(mget-python-version)-m64 _virtualenv/bin || die  
  done  
  fi  
54    
55   export WANT_AUTOCONF=2.1   export WANT_AUTOCONF=2.1
56   autoconf || die   autoconf || die
# Line 65  src_prepare() Line 58  src_prepare()
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 SHELL="${SHELL}"
67    
68   SRCSUBDIR="js/src" \   cd ${SRCDIR}/js/src
69    
70     # --enable-optimize="-O2"
71     # --enable-gold
72   mconfigure \   mconfigure \
73   --disable-debug \   --disable-debug \
74   --disable-debug-symbols \   --disable-debug-symbols \
75   --disable-strip \   --disable-strip \
76   --enable-gold \   --enable-gold \
77   --enable-optimize="-O2" \   --disable-optimize \
78   --enable-pie \   --enable-pie \
79   --enable-posix-nspr-emulation \   --enable-posix-nspr-emulation \
80   --enable-readline \   --enable-readline \
81   --enable-release \   --enable-release \
82   --enable-shared-js \   --enable-shared-js \
83   --enable-tests \   --disable-tests \
84   --with-intl-api \   --with-intl-api \
85   --with-system-zlib \   --with-system-zlib \
86   --without-system-icu \   --without-system-icu \
# Line 90  src_compile() Line 88  src_compile()
88    
89   # shell export fixes some bugs in a chroot environment   # shell export fixes some bugs in a chroot environment
90   # see: http://comments.gmane.org/gmane.linux.lfs.beyond.support/47450   # see: http://comments.gmane.org/gmane.linux.lfs.beyond.support/47450
91   SRCSUBDIR="js/src" SHELL="${SHELL}" mmake || die   SHELL="${SHELL}" mmake || die
92  }  }
93    
94  src_install()  src_install()
95  {  {
96   SRCSUBDIR="js/src" SHELL="${SHELL}" mmake DESTDIR=${BINDIR} install || die   cd ${SRCDIR}/js/src
97     SHELL="${SHELL}" mmake DESTDIR=${BINDIR} install || die
98  }  }

Legend:
Removed from v.30871  
changed lines
  Added in v.30878