diff --git a/srcpkgs/perl-Pango/patches/fix-pangocairo_libs.patch b/srcpkgs/perl-Pango/patches/fix-pangocairo_libs.patch new file mode 100644 index 00000000000..3f4faa0fc75 --- /dev/null +++ b/srcpkgs/perl-Pango/patches/fix-pangocairo_libs.patch @@ -0,0 +1,15 @@ +When constructing the $libs variable, there is a blank missing +before the -lpangocairo-1.0 coming from the pangocairo.pc through +pkg-config. Inserting an extra blank before the pkg-config +result fixes the issue. + +--- Makefile.PL 2014-02-19 05:13:50.000000000 +0100 ++++ Makefile.PL 2015-10-08 00:47:59.777157391 +0200 +@@ -161,6 +161,7 @@ + if ($have_cairo) { + push @deps, qw/Cairo/; + $inc .= $pangocairo_pkgcfg{cflags}; ++ $libs .= ' '; + $libs .= $pangocairo_pkgcfg{libs}; + } + diff --git a/srcpkgs/perl-Pango/template b/srcpkgs/perl-Pango/template index 9b269e7af4f..3166ee2652b 100644 --- a/srcpkgs/perl-Pango/template +++ b/srcpkgs/perl-Pango/template @@ -1,15 +1,21 @@ # Template build file for 'perl-Pango'. pkgname=perl-Pango version=1.226 -revision=3 +revision=4 wrksrc="Pango-$version" build_style=perl-module hostmakedepends="perl" makedepends="perl-ExtUtils-Depends perl-ExtUtils-PkgConfig perl-Glib perl-Cairo pango-devel" depends=" perl-Cairo>=1.000" short_desc="Perl bindings for Pango" -maintainer="Carlo Dormeletti " +maintainer="Carlo Dormeletti " homepage="http://gtk2-perl.sourceforge.net/" license="LGPL-2.1" distfiles="${SOURCEFORGE_SITE}/gtk2-perl/Pango-$version.tar.gz" checksum=9f7039bf79bca027009fdc2b0472ecf2d2e0e30227fb92c5ecd1c867dae99264 + +CFLAGS="-Wno-error -Wno-deprecated-declarations" + +pre_configure() { + sed -i Makefile.PL -e "/.*$libs \.= $pangocairo_pkgcfg{libs};/i $libs .= ' ';" +}