[gnome-build-meta/abderrahim/mozjs] sdk: add mozjs 91




commit d0cb4e1c6487475db8e68c0d8f43ac60d677cd65
Author: Abderrahim Kitouni <akitouni gnome org>
Date:   Tue Jan 18 10:40:59 2022 +0100

    sdk: add mozjs 91

 elements/sdk/gjs.bst   |  2 +-
 elements/sdk/mozjs.bst | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 60 insertions(+), 1 deletion(-)
---
diff --git a/elements/sdk/gjs.bst b/elements/sdk/gjs.bst
index d0299457e..ef46c2f7a 100644
--- a/elements/sdk/gjs.bst
+++ b/elements/sdk/gjs.bst
@@ -12,9 +12,9 @@ build-depends:
 depends:
 - sdk/gobject-introspection.bst
 - sdk/gtk+-3.bst
+- sdk/mozjs.bst
 - freedesktop-sdk.bst:components/cairo.bst
 - freedesktop-sdk.bst:components/dbus.bst
-- freedesktop-sdk.bst:components/mozjs.bst
 - freedesktop-sdk.bst:bootstrap-import.bst
 variables:
   meson-local: >-
diff --git a/elements/sdk/mozjs.bst b/elements/sdk/mozjs.bst
new file mode 100644
index 000000000..651ffb80a
--- /dev/null
+++ b/elements/sdk/mozjs.bst
@@ -0,0 +1,59 @@
+kind: manual
+
+sources:
+- kind: tar
+  url: https://ftp.mozilla.org/pub/firefox/releases/91.5.0esr/source/firefox-91.5.0esr.source.tar.xz
+  base-dir: 'firefox-91.5.0'
+
+build-depends:
+- freedesktop-sdk.bst:components/autoconf2.13.bst # 1999 called, LOL
+- freedesktop-sdk.bst:components/pkg-config.bst
+- freedesktop-sdk.bst:components/python3.bst
+- freedesktop-sdk.bst:components/which.bst
+- freedesktop-sdk.bst:components/perl.bst
+- freedesktop-sdk.bst:components/rust.bst
+
+depends:
+- freedesktop-sdk.bst:components/nspr.bst
+- freedesktop-sdk.bst:components/icu.bst
+- freedesktop-sdk.bst:bootstrap-import.bst
+
+variables:
+  optimize-debug: "false"
+
+environment:
+  MACH_USE_SYSTEM_PYTHON: '1'
+  MAXJOBS: '%{max-jobs}'
+  CC: gcc
+  CXX: g++
+
+environment-nocache:
+- MAXJOBS
+
+config:
+  configure-commands:
+  - |
+    cat >mozconfig <<EOF
+    ac_add_options --prefix="%{prefix}"
+    ac_add_options --libdir="%{libdir}"
+    ac_add_options --host="%{triplet}"
+    ac_add_options --target="%{triplet}"
+    ac_add_options --enable-application=js
+    ac_add_options --enable-release
+    ac_add_options --with-system-nspr
+    ac_add_options --with-system-zlib
+    ac_add_options --with-system-icu
+    ac_add_options --enable-readline
+    ac_add_options --disable-jemalloc
+    mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/build-dir
+    EOF
+
+  - ./mach configure
+
+  build-commands:
+  - ./mach build -j${MAXJOBS} --verbose
+
+  install-commands:
+  - make -C build-dir -j1 install DESTDIR="%{install-root}"
+  - rm -rf "%{install-root}%{bindir}"
+  - rm "%{install-root}%{libdir}/libjs_static.ajs"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]