From: Andrea Adami Date: Mon, 13 Dec 2010 22:28:39 +0000 (+0100) Subject: python-pygtksourceview: hack around PKG_CONFIG issues and unbreak build X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a7c6815cfaa9e5b706132fd92a5eae1aaf85782;p=openembedded.git 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 --- diff --git a/recipes/python/python-pygtksourceview_2.6.0.bb b/recipes/python/python-pygtksourceview_2.6.0.bb index b5361affef..01e110f8bb 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"