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 30862 by niro, Mon Apr 30 11:45:02 2018 UTC revision 30867 by niro, Mon Apr 30 15:00:16 2018 UTC
# Line 17  SDEPEND=">= dev-lang/python-2.7 Line 17  SDEPEND=">= dev-lang/python-2.7
17    
18  # direct mecurial export  # direct mecurial export
19  SRCFILE="FIREFOX_${PVER//./_}esr_RELEASE.tar.bz2"  SRCFILE="FIREFOX_${PVER//./_}esr_RELEASE.tar.bz2"
20  PATCHDIR="${BUILDDIR}/mozilla-unified-FIREFOX_${PVER//./_}esr_RELEASE"  SRCDIR="${BUILDDIR}/mozilla-unified-FIREFOX_${PVER//./_}esr_RELEASE"
 SRCDIR="${PATCHDIR}/js/src"  
21    
22  EMUL_LINUX_32=true  EMUL_LINUX_32=true
23  sminclude multilib mbuild  sminclude multilib
24  msetfeature "!check"  msetfeature "!check"
25    
26  SRC_URI=(  SRC_URI=(
27   https://hg.mozilla.org/mozilla-unified/archive/${SRCFILE}   #https://hg.mozilla.org/mozilla-unified/archive/${SRCFILE}
28   mirror://${PNAME}/${SRCFILE}   mirror://${PNAME}/${SRCFILE}
29   mirror://${PNAME}/${PNAME}-${PVER}-fix-soname.patch   mirror://${PNAME}/${PNAME}-${PVER}-fix-soname.patch
30   mirror://${PNAME}/${PNAME}-${PVER}-copy-headers.patch   mirror://${PNAME}/${PNAME}-${PVER}-copy-headers.patch
# Line 38  UP2DATE="updatecmd https://hg.mozilla.or Line 37  UP2DATE="updatecmd https://hg.mozilla.or
37  src_prepare()  src_prepare()
38  {  {
39   munpack ${SRCFILE} || die   munpack ${SRCFILE} || die
40   SRCDIR="${PATCHDIR}" mpatch ${PNAME}-${PVER}-fix-soname.patch || die   mpatch ${PNAME}-${PVER}-fix-soname.patch || die
41   SRCDIR="${PATCHDIR}" mpatch ${PNAME}-${PVER}-copy-headers.patch || die   mpatch ${PNAME}-${PVER}-copy-headers.patch || die
42   SRCDIR="${PATCHDIR}" mpatch ${PNAME}-${PVER}-disable-mozglue.patch || die   mpatch ${PNAME}-${PVER}-disable-mozglue.patch || die
43   SRCDIR="${PATCHDIR}" mpatch ${PNAME}-${PVER}-include-configure-script.patch || die   mpatch ${PNAME}-${PVER}-include-configure-script.patch || die
44    
45     # create missing python execs on multilib systems
46     if [[ ${ARCH} = x86_64 ]] && [[ $(mlibdir) != lib ]]
47     then
48     for abi in ${MULTILIB_ABIS}
49     do
50     cd ${SRCDIR}-${abi}
51     sed -i '/^rm -rf _virtualenv/d' configure.in || die
52     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    
63  src_compile()  src_compile()
# Line 52  src_compile() Line 68  src_compile()
68   export CXX=g++   export CXX=g++
69   export PYTHON=/usr/bin/python2   export PYTHON=/usr/bin/python2
70    
71     SRCSUBDIR="js/src" \
72   mconfigure \   mconfigure \
73   --disable-debug \   --disable-debug \
74   --disable-debug-symbols \   --disable-debug-symbols \
# Line 69  src_compile() Line 86  src_compile()
86   --without-system-icu \   --without-system-icu \
87   || die   || die
88    
89   mmake || die   SRCSUBDIR="js/src" mmake || die
90    }
91    
92    src_install()
93    {
94     SRCSUBDIR="js/src" mmake DESTDIR=${BINDIR} install || die
95  }  }

Legend:
Removed from v.30862  
changed lines
  Added in v.30867