talimat 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Tanım: JavaScript yorumlayıcı ve kütüphanesi
  2. # URL: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey
  3. # Paketçi: milisarge
  4. # Gerekler: python zip autoconf2 nspr
  5. # Grup: kütüphane
  6. isim=js52
  7. surum=52.3.0esr
  8. devir=1
  9. kaynak=(https://ftp.mozilla.org/pub/firefox/releases/52.3.0esr/source/firefox-52.3.0esr.source.tar.xz
  10. mozjs52-disable-mozglue.patch)
  11. derle() {
  12. cd firefox-$surum
  13. # Workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1236085
  14. patch -p1 -i ../mozjs52-disable-mozglue.patch
  15. cd js/src
  16. export SHELL=/bin/sh
  17. rm configure
  18. autoconf-2.13
  19. rm -r editline
  20. rm -r ctypes/libffi
  21. [[ -z "$MOZJS_DEBUG" ]] || DBG_OPTIONS='--enable-debug --disable-optimize'
  22. cd ${SRC}/firefox-$surum/js/src
  23. # spidermonkey is broken with ICU 59 and it won't be fix on FF52
  24. # https://bugzilla.mozilla.org/show_bug.cgi?id=1353650
  25. ./configure --prefix=/usr --with-system-nspr \
  26. --enable-readline $DBG_OPTIONS
  27. SHELL=/bin/sh make -j1
  28. #cd "$SRC/firefox-$surum/js/src/tests"
  29. #python2 jstests.py ../js/src/js
  30. #cd "$SRC/firefox-$surum/js/src/jit-test"
  31. #python2 jit_test.py ../js/src/js
  32. SHELL=/bin/sh make -j1 DESTDIR="$PKG" install
  33. install -Dm644 mozglue/build/libmozglue.a "$PKG"/usr/lib/libmozglue.a
  34. }