summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/json-glib
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2020-11-04 12:12:15 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-11-08 14:03:20 +0000
commite32e279b32efbf92fd1aff1bd423dbbd730f0918 (patch)
tree7b0740de41ed0e6b9cf845e11c235703798e4827 /meta/recipes-gnome/json-glib
parent7183f0712cf8e1fde5d7742d7044a44337a57d7c (diff)
downloadpoky-e32e279b32efbf92fd1aff1bd423dbbd730f0918.tar.gz
json-glib: use PACKAGECONFIG for tests
json-glib 1.6 has an option to enable or disable the tests, so use that instead of a do_install_append. (From OE-Core rev: cbfa29cda670222928ca692406114839c5e41e0c) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome/json-glib')
-rw-r--r--meta/recipes-gnome/json-glib/json-glib_1.6.0.bb8
1 files changed, 2 insertions, 6 deletions
diff --git a/meta/recipes-gnome/json-glib/json-glib_1.6.0.bb b/meta/recipes-gnome/json-glib/json-glib_1.6.0.bb
index 82f983f3c5..59b0609900 100644
--- a/meta/recipes-gnome/json-glib/json-glib_1.6.0.bb
+++ b/meta/recipes-gnome/json-glib/json-glib_1.6.0.bb
@@ -23,13 +23,9 @@ SRC_URI += "file://run-ptest \
23 file://0001-json-glib-json-enum-types.c.in-fix-build-reproducibi.patch" 23 file://0001-json-glib-json-enum-types.c.in-fix-build-reproducibi.patch"
24SRC_URI[archive.sha256sum] = "0d7c67602c4161ea7070fab6c5823afd9bd7f7bc955f652a50d3753b08494e73" 24SRC_URI[archive.sha256sum] = "0d7c67602c4161ea7070fab6c5823afd9bd7f7bc955f652a50d3753b08494e73"
25 25
26PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
26PACKAGECONFIG[manpages] = "-Dman=true,-Dman=false,libxslt-native xmlto-native" 27PACKAGECONFIG[manpages] = "-Dman=true,-Dman=false,libxslt-native xmlto-native"
27 28PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false"
28do_install_append() {
29 if ! ${@bb.utils.contains('PTEST_ENABLED', '1', 'true', 'false', d)}; then
30 rm -rf ${D}${datadir}/installed-tests ${D}${libexecdir}
31 fi
32}
33 29
34BBCLASSEXTEND = "native nativesdk" 30BBCLASSEXTEND = "native nativesdk"
35 31