milis/talimatname/genel/j/js52/talimat

38 lines
1.2 KiB
Plaintext
Raw Normal View History

2018-08-08 14:24:17 +02:00
# Tanım: JavaScript yorumlayıcı ve kütüphanesi
2018-06-09 00:06:58 +02:00
# URL: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey
# Paketçi: milisarge
# Gerekler: python zip autoconf2 nspr
2018-08-08 14:24:17 +02:00
# Grup: kütüphane
2018-06-09 00:06:58 +02:00
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
export SHELL=/bin/sh
rm configure
autoconf-2.13
rm -r editline
rm -r ctypes/libffi
[[ -z "$MOZJS_DEBUG" ]] || DBG_OPTIONS='--enable-debug --disable-optimize'
cd ${SRC}/firefox-$surum/js/src
# 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
SHELL=/bin/sh make -j1
#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
SHELL=/bin/sh make -j1 DESTDIR="$PKG" install
install -Dm644 mozglue/build/libmozglue.a "$PKG"/usr/lib/libmozglue.a
}