summaryrefslogtreecommitdiffstats
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:16 +0000
commitcbfa29cda670222928ca692406114839c5e41e0c (patch)
treefb035fb02e27fdfb166370c40f397a1168390efe
parent0ed002422bc46539f1d71ed19ee17358b6691bf0 (diff)
downloadopenembedded-core-contrib-cbfa29cda670222928ca692406114839c5e41e0c.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. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 \
file://0001-json-glib-json-enum-types.c.in-fix-build-reproducibi.patch"
SRC_URI[archive.sha256sum] = "0d7c67602c4161ea7070fab6c5823afd9bd7f7bc955f652a50d3753b08494e73"
+PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
PACKAGECONFIG[manpages] = "-Dman=true,-Dman=false,libxslt-native xmlto-native"
-
-do_install_append() {
- if ! ${@bb.utils.contains('PTEST_ENABLED', '1', 'true', 'false', d)}; then
- rm -rf ${D}${datadir}/installed-tests ${D}${libexecdir}
- fi
-}
+PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false"
BBCLASSEXTEND = "native nativesdk"