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 30874 by niro, Thu May 3 09:08:17 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  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 41  src_prepare() Line 41  src_prepare()
41   mpatch ${PNAME}-${PVER}-copy-headers.patch || die   mpatch ${PNAME}-${PVER}-copy-headers.patch || die
42   mpatch ${PNAME}-${PVER}-disable-mozglue.patch || die   mpatch ${PNAME}-${PVER}-disable-mozglue.patch || die
43   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()
67  {  {
68     export CPPFLAGS=""
69   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'
70   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'
71   export CC=gcc   export CC=gcc
72   export CXX=g++   export CXX=g++
73   export PYTHON=/usr/bin/python2   export SHELL="${SHELL}"
74    
75     SRCSUBDIR="js/src" \
76   mconfigure \   mconfigure \
77   --disable-debug \   --disable-debug \
78   --disable-debug-symbols \   --disable-debug-symbols \
# Line 68  src_compile() Line 90  src_compile()
90   --without-system-icu \   --without-system-icu \
91   || die   || die
92    
93   mmake || die   # shell export fixes some bugs in a chroot environment
94     # see: http://comments.gmane.org/gmane.linux.lfs.beyond.support/47450
95     SRCSUBDIR="js/src" SHELL="${SHELL}" mmake || die
96    }
97    
98    src_install()
99    {
100     SRCSUBDIR="js/src" SHELL="${SHELL}" mmake DESTDIR=${BINDIR} install || die
101  }  }

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