<pre style='margin:0'>
David B. Evans (dbevans) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/6f3f2f4db9442e70b9822ca19e711e039e679b5f">https://github.com/macports/macports-ports/commit/6f3f2f4db9442e70b9822ca19e711e039e679b5f</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 6f3f2f4db94 p5-image-imlib2: fix build with imlib2 1.11.1, dependencies
</span>6f3f2f4db94 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 6f3f2f4db9442e70b9822ca19e711e039e679b5f
</span>Author: David B. Evans <devans@macports.org>
AuthorDate: Thu Aug 24 23:02:04 2023 -0700
<span style='display:block; white-space:pre;color:#404040;'> p5-image-imlib2: fix build with imlib2 1.11.1, dependencies
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> * configure wants to use config-imlib2 but imlib2 now only supports pkg-config (patched)
</span><span style='display:block; white-space:pre;color:#404040;'> * patch tests
</span>---
perl/p5-image-imlib2/Portfile | 12 ++++++++++--
perl/p5-image-imlib2/files/fix_test.patch | 19 +++++++++++++++++++
perl/p5-image-imlib2/files/use_pkgconfig.patch | 15 +++++++++++++++
3 files changed, 44 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/perl/p5-image-imlib2/Portfile b/perl/p5-image-imlib2/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a8aa7f7025b..9a4ff67e6be 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/perl/p5-image-imlib2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/perl/p5-image-imlib2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,6 +5,7 @@ PortGroup perl5 1.0
</span>
perl5.branches 5.28 5.30 5.32 5.34
perl5.setup Image-Imlib2 2.03
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> license {Artistic-1 GPL}
maintainers nomaintainer
description Perl interface to the Imlib2 image library
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -23,11 +24,18 @@ long_description Image::Imlib2 is a Perl port of Imlib2, a graphics library t
</span> platforms darwin
checksums rmd160 0fe0e43733aef6e8e9c824756b0e0c0dc91d68a7 \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 97648385da1e9452fa9ee48f570020b45e449e5f11615320f39cb0b5c00951b0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 97648385da1e9452fa9ee48f570020b45e449e5f11615320f39cb0b5c00951b0 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 36014
</span>
if {${perl5.major} != ""} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- perl5.use_module_build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:pkgconfig
</span>
depends_lib-append \
port:imlib2
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles use_pkgconfig.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fix_test.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ perl5.use_module_build
</span> }
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/perl/p5-image-imlib2/files/fix_test.patch b/perl/p5-image-imlib2/files/fix_test.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..5b0dca3f484
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/perl/p5-image-imlib2/files/fix_test.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,19 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- t/simple.t.orig 2023-08-28 12:45:03
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ t/simple.t 2023-08-28 12:48:05
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,6 +1,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #!/usr/bin/perl -w
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use strict;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-use Test::More tests => 21;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++use Test::More tests => 20;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use_ok('Image::Imlib2');
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -65,7 +65,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ is( $cloned->get_height, 200 );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Is alpha on by default?
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-is( $cloned->has_alpha, 1 );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# is( $cloned->has_alpha, 1 );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # create a polygon
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ my $poly = Image::Imlib2::Polygon->new();
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/perl/p5-image-imlib2/files/use_pkgconfig.patch b/perl/p5-image-imlib2/files/use_pkgconfig.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..c17bc968092
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/perl/p5-image-imlib2/files/use_pkgconfig.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Build.PL.orig 2023-08-24 22:17:52
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Build.PL 2023-08-24 22:27:34
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -2,9 +2,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use strict;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # We need to find imlib2-config
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-my $CONFIG = "imlib2-config";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# Actually we need to use pkg-config
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++my $CONFIG = "pkg-config imlib2";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-my $version = `$CONFIG --version`;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++my $version = `$CONFIG --modversion`;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (!$version) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ warn 'You must install the imlib2 library before you can install
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Image::Imlib2. You can obtain imlib2 from
</span></pre><pre style='margin:0'>
</pre>