summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@gmail.com>2019-12-09 09:35:53 +0100
committerKhem Raj <raj.khem@gmail.com>2019-12-10 16:21:07 -0800
commit05d876b8f40b4d86792851788c454109de8d8e9d (patch)
tree825aa0b6dcd917de8b2627ddbd2f8e68040eceb2
parentc1d1697c509bb2f065f9bd631fa77b81fc849a3b (diff)
downloadmeta-openembedded-05d876b8f40b4d86792851788c454109de8d8e9d.tar.gz
gjs: initial add 1.58.3
* it is a dependency for upcoming gnome shell * this is the latest stable version currently [1] [1] http://ftp.gnome.org/pub/gnome/sources/gjs/1.63/gjs-1.63.1.news Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-gnome/recipes-gnome/gjs/gjs/0001-Disable-tests-on-host.patch33
-rw-r--r--meta-gnome/recipes-gnome/gjs/gjs_1.58.3.bb37
2 files changed, 70 insertions, 0 deletions
diff --git a/meta-gnome/recipes-gnome/gjs/gjs/0001-Disable-tests-on-host.patch b/meta-gnome/recipes-gnome/gjs/gjs/0001-Disable-tests-on-host.patch
new file mode 100644
index 0000000000..0953214fbf
--- /dev/null
+++ b/meta-gnome/recipes-gnome/gjs/gjs/0001-Disable-tests-on-host.patch
@@ -0,0 +1,33 @@
1From 95379de2132786f855e8caec1fd5869225774d02 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
3Date: Sat, 18 May 2019 01:14:07 +0200
4Subject: [PATCH] Disable tests on host
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Upstream-Status: Inappropriate [OE-specific]
10
11Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
12---
13 configure.ac | 4 +---
14 1 file changed, 1 insertion(+), 3 deletions(-)
15
16diff --git a/configure.ac b/configure.ac
17index fa4e136..056e96e 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -335,9 +335,7 @@ AS_IF([test "x$with_dbus_tests" != "xno"], [
21 ])
22 AM_CONDITIONAL([DBUS_TESTS], [test "x$with_dbus_tests" != "xno"])
23
24-AC_MSG_CHECKING([for a suitable UTF-8 locale to run the tests in])
25-TESTS_LOCALE=$($srcdir/build/choose-tests-locale.sh)
26-AC_MSG_RESULT([$TESTS_LOCALE])
27+TESTS_LOCALE=C
28 AC_SUBST([TESTS_LOCALE])
29
30 AC_SUBST([gjsjsdir], [\${datadir}/gjs-1.0])
31--
322.20.1
33
diff --git a/meta-gnome/recipes-gnome/gjs/gjs_1.58.3.bb b/meta-gnome/recipes-gnome/gjs/gjs_1.58.3.bb
new file mode 100644
index 0000000000..ddd5196b23
--- /dev/null
+++ b/meta-gnome/recipes-gnome/gjs/gjs_1.58.3.bb
@@ -0,0 +1,37 @@
1SUMMARY = "Javascript bindings for GNOME"
2LICENSE = "MIT & LGPLv2+"
3LIC_FILES_CHKSUM = " \
4 file://COPYING;md5=beb29cf17fabe736f0639b09ee6e76fa \
5 file://COPYING.LGPL;md5=3bf50002aefd002f49e7bb854063f7e7 \
6"
7
8GNOMEBASEBUILDCLASS = "autotools"
9
10DEPENDS = "mozjs gtk+3"
11
12inherit gnomebase gsettings gobject-introspection vala gettext features_check upstream-version-is-even
13
14SRC_URI[archive.md5sum] = "bce6dea9a6583a8b3c6af5854df76aaf"
15SRC_URI[archive.sha256sum] = "ca9fcd47b95ab0fc445301b2595e51fcea24d6f3cd87c190fe07006146d773ae"
16SRC_URI += "file://0001-Disable-tests-on-host.patch"
17
18# gobject-introspection is mandatory and cannot be configured
19REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
20UNKNOWN_CONFIGURE_WHITELIST_append = " --enable-introspection --disable-introspection"
21
22EXTRA_OECONF = " \
23 --without-dbus-tests \
24 --disable-installed-tests \
25"
26
27do_configure_prepend() {
28 # make configure find gobject-introspection test code. Although we set
29 # --disable-installed-tests gjs builds them
30 sed -i 's|:$GI_DATADIR|:${STAGING_DIR_NATIVE}$GI_DATADIR|g' ${S}/configure.ac
31}
32
33FILES_${PN} += "${datadir}/gjs-1.0/lsan"
34
35PACKAGES =+ "${PN}-valgrind"
36FILES_${PN}-valgrind = "${datadir}/gjs-1.0/valgrind"
37RSEPENDS_${PN}-valgrind += "valgrind"