Magellan Linux

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

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

revision 30883 by niro, Mon May 14 12:43:59 2018 UTC revision 30884 by niro, Mon May 14 13:19:00 2018 UTC
# Line 18  SDEPEND=">= dev-lang/python-2.7 Line 18  SDEPEND=">= dev-lang/python-2.7
18  SRCFILE="firefox-${PVER}esr.source.tar.xz"  SRCFILE="firefox-${PVER}esr.source.tar.xz"
19  SRCDIR="${BUILDDIR}/firefox-${PVER}esr"  SRCDIR="${BUILDDIR}/firefox-${PVER}esr"
20    
21  sminclude python  sminclude multilib python
22  msetfeature "!check"  msetfeature "!check"
23    
24  SRC_URI=(  SRC_URI=(
# Line 42  src_prepare() Line 42  src_prepare()
42   mpatch ${PNAME}-52.7.3-disable-mozglue.patch || die   mpatch ${PNAME}-52.7.3-disable-mozglue.patch || die
43   mpatch ${PNAME}-52.8.0-include-configure-script.patch || die   mpatch ${PNAME}-52.8.0-include-configure-script.patch || die
44    
45   sed -i '/^rm -rf _virtualenv/d' configure.in || die   # create missing python execs on multilib systems
46   sed -i '/^mkdir -p _virtualenv/d' configure.in || die   if [[ ${ARCH} = x86_64 ]] && [[ $(mlibdir) != lib ]]
47     then
48   install -d _virtualenv/bin || die   for abi in ${MULTILIB_ABIS}
49   cp -a /usr/bin/python-m32 _virtualenv/bin || die   do
50   cp -a /usr/bin/python-m64 _virtualenv/bin || die   cd ${SRCDIR}-${abi}
51   cp -a /usr/bin/python$(mget-python-version)-m32 _virtualenv/bin || die   sed -i '/^rm -rf _virtualenv/d' configure.in || die
52   cp -a /usr/bin/python$(mget-python-version)-m64 _virtualenv/bin || die   sed -i '/^mkdir -p _virtualenv/d' configure.in || die
53    
54     install -d _virtualenv/bin || die
55     cp -a /usr/bin/python-m32 _virtualenv/bin || die
56     cp -a /usr/bin/python-m64 _virtualenv/bin || die
57     cp -a /usr/bin/python$(mget-python-version)-m32 _virtualenv/bin || die
58     cp -a /usr/bin/python$(mget-python-version)-m64 _virtualenv/bin || die
59     done
60     fi
61    
62   export WANT_AUTOCONF=2.1   export WANT_AUTOCONF=2.1
63   autoconf || die   all-abis autoconf || die
64    
  cd ${SRCDIR}/js/src  
65   export WANT_AUTOCONF=2.1   export WANT_AUTOCONF=2.1
66   autoconf || die   SRCSUBDIR="js/src" all-abis autoconf || die
67  }  }
68    
69  src_compile()  src_compile()
# Line 68  src_compile() Line 75  src_compile()
75   export CXX=g++   export CXX=g++
76   export SHELL="${SHELL}"   export SHELL="${SHELL}"
77    
78   cd ${SRCDIR}/js/src   SRCSUBDIR="js/src" \
   
79   mconfigure \   mconfigure \
80   --disable-debug \   --disable-debug \
81   --disable-debug-symbols \   --disable-debug-symbols \
82   --disable-strip \   --disable-strip \
83   --enable-gold \   --enable-gold \
84   --enable-optimize="-O2"   --enable-optimize="-O2" \
85   --enable-pie \   --enable-pie \
86   --enable-posix-nspr-emulation \   --enable-posix-nspr-emulation \
87   --enable-readline \   --enable-readline \
# Line 89  src_compile() Line 95  src_compile()
95    
96   # shell export fixes some bugs in a chroot environment   # shell export fixes some bugs in a chroot environment
97   # see: http://comments.gmane.org/gmane.linux.lfs.beyond.support/47450   # see: http://comments.gmane.org/gmane.linux.lfs.beyond.support/47450
98   SHELL="${SHELL}" mmake || die   SHELL="${SHELL}" SRCSUBDIR="js/src" mmake || die
99  }  }
100    
101  src_install()  src_install()
102  {  {
103   cd ${SRCDIR}/js/src   SHELL="${SHELL}" SRCSUBDIR="js/src" mmake DESTDIR=${BINDIR} install || die
  SHELL="${SHELL}" mmake DESTDIR=${BINDIR} install || die  
104  }  }

Legend:
Removed from v.30883  
changed lines
  Added in v.30884