aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
Diffstat (limited to 'recipes')
-rw-r--r--recipes/geda/geda-gattrib_1.4.3.bb12
1 files changed, 9 insertions, 3 deletions
diff --git a/recipes/geda/geda-gattrib_1.4.3.bb b/recipes/geda/geda-gattrib_1.4.3.bb
index 1bd339394a..02f96b0697 100644
--- a/recipes/geda/geda-gattrib_1.4.3.bb
+++ b/recipes/geda/geda-gattrib_1.4.3.bb
@@ -5,9 +5,15 @@ PR = "r1"
DEPENDS = "gtk+ libgeda"
-SRC_URI = "http://geda.seul.org/release/v1.4/${PV}/${P}.tar.gz \
- ${@['file://gattrib-gtk218.patch;patch=1', ''][bb.data.getVar('PREFERRED_VERSION_gtk+', d, 1) and bb.data.getVar('PREFERRED_VERSION_gtk+', d, 1).split('.')[0] <= '2' and bb.data.getVar('PREFERRED_VERSION_gtk+', d, 1).split('.')[1] < '18']}"
-
+SRC_URI = "http://geda.seul.org/release/v1.4/${PV}/${P}.tar.gz"
inherit autotools pkgconfig
EXTRA_OECONF = "--disable-update-desktop-database"
+
+do_patch_prepend() {
+ import bb
+ if bb.data.getVar('PREFERRED_VERSION_gtk+', d, 1) and
+ bb.data.getVar('PREFERRED_VERSION_gtk+', d, 1).split('.')[0] <= '2' and
+ bb.data.getVar('PREFERRED_VERSION_gtk+', d, 1).split('.')[1] < '18':
+ SRC_URI_append = "file://gattrib-gtk218.patch;patch=1"
+}