python-pygobject-native 2.20: fix configure and convert to new-style staging
authorKoen Kooi <koen@openembedded.org>
Mon, 15 Feb 2010 10:15:38 +0000 (11:15 +0100)
committerKoen Kooi <koen@openembedded.org>
Mon, 15 Feb 2010 10:15:38 +0000 (11:15 +0100)
recipes/python/python-pygobject-native_2.20.0.bb

index 918ffa2..409481c 100644 (file)
@@ -1,11 +1,11 @@
 require python-pygobject_${PV}.bb
 
+inherit native
+
 DEPENDS = "python-native glib-2.0-native"
 
 PARALLEL_MAKE = ""
 
-inherit native
-
 SRC_URI = "\
   ftp://ftp.gnome.org/pub/GNOME/sources/pygobject/${MAJ_VER}/pygobject-${PV}.tar.bz2 \
 #  file://python-path.patch;patch=1 \
@@ -13,7 +13,11 @@ SRC_URI = "\
 
 export GOBJECT_INTROSPECTION_CFLAGS="-pthread -I${STAGING_INCDIR}/gobject-introspection-1.0 -I${STAGING_INCDIR}/glib-2.0 -I${STAGING_LIBDIR}/glib-2.0/include"
 
-do_stage_append() {
-       install -d ${STAGING_BINDIR}
-       install -m 0755 gobject/generate-constants ${STAGING_BINDIR}/gobject-generate-constants
+do_configure_prepend() {
+       unset PYTHONPATH
+}
+
+do_install_append() {
+       install -d ${D}${bindir}
+       install -m 0755 gobject/generate-constants ${D}${bindir}/gobject-generate-constants
 }