Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [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-102 cairo" |
| 8 | |
| 9 | inherit gnomebase gsettings gobject-introspection vala gettext features_check upstream-version-is-even pkgconfig |
| 10 | |
| 11 | SRC_URI[archive.sha256sum] = "81dcdf49d2665d08fa7e251700ea36466d77877418e9186d3a7e7efcd31aa960" |
| 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 | -Dskip_gtk_tests=true \ |
| 25 | " |
| 26 | |
| 27 | LDFLAGS:append:mipsarch = " -latomic" |
| 28 | LDFLAGS:append:powerpc = " -latomic" |
| 29 | LDFLAGS:append:powerpc64 = " -latomic" |
| 30 | LDFLAGS:append:riscv32 = " -latomic" |
| 31 | |
| 32 | FILES:${PN} += "${datadir}/gjs-1.0/lsan" |
| 33 | |
| 34 | PACKAGES =+ "${PN}-valgrind" |
| 35 | FILES:${PN}-valgrind = "${datadir}/gjs-1.0/valgrind" |
| 36 | RDEPENDS:${PN}-valgrind += "valgrind" |
| 37 | |
| 38 | # Valgrind not yet available on rv32/rv64 |
| 39 | RDEPENDS:${PN}-valgrind:remove:riscv32 = "valgrind" |
| 40 | RDEPENDS:${PN}-valgrind:remove:riscv64 = "valgrind" |