Skip to contentSkip to conversation

libsoup-2.4: make libsoup-gnome optional

PATCH New Andreas Oberritter 1 participant 1 message Mar 7, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libsoup-2.4: make libsoup-gnome optional

* Weakens dependency on libgnome-keyring and sqlite3
* Defaults to no if x11 is in DISTRO_FEATURES

---
 meta/recipes-support/libsoup/libsoup-2.4_2.40.2.bb |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
meta/recipes-support/libsoup/libsoup-2.4_2.40.2.bb +5 -2
index 9274f8c..53807af 100644
@@ -5,11 +5,14 @@ BUGTRACKER = "https://bugzilla.gnome.org/"
 LICENSE = "LGPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2"
 
-PR = "r0"
+PR = "r1"
 
 SECTION = "x11/gnome/libs"
 
-DEPENDS = "glib-2.0 gnutls libxml2 libproxy sqlite3 libgnome-keyring"
+DEPENDS = "glib-2.0 gnutls libxml2 libproxy"
+
+PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'gnome', '', d)}"
+PACKAGECONFIG[gnome] = "--with-gnome,--without-gnome,libgnome-keyring sqlite3"
 
 SHRT_VER = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}"
 SRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz"
Signature · 1 line
1.7.10.4