gentoo-ebuilds/dev-perl/Image-Imlib2/files/Image-Imlib2-2.30.0-r2-respect-PKG_CONFIG-and-error.patch
Sam James 4a5d0cd274
dev-perl/Image-Imlib2: adapt to imlib2 dropping imlib2-config
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>
2024-01-03 11:29:07 +00:00

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