[gnome-build-meta/ptomato/add-mozjs68: 2/3] Add mozjs68



commit acbe2eb1cbd615b44a20b190f92aedda456a6602
Author: Philip Chimento <philip chimento gmail com>
Date:   Sat Jan 18 21:53:26 2020 -0800

    Add mozjs68
    
    GJS will soon depend on this.
    
    See: GNOME/gjs#270

 elements/sdk-platform.bst |  1 +
 elements/sdk/mozjs68.bst  | 31 +++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+)
---
diff --git a/elements/sdk-platform.bst b/elements/sdk-platform.bst
index cfe98918..355ad0be 100644
--- a/elements/sdk-platform.bst
+++ b/elements/sdk-platform.bst
@@ -44,6 +44,7 @@ depends:
 - sdk/libsoup.bst
 - sdk/libwpe.bst
 - sdk/mozjs60.bst
+- sdk/mozjs68.bst
 - sdk/openjpeg.bst
 - sdk/os-release.bst
 - sdk/pango.bst
diff --git a/elements/sdk/mozjs68.bst b/elements/sdk/mozjs68.bst
new file mode 100644
index 00000000..db099ad5
--- /dev/null
+++ b/elements/sdk/mozjs68.bst
@@ -0,0 +1,31 @@
+kind: manual
+sources:
+- kind: tar
+  url: gnome_download:teams/releng/tarballs-needing-help/mozjs/mozjs-68.4.2.tar.bz2
+build-depends:
+- sdk/python2.bst
+- freedesktop-sdk.bst:components/autoconf.bst
+- freedesktop-sdk.bst:components/perl.bst
+- freedesktop-sdk.bst:components/python3.bst
+- freedesktop-sdk.bst:extensions/rust/rust.bst
+- freedesktop-sdk.bst:components/which.bst
+depends:
+- freedesktop-sdk.bst:bootstrap-import.bst
+variables:
+  mozjs_target: ''
+  (?):
+  - arch == "i686":
+      mozjs_target: --host=i686-unknown-linux-gnu
+  - arch == "arm":
+      mozjs_target: --host=armv7-unknown-linux-gnueabihf
+  command-subdir: _build
+environment:
+  PATH: /usr/bin:/usr/lib/sdk/rust/bin
+config:
+  configure-commands:
+  -  ../js/src/configure --prefix=%{prefix} --libdir=%{libdir} --disable-jemalloc 
--enable-unaligned-private-values AUTOCONF=autoconf %{mozjs_target}
+  build-commands:
+  - make
+  install-commands:
+  - make -j1 DESTDIR="%{install-root}" install
+  - rm %{install-root}%{libdir}/libjs_static.ajs


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