gthumb: Fix long path to perl in local intltools scripts
authorTom Rini <tom_rini@mentor.com>
Thu, 24 Feb 2011 19:39:17 +0000 (12:39 -0700)
committerTom Rini <tom_rini@mentor.com>
Thu, 24 Feb 2011 19:39:17 +0000 (12:39 -0700)
Signed-off-by: Tom Rini <tom_rini@mentor.com>
recipes/gthumb/gthumb_2.10.11.bb
recipes/gthumb/gthumb_2.6.9.bb

index 079e3bd..42dc02a 100644 (file)
@@ -7,7 +7,7 @@ inherit gnome
 
 SRC_URI += "file://pkg-config-hack.patch"
 
-PR = "r2"
+PR = "r3"
 
 FILES_${PN} += "${libdir}/*.so ${datadir}/gnome* ${datadir}/application-registry/*"
 FILES_${PN}-dbg += "${libdir}/gthumb/modules/.debug"
@@ -16,5 +16,10 @@ do_configure_prepend() {
        sed -i "s|HACK_STAGING_DIR_HOST|${STAGING_DIR_HOST}|" ${S}/add-include-prefix
 }
 
+do_configure_append() {
+       # replace paths to STAGING_BINDIR_NATIVE/perl with ${bindir}/perl
+       sed -i -e "1s:#!.*:#! /usr/bin/env perl:" ${S}/intltool*.in
+}
+
 SRC_URI[archive.md5sum] = "498c583800a05593f7493e8f27991c7d"
 SRC_URI[archive.sha256sum] = "68ac6835afdbe32cba09504b4d61ad4f5d98a97776bfb58698338add56eb520e"
index 3eb0661..b196342 100644 (file)
@@ -1,15 +1,17 @@
 DESCRIPTION = "gThumb is an image viewer and browser for the GNOME Desktop."
 LICENSE = "GPL"
-
 DEPENDS = "gtk+ libexif libgnome libgnomeui libgnomeprintui"
+PR = "r1"
 SRC_URI = "${SOURCEFORGE_MIRROR}/${PN}/${P}.tar.gz"
 
 inherit autotools pkgconfig
 
 FILES_${PN} += "${datadir}/gnome* ${datadir}/application-registry/*"
 
-
-
+do_configure_append() {
+       # replace paths to STAGING_BINDIR_NATIVE/perl with ${bindir}/perl
+       sed -i -e "1s:#!.*:#! /usr/bin/env perl:" ${S}/intltool*.in
+}
 
 SRC_URI[md5sum] = "2819ec911a7cc4f46b95240b65f2b3e2"
 SRC_URI[sha256sum] = "b02423f0dc9f82a3e1a56cfd470c1cee5d351654fdc55c1a3cd5cff150828b3c"