[gnome-build-meta/add-mozjs91] sdk/gjs: Change dependency from mozjs78 to mozjs91
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/add-mozjs91] sdk/gjs: Change dependency from mozjs78 to mozjs91
- Date: Sun, 10 Oct 2021 00:45:42 +0000 (UTC)
commit ae2710948f352e0e77ad66513fd5f8b043d81f4c
Author: Philip Chimento <philip chimento gmail com>
Date: Sat Oct 9 16:10:32 2021 -0700
sdk/gjs: Change dependency from mozjs78 to mozjs91
This is more complicated than previous ports, because mozjs78 lives in
freedesktop and polkit still depends on it.
elements/sdk-platform.bst | 1 +
elements/sdk/gjs.bst | 2 +-
elements/sdk/mozjs91.bst | 62 +++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 64 insertions(+), 1 deletion(-)
---
diff --git a/elements/sdk-platform.bst b/elements/sdk-platform.bst
index 2059f2962..f5455763e 100644
--- a/elements/sdk-platform.bst
+++ b/elements/sdk-platform.bst
@@ -50,6 +50,7 @@ depends:
- sdk/libsoup-2.4.bst
- sdk/libsoup.bst
- sdk/libwpe.bst
+- sdk/mozjs91.bst
- sdk/pango.bst
- sdk/pinentry.bst
- sdk/pipewire.bst
diff --git a/elements/sdk/gjs.bst b/elements/sdk/gjs.bst
index 191a45c3d..304a8f14b 100644
--- a/elements/sdk/gjs.bst
+++ b/elements/sdk/gjs.bst
@@ -14,7 +14,7 @@ depends:
- sdk/gtk+-3.bst
- freedesktop-sdk.bst:components/cairo.bst
- freedesktop-sdk.bst:components/dbus.bst
-- freedesktop-sdk.bst:components/mozjs.bst
+- sdk/mozjs91.bst
- freedesktop-sdk.bst:bootstrap-import.bst
variables:
meson-local: >-
diff --git a/elements/sdk/mozjs91.bst b/elements/sdk/mozjs91.bst
new file mode 100644
index 000000000..5b2eb5941
--- /dev/null
+++ b/elements/sdk/mozjs91.bst
@@ -0,0 +1,62 @@
+kind: manual
+
+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/icu.bst
+
+environment-nocache:
+- MAXJOBS
+
+environment:
+ MACH_USE_SYSTEM_PYTHON: 1
+ MAXJOBS: '%{max-jobs}'
+ PATH: /usr/bin:/usr/lib/sdk/rust/bin
+ CC: gcc
+ CXX: g++
+
+variables:
+ optimize-debug: "false"
+
+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-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:
+ - |
+ cd build-dir && make -j1 install DESTDIR="%{install-root}"
+
+ - rm -rf "%{install-root}%{bindir}"
+ - rm "%{install-root}%{libdir}/libjs_static.ajs"
+
+sources:
+- kind: tar
+ url: https://ftp.mozilla.org/pub/firefox/releases/91.2.0esr/source/firefox-91.2.0esr.source.tar.xz
+ base-dir: 'firefox-91.2.0'
+ ref: 8b55a8b8254ddde03db83f44c9fecfc4ae86ea126b5445a0355d915830bd7410
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]