[oe-commits] Andrea Adami : python-pygtksourceview: hack around PKG_CONFIG issues and unbreak build

git version control git at git.openembedded.org
Mon Dec 13 23:31:54 UTC 2010


Module: openembedded.git
Branch: master
Commit: 4a7c6815cfaa9e5b706132fd92a5eae1aaf85782
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=4a7c6815cfaa9e5b706132fd92a5eae1aaf85782

Author: Andrea Adami <andrea.adami at gmail.com>
Date:   Mon Dec 13 23:28:39 2010 +0100

python-pygtksourceview: hack around PKG_CONFIG issues and unbreak build

* temporarly apply same fix (sed) used in python-pygtk
* | checking for pygtk codegen... /usr/share/pygobject/2.0/codegen
* | no
* | configure: error: Error: codegen not found (should be shipped with pygtk!)
* fix packaging of gtksourceview2.defs
* bump PR

Signed-off-by: Andrea Adami <andrea.adami at gmail.com>

---

 recipes/python/python-pygtksourceview_2.6.0.bb |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/recipes/python/python-pygtksourceview_2.6.0.bb b/recipes/python/python-pygtksourceview_2.6.0.bb
index b5361af..01e110f 100644
--- a/recipes/python/python-pygtksourceview_2.6.0.bb
+++ b/recipes/python/python-pygtksourceview_2.6.0.bb
@@ -5,7 +5,7 @@ PRIORITY = "optional"
 DEPENDS = "gtksourceview2 python-pygtk"
 SRCNAME = "pygtksourceview"
 LICENSE = "LGPL"
-PR = "r0"
+PR = "r1"
 
 MAJ_VER = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}"
 SRC_URI = "ftp://ftp.gnome.org/pub/gnome/sources/pygtksourceview/${MAJ_VER}/${SRCNAME}-${PV}.tar.bz2"
@@ -14,8 +14,13 @@ S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit autotools pkgconfig distutils-base
 
-EXTRA_OECONF += "--with-python-includes=${STAGING_INCDIR}/../"
+do_configure_prepend() {
+	sed -i \
+		-e s:'`$PKG_CONFIG --variable=codegendir pygtk-2.0`':\"${STAGING_DATADIR}/pygobject/2.0/codegen\":g \
+		${S}/configure.ac
+}
 
+FILES_${PN} += "${datadir}/pygtk/2.0/defs/gtksourceview2.defs"
 
 SRC_URI[md5sum] = "5587a1865bd5c785c6f34095c57cc96b"
 SRC_URI[sha256sum] = "77acb735fee997a1638c79256b9dcf592566d066b54a72eb4321909f98f66178"





More information about the Openembedded-commits mailing list