python-pygobject 2.20: convert to new style staging
authorKoen Kooi <koen@openembedded.org>
Thu, 15 Apr 2010 10:29:09 +0000 (12:29 +0200)
committerKoen Kooi <koen@openembedded.org>
Thu, 15 Apr 2010 11:00:51 +0000 (13:00 +0200)
recipes/python/python-pygobject_2.20.0.bb

index bd283cb..ecad36b 100644 (file)
@@ -4,6 +4,8 @@ LICENSE = "LGPL"
 DEPENDS = "libffi python-pygobject-native-${PV}"
 PE = "1"
 
+PR = "r1"
+
 MAJ_VER = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}"
 
 SRC_URI = "\
@@ -22,12 +24,11 @@ export HOST_SYS
 
 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() {
-       autotools_stage_all
-       install -d ${STAGING_LIBDIR}/../share/pygobject/
-       cp -dpfR docs/* ${STAGING_LIBDIR}/../share/pygobject/
-       install -d ${STAGING_LIBDIR}/../share/gtk-doc/html/pygobject/
-       cp docs/style.css ${STAGING_LIBDIR}/../share/gtk-doc/html/pygobject/
+do_install_append() {
+       install -d ${D}${datadir}/pygobject/
+       cp -dpfR docs/* ${D}${datadir}/pygobject/
+       install -d ${D}${datadir}/gtk-doc/html/pygobject/
+       cp docs/style.css ${D}${datadir}/gtk-doc/html/pygobject/
 }
 
 PACKAGES += "${PN}-lib"