perl-Pango: fix linker error due to missing blank

Closes #2705
This commit is contained in:
Jürgen Buchmüller 2015-10-08 00:52:14 +02:00
parent afe1fb40c8
commit 087cebfbb3
2 changed files with 23 additions and 2 deletions

View file

@ -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};
}

View file

@ -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 <carloDOTdormelettiATaliceDOTit>"
maintainer="Carlo Dormeletti <carloDOTdormeletti@aliceDOTit>"
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 .= ' ';"
}