Patchwork libproxy: Allow to build in non-gplv3 configuration

login
register
mail settings
Submitter Richard Purdie
Date April 17, 2012, 1:07 p.m.
Message ID <1334668072.616.88.camel@ted>
Download mbox | patch
Permalink /patch/26057/
State Accepted
Commit 89788fbd10fdfbbe54927339d7ec516d0e4d7ef5
Headers show

Comments

Richard Purdie - April 17, 2012, 1:07 p.m.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/meta/recipes-support/libproxy/libproxy_0.4.7.bb b/meta/recipes-support/libproxy/libproxy_0.4.7.bb
index 2cb8ed3..11b2abf 100644
--- a/meta/recipes-support/libproxy/libproxy_0.4.7.bb
+++ b/meta/recipes-support/libproxy/libproxy_0.4.7.bb
@@ -29,3 +29,9 @@  do_configure_prepend() {
 	export HOST_SYS=${HOST_SYS}
 	export BUILD_SYS=${BUILD_SYS}
 }
+
+python() {
+    if (d.getVar("INCOMPATIBLE_LICENSE", True) or "").find("GPLv3") != -1:
+        d.setVar("EXTRA_OECMAKE", d.getVar("EXTRA_OECMAKE").replace("-DWITH_GNOME=yes", "-DWITH_GNOME=no"))
+        d.setVar("DEPENDS", " ".join(i for i in d.getVar("DEPENDS").split() if i != "gconf"))
+}