]> code.ossystems Code Review - openembedded-core.git/commitdiff
gnome-doc-utils: Update to use python-native
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Jul 2012 16:19:10 +0000 (17:19 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 22 Jul 2012 10:40:10 +0000 (11:40 +0100)
This includes a wrapper so that the full path to python-native is encoded whilst not
exceeding any environment length constraints as hinted at in the patch to this area
of code already included.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-gnome/gnome/gnome-doc-utils.inc

index 08333db975c7549fdef07bb2afb7a51fdd1f616d..b2570d6fd6269d74a0699e81cacc9facba374ba5 100644 (file)
@@ -2,7 +2,7 @@ LICENSE = "GPLv2 & LGPLv2.1"
 DEPENDS = "libxml2 libxslt libxslt-native gnome-doc-utils-native glib-2.0"
 DEPENDS_virtclass-native = "libxml2-native libxslt-native intltool-native glib-2.0-native"
 
-inherit gnome gettext python-dir
+inherit gnome gettext python-dir pythonnative
 
 EXTRA_OECONF += "--disable-scrollkeeper"
 
@@ -13,6 +13,10 @@ do_install_append() {
        chown -R root:root ${D}
 }
 
+do_install_append_class-native () {
+       create_wrapper ${D}${bindir}/xml2po ${STAGING_BINDIR_NATIVE}/python-native/python
+}
+
 FILES_${PN} += "${datadir}/xml* ${PYTHON_SITEPACKAGES_DIR}/*"
 
 RDEPENDS_${PN} = "bash"