pkgsrc-Changes archive

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

CVS commit: pkgsrc/graphics/p5-Image-Imlib2



Module Name:    pkgsrc
Committed By:   rin
Date:           Fri Jul 29 05:59:41 UTC 2022

Modified Files:
        pkgsrc/graphics/p5-Image-Imlib2: Makefile distinfo
Added Files:
        pkgsrc/graphics/p5-Image-Imlib2/patches: patch-Build.PL

Log Message:
graphics/p5-Image-Imlib2: Fix for graphics/imlib2 update

Switch to `pkg-config imlib2`.

Bump revision.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 pkgsrc/graphics/p5-Image-Imlib2/Makefile
cvs rdiff -u -r1.10 -r1.11 pkgsrc/graphics/p5-Image-Imlib2/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/p5-Image-Imlib2/patches/patch-Build.PL

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/p5-Image-Imlib2/Makefile
diff -u pkgsrc/graphics/p5-Image-Imlib2/Makefile:1.54 pkgsrc/graphics/p5-Image-Imlib2/Makefile:1.55
--- pkgsrc/graphics/p5-Image-Imlib2/Makefile:1.54       Tue Jun 28 11:34:05 2022
+++ pkgsrc/graphics/p5-Image-Imlib2/Makefile    Fri Jul 29 05:59:41 2022
@@ -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 @@ HOMEPAGE=     https://metacpan.org/release/I
 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

Index: pkgsrc/graphics/p5-Image-Imlib2/distinfo
diff -u pkgsrc/graphics/p5-Image-Imlib2/distinfo:1.10 pkgsrc/graphics/p5-Image-Imlib2/distinfo:1.11
--- pkgsrc/graphics/p5-Image-Imlib2/distinfo:1.10       Tue Oct 26 10:46:37 2021
+++ pkgsrc/graphics/p5-Image-Imlib2/distinfo    Fri Jul 29 05:59:41 2022
@@ -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

Added files:

Index: pkgsrc/graphics/p5-Image-Imlib2/patches/patch-Build.PL
diff -u /dev/null pkgsrc/graphics/p5-Image-Imlib2/patches/patch-Build.PL:1.1
--- /dev/null   Fri Jul 29 05:59:41 2022
+++ pkgsrc/graphics/p5-Image-Imlib2/patches/patch-Build.PL      Fri Jul 29 05:59:41 2022
@@ -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