From e32e279b32efbf92fd1aff1bd423dbbd730f0918 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 4 Nov 2020 12:12:15 +0000 Subject: 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 Signed-off-by: Richard Purdie --- meta/recipes-gnome/json-glib/json-glib_1.6.0.bb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'meta/recipes-gnome') 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" -- cgit v1.2.3-54-g00ecf