pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/p5-Image-Imlib2 graphics/p5-Image-Imlib2: Fix...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0077f4fa766f
branches:  trunk
changeset: 382459:0077f4fa766f
user:      rin <rin%pkgsrc.org@localhost>
date:      Fri Jul 29 05:59:41 2022 +0000

description:
graphics/p5-Image-Imlib2: Fix for graphics/imlib2 update

Switch to `pkg-config imlib2`.

Bump revision.

diffstat:

 graphics/p5-Image-Imlib2/Makefile               |   9 ++++---
 graphics/p5-Image-Imlib2/distinfo               |   3 +-
 graphics/p5-Image-Imlib2/patches/patch-Build.PL |  31 +++++++++++++++++++++++++
 3 files changed, 38 insertions(+), 5 deletions(-)

diffs (73 lines):

diff -r 4562db65e19a -r 0077f4fa766f graphics/p5-Image-Imlib2/Makefile
--- a/graphics/p5-Image-Imlib2/Makefile Fri Jul 29 05:58:10 2022 +0000
+++ b/graphics/p5-Image-Imlib2/Makefile Fri Jul 29 05:59:41 2022 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.54 2022/06/28 11:34:05 wiz Exp $
+# $NetBSD: Makefile,v 1.55 2022/07/29 05:59:41 rin Exp $
 #
 
 DISTNAME=      Image-Imlib2-2.03
 PKGNAME=       p5-${DISTNAME}
-PKGREVISION=   20
+PKGREVISION=   21
 CATEGORIES=    graphics perl5
 MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=Image/}
 
@@ -12,8 +12,9 @@
 COMMENT=       Interface to the Imlib2 image library
 LICENSE=       ${PERL5_LICENSE}
 
-# versions before that contained a broken imlib2-config
-BUILDLINK_API_DEPENDS.imlib2+= imlib2>=1.2.0nb2
+USE_TOOLS+=    pkg-config
+
+BUILDLINK_API_DEPENDS.imlib2+= imlib2>=1.9.1
 
 PERL5_PACKLIST=                auto/Image/Imlib2/.packlist
 PERL5_MODULE_TYPE=     Module::Build
diff -r 4562db65e19a -r 0077f4fa766f graphics/p5-Image-Imlib2/distinfo
--- a/graphics/p5-Image-Imlib2/distinfo Fri Jul 29 05:58:10 2022 +0000
+++ b/graphics/p5-Image-Imlib2/distinfo Fri Jul 29 05:59:41 2022 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.10 2021/10/26 10:46:37 nia Exp $
+$NetBSD: distinfo,v 1.11 2022/07/29 05:59:41 rin Exp $
 
 BLAKE2s (Image-Imlib2-2.03.tar.gz) = d653ce509965d4932ba146db8f63d79d39ef85f9ce5a75e40831675f2fc18a2d
 SHA512 (Image-Imlib2-2.03.tar.gz) = d38eba0da1d9fe46244400454f55d2d4d682a7aff78c123c01476c14f30de3fc4699a1f926fc82fea09341f0577f943d82fe73cd40225bc69a06e1c710383d60
 Size (Image-Imlib2-2.03.tar.gz) = 36014 bytes
+SHA1 (patch-Build.PL) = 6774f510512aa8a5a483fd6d956a397b4f2756c9
diff -r 4562db65e19a -r 0077f4fa766f graphics/p5-Image-Imlib2/patches/patch-Build.PL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/p5-Image-Imlib2/patches/patch-Build.PL   Fri Jul 29 05:59:41 2022 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-Build.PL,v 1.1 2022/07/29 05:59:41 rin Exp $
+
+Switch to `pkg-config imlib2`.
+
+--- Build.PL.orig      2022-07-29 03:28:43.811840721 +0900
++++ Build.PL   2022-07-29 03:29:38.258526933 +0900
+@@ -1,10 +1,10 @@
+ use Module::Build;
+ use strict;
+ 
+-# We need to find imlib2-config
+-my $CONFIG = "imlib2-config";
++# We need to find pkg-config
++my $CONFIG = "pkg-config";
+ 
+-my $version = `$CONFIG --version`;
++my $version = `$CONFIG imlib2 --modversion`;
+ if (!$version) {
+   warn 'You must install the imlib2 library before you can install
+ Image::Imlib2. You can obtain imlib2 from
+@@ -19,8 +19,8 @@
+   print "Found imlib2 $version";
+ }
+ 
+-my $libs = `$CONFIG --libs`;
+-my $cflags = "-DX_DISPLAY_MISSING " . `$CONFIG --cflags`;
++my $libs = `$CONFIG imlib2 --libs`;
++my $cflags = "-DX_DISPLAY_MISSING " . `$CONFIG imlib2 --cflags`;
+ 
+ my $build = Module::Build->new(
+   c_source     => './lib/Image',



Home | Main Index | Thread Index | Old Index