mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-18 08:02:08 +00:00
Only docs would be installed as it wasn't propagating the failed configure test, so use a patch from the bug tracker but also fix that while at it. Signed-off-by: Sam James <sam@gentoo.org>
21 lines
541 B
Diff
21 lines
541 B
Diff
--- a/Build.PL
|
|
+++ b/Build.PL
|
|
@@ -1,7 +1,8 @@
|
|
use Module::Build;
|
|
use strict;
|
|
|
|
-my $CONFIG = "pkg-config imlib2";
|
|
+my $PKG_CONFIG = $ENV{PKG_CONFIG} || 'pkg-config';
|
|
+my $CONFIG = "${PKG_CONFIG} imlib2";
|
|
|
|
my $version = `$CONFIG --version`;
|
|
if (!$version) {
|
|
@@ -18,7 +19,7 @@ Alternatively, if you have downloaded and installed imlib2 and this
|
|
still will not work, modify the $CONFIG variable inside Build.PL to
|
|
point to the imlib2-config program that provides.
|
|
';
|
|
- exit 0;
|
|
+ exit 1;
|
|
} else {
|
|
print "Found imlib2 $version";
|
|
}
|