2018-05-10 21:33:01 +02:00
|
|
|
|
# Tanım: JavaScript interpreter and libraries
|
|
|
|
|
# URL: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey
|
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: python zip autoconf2 nspr
|
|
|
|
|
# Grup:
|
|
|
|
|
|
|
|
|
|
isim=js52
|
|
|
|
|
surum=52.3.0esr
|
|
|
|
|
devir=1
|
|
|
|
|
kaynak=(https://ftp.mozilla.org/pub/firefox/releases/52.3.0esr/source/firefox-52.3.0esr.source.tar.xz
|
|
|
|
|
mozjs52-disable-mozglue.patch)
|
|
|
|
|
|
|
|
|
|
derle() {
|
|
|
|
|
cd firefox-$surum
|
|
|
|
|
# Workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1236085
|
|
|
|
|
patch -p1 -i ../mozjs52-disable-mozglue.patch
|
|
|
|
|
cd js/src
|
2018-05-10 22:29:05 +02:00
|
|
|
|
export SHELL=/bin/sh
|
2018-05-10 21:33:01 +02:00
|
|
|
|
rm configure
|
|
|
|
|
autoconf-2.13
|
|
|
|
|
rm -r editline
|
|
|
|
|
rm -r ctypes/libffi
|
|
|
|
|
[[ -z "$MOZJS_DEBUG" ]] || DBG_OPTIONS='--enable-debug --disable-optimize'
|
2018-05-10 22:29:05 +02:00
|
|
|
|
cd ${SRC}/firefox-$surum/js/src
|
2018-05-10 21:33:01 +02:00
|
|
|
|
# spidermonkey is broken with ICU 59 and it won't be fix on FF52
|
|
|
|
|
# https://bugzilla.mozilla.org/show_bug.cgi?id=1353650
|
|
|
|
|
./configure --prefix=/usr --with-system-nspr \
|
|
|
|
|
--enable-readline $DBG_OPTIONS
|
2018-05-10 22:29:05 +02:00
|
|
|
|
|
|
|
|
|
SHELL=/bin/sh make -j1
|
2018-05-10 23:03:07 +02:00
|
|
|
|
#cd "$SRC/firefox-$surum/js/src/tests"
|
|
|
|
|
#python2 jstests.py ../js/src/js
|
|
|
|
|
#cd "$SRC/firefox-$surum/js/src/jit-test"
|
|
|
|
|
#python2 jit_test.py ../js/src/js
|
2018-05-10 22:29:05 +02:00
|
|
|
|
SHELL=/bin/sh make -j1 DESTDIR="$PKG" install
|
2018-05-10 21:33:01 +02:00
|
|
|
|
install -Dm644 mozglue/build/libmozglue.a "$PKG"/usr/lib/libmozglue.a
|
|
|
|
|
}
|