Motivation is to not install rest-demos by default.

Allow to build doc and vapi according to DISTRO_FEATURES

Signed-off-by: Markus Volk <f_...@t-online.de>
---
 meta-gnome/recipes-gnome/rest/rest_0.9.1.bb | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/meta-gnome/recipes-gnome/rest/rest_0.9.1.bb 
b/meta-gnome/recipes-gnome/rest/rest_0.9.1.bb
index 375417d5f..3a81a58f6 100644
--- a/meta-gnome/recipes-gnome/rest/rest_0.9.1.bb
+++ b/meta-gnome/recipes-gnome/rest/rest_0.9.1.bb
@@ -6,8 +6,6 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1"
 GNOMEBASEBUILDCLASS = "meson"
 
 DEPENDS = " \
-    gi-docgen \
-    gi-docgen-native \
     glib-2.0 \
     glib-2.0-native \
     gtksourceview5 \
@@ -17,6 +15,12 @@ DEPENDS = " \
     libxml2-native \
 "
 
-inherit gnomebase gobject-introspection vala pkgconfig
+inherit gnomebase gobject-introspection vala pkgconfig gi-docgen
+
+EXTRA_OEMESON = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', 
'-Dvapi=true', '-Dvapi=false', d)}"
+
+PACKAGECONFIG ?= ""
+PACKAGECONFIG[examples] = "-Dexamples=true,-Dexamples=false"
+PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false"
 
 SRC_URI[archive.sha256sum] = 
"9266a5c10ece383e193dfb7ffb07b509cc1f51521ab8dad76af96ed14212c2e3"
-- 
2.42.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#106439): 
https://lists.openembedded.org/g/openembedded-devel/message/106439
Mute This Topic: https://lists.openembedded.org/mt/102438849/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to