From 5cca5af6d34350f9a7ecb16f604adcb225d7f32d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Sun, 16 Jan 2022 22:36:56 +0100 Subject: [PATCH] cjs: initial add 5.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- recipes-cinnamon/cjs/cjs.bb | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 recipes-cinnamon/cjs/cjs.bb diff --git a/recipes-cinnamon/cjs/cjs.bb b/recipes-cinnamon/cjs/cjs.bb new file mode 100644 index 0000000..160cf49 --- /dev/null +++ b/recipes-cinnamon/cjs/cjs.bb @@ -0,0 +1,36 @@ +SUMMARY = "TThe Cinnamon Javascript interpreter" +LICENSE = "GPLv2 & LGPLv2" +LIC_FILES_CHKSUM = " \ + file://COPYING;md5=beb29cf17fabe736f0639b09ee6e76fa \ + file://COPYING.LGPL;md5=3bf50002aefd002f49e7bb854063f7e7 \ +" + +DEPENDS = " \ + dbus-native \ + glib-2.0-native \ + gtk+3 \ + mozjs-78 \ + sysprof \ +" + +inherit meson pkgconfig gobject-introspection features_check gettext + +REQUIRED_DISTRO_FEATURES = "x11 gobject-introspection-data" +GIR_MESON_OPTION = "" + +SRC_URI = "git://github.com/linuxmint/cjs.git;branch=master;protocol=https" +SRCREV = "b73665be7781a34e4da3bfbfb5fa853a76edbf9c" +PV = "5.2.0" +S = "${WORKDIR}/git" + +EXTRA_OEMESON += " \ + -Dinstalled_tests=false \ + -Dskip_dbus_tests=true \ + -Dskip_gtk_tests=true \ +" + +do_configure:prepend() { + sed -i 's:gidatadir =.*:gidatadir = '"'"'${STAGING_DATADIR_NATIVE}/gobject-introspection-1.0'"'"':g' ${S}/installed-tests/js/meson.build +} + +FILES:${PN} += "${datadir}/cjs-1.0"