summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-10-01 16:39:49 +0100
committerJoshua Lock <josh@linux.intel.com>2010-10-01 16:47:38 +0100
commitdf07008f56676b2fe4dd64e565303d21a6770ed6 (patch)
treec709a79502a24c345e07dd21e2edc5eeae63b7e8
parentce5e891d51eac0ed2615294c7bd25eedd5650de2 (diff)
downloadpoky-df07008f56676b2fe4dd64e565303d21a6770ed6.tar.gz
python-pygtk: Use correct paths at build time
Fix the paths in configure.ac to use the target libraries and generators for building pygtk. Fix taken from OE. Thanks to Gary Thomas for providing a first stab at this. Signed-off-by: Joshua Lock <josh@linux.intel.com>
-rw-r--r--meta/recipes-devtools/python/python-pygtk_2.17.0.bb10
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python-pygtk_2.17.0.bb b/meta/recipes-devtools/python/python-pygtk_2.17.0.bb
index ef63b51038..3dcfd64a9d 100644
--- a/meta/recipes-devtools/python/python-pygtk_2.17.0.bb
+++ b/meta/recipes-devtools/python/python-pygtk_2.17.0.bb
@@ -6,7 +6,7 @@ RDEPENDS = "python-shell python-pycairo python-pygobject"
6PROVIDES = "python-pygtk2" 6PROVIDES = "python-pygtk2"
7SRCNAME = "pygtk" 7SRCNAME = "pygtk"
8LICENSE = "LGPL" 8LICENSE = "LGPL"
9PR = "ml8.2" 9PR = "ml8.3"
10 10
11SRC_URI = "ftp://ftp.gnome.org/pub/gnome/sources/pygtk/2.17/${SRCNAME}-${PV}.tar.bz2 \ 11SRC_URI = "ftp://ftp.gnome.org/pub/gnome/sources/pygtk/2.17/${SRCNAME}-${PV}.tar.bz2 \
12 file://fix-gtkunixprint.patch \ 12 file://fix-gtkunixprint.patch \
@@ -21,6 +21,14 @@ inherit autotools pkgconfig distutils-base
21 21
22do_configure_prepend() { 22do_configure_prepend() {
23 install -m 0644 ${WORKDIR}/acinclude.m4 ${S}/ 23 install -m 0644 ${WORKDIR}/acinclude.m4 ${S}/
24 sed -i \
25 -e s:'`$PKG_CONFIG --variable defsdir pygobject-2.0`':\"${STAGING_DATADIR}/pygobject/2.0/defs\":g \
26 -e s:'`$PKG_CONFIG --variable=pygtkincludedir pygobject-2.0`':\"${STAGING_INCDIR}/pygtk-2.0\":g \
27 -e s:'`$PKG_CONFIG --variable=datadir pygobject-2.0`':\"${STAGING_DATADIR}\":g \
28 -e s:'`$PKG_CONFIG --variable codegendir pygobject-2.0`':\"${STAGING_DATADIR}/pygobject/2.0/codegen\":g \
29 -e s:'`$PKG_CONFIG --variable=fixxref pygobject-2.0`':\"${STAGING_DATADIR}/pygobject/xsl/fixxref.py\":g \
30 ${S}/configure.ac
31 sed -i 's:tests docs:tests:' Makefile.am
24} 32}
25 33
26# dirty fix #1: remove dependency on python-pygobject-dev 34# dirty fix #1: remove dependency on python-pygobject-dev