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 30871 by niro, Wed May 2 11:36:07 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 python
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     export WANT_AUTOCONF=2.1
63     autoconf || die
64  }  }
65    
66  src_compile()  src_compile()
# Line 50  src_compile() Line 69  src_compile()
69   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'
70   export CC=gcc   export CC=gcc
71   export CXX=g++   export CXX=g++
  export PYTHON=/usr/bin/python2  
72    
73     SRCSUBDIR="js/src" \
74   mconfigure \   mconfigure \
75   --disable-debug \   --disable-debug \
76   --disable-debug-symbols \   --disable-debug-symbols \
# Line 69  src_compile() Line 88  src_compile()
88   --without-system-icu \   --without-system-icu \
89   || die   || die
90    
91   mmake || die   # shell export fixes some bugs in a chroot environment
92     # see: http://comments.gmane.org/gmane.linux.lfs.beyond.support/47450
93     SRCSUBDIR="js/src" SHELL="${SHELL}" mmake || die
94    }
95    
96    src_install()
97    {
98     SRCSUBDIR="js/src" SHELL="${SHELL}" mmake DESTDIR=${BINDIR} install || die
99  }  }

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