Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | SUMMARY = "Javascript bindings for GNOME" |
| 2 | LICENSE = "MIT & LGPL-2.0-or-later" |
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=8dcea832f6acf45d856abfeb2d51ec48" |
| 4 | |
| 5 | GNOMEBASEBUILDCLASS = "meson" |
| 6 | |
| 7 | DEPENDS = "mozjs-78 gtk4" |
| 8 | |
| 9 | inherit gnomebase gsettings gobject-introspection vala gettext features_check upstream-version-is-even pkgconfig |
| 10 | |
| 11 | SRC_URI[archive.sha256sum] = "4b0629341a318a02374e113ab97f9a9f3325423269fc1e0b043a5ffb01861c5f" |
| 12 | SRC_URI += " \ |
| 13 | file://0001-Support-cross-builds-a-bit-better.patch \ |
| 14 | file://0002-meson.build-Do-not-add-dir-installed-tests-when-inst.patch \ |
| 15 | " |
| 16 | |
| 17 | # gobject-introspection is mandatory and cannot be configured |
| 18 | REQUIRED_DISTRO_FEATURES = "gobject-introspection-data" |
| 19 | GIR_MESON_OPTION = "" |
| 20 | |
| 21 | EXTRA_OEMESON = " \ |
| 22 | -Dinstalled_tests=false \ |
| 23 | -Dskip_dbus_tests=true \ |
| 24 | " |
| 25 | |
| 26 | LDFLAGS:append:mipsarch = " -latomic" |
| 27 | LDFLAGS:append:powerpc = " -latomic" |
| 28 | LDFLAGS:append:powerpc64 = " -latomic" |
| 29 | LDFLAGS:append:riscv32 = " -latomic" |
| 30 | |
| 31 | FILES:${PN} += "${datadir}/gjs-1.0/lsan" |
| 32 | |
| 33 | PACKAGES =+ "${PN}-valgrind" |
| 34 | FILES:${PN}-valgrind = "${datadir}/gjs-1.0/valgrind" |
| 35 | RDEPENDS:${PN}-valgrind += "valgrind" |
| 36 | |
| 37 | # Valgrind not yet available on rv32/rv64 |
| 38 | RDEPENDS:${PN}-valgrind:remove:riscv32 = "valgrind" |
| 39 | RDEPENDS:${PN}-valgrind:remove:riscv64 = "valgrind" |