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 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 5 | |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 6 | DEPENDS = "mozjs-115 cairo" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 7 | |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 8 | inherit gnomebase gsettings gobject-introspection gettext features_check upstream-version-is-even pkgconfig |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 9 | |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 10 | SRC_URI[archive.sha256sum] = "fbaa20e0917668830800f92951688f9fc08f01296affd5cdb4b35f750be27dc9" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 11 | SRC_URI += " \ |
| 12 | file://0001-Support-cross-builds-a-bit-better.patch \ |
| 13 | file://0002-meson.build-Do-not-add-dir-installed-tests-when-inst.patch \ |
| 14 | " |
| 15 | |
| 16 | # gobject-introspection is mandatory and cannot be configured |
| 17 | REQUIRED_DISTRO_FEATURES = "gobject-introspection-data" |
| 18 | GIR_MESON_OPTION = "" |
| 19 | |
| 20 | EXTRA_OEMESON = " \ |
| 21 | -Dinstalled_tests=false \ |
| 22 | -Dskip_dbus_tests=true \ |
| 23 | -Dskip_gtk_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" |