git: b979dc6a5de1 - main - graphics/p5-Geo-GDAL-FFI: Update to 0.12

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 06 Jul 2024 16:18:17 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b979dc6a5de130117dbf0176b3398b08331b461a

commit b979dc6a5de130117dbf0176b3398b08331b461a
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-07-06 16:02:43 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-07-06 16:02:43 +0000

    graphics/p5-Geo-GDAL-FFI: Update to 0.12
    
    - Use USES=dos2unix to convert CRLF to LF
    
    Changes:        https://metacpan.org/dist/Geo-GDAL-FFI/changes
---
 graphics/p5-Geo-GDAL-FFI/Makefile                | 12 +++++-----
 graphics/p5-Geo-GDAL-FFI/distinfo                |  6 ++---
 graphics/p5-Geo-GDAL-FFI/files/patch-Makefile.PL | 28 ++++++++----------------
 graphics/p5-Geo-GDAL-FFI/pkg-plist               |  1 -
 4 files changed, 17 insertions(+), 30 deletions(-)

diff --git a/graphics/p5-Geo-GDAL-FFI/Makefile b/graphics/p5-Geo-GDAL-FFI/Makefile
index 5374c1d59a9f..8b2c6cf89e44 100644
--- a/graphics/p5-Geo-GDAL-FFI/Makefile
+++ b/graphics/p5-Geo-GDAL-FFI/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	Geo-GDAL-FFI
-PORTVERSION=	0.11
-PORTREVISION=	1
+PORTVERSION=	0.12
 CATEGORIES=	graphics perl5
 MASTER_SITES=	CPAN
 PKGNAMEPREFIX=	p5-
@@ -19,16 +18,15 @@ RUN_DEPENDS=	p5-FFI-Platypus>=0:devel/p5-FFI-Platypus \
 		p5-Sort-Versions>=0:devel/p5-Sort-Versions \
 		PDL>=0:math/PDL
 TEST_DEPENDS=	p5-JSON>=0:converters/p5-JSON \
-		p5-Test-Exception>=0:devel/p5-Test-Exception
+		p5-Path-Tiny>=0:devel/p5-Path-Tiny \
+		p5-Test-Exception>=0:devel/p5-Test-Exception \
+		p5-Test-TempDir-Tiny>=0:devel/p5-Test-TempDir-Tiny
 
-USES=		perl5
+USES=		dos2unix perl5
 USE_PERL5=	configure
 
 NO_ARCH=	yes
 
 PORTSCOUT=	skipv:0.0501,0.0502,0.0503,0.0601
 
-post-patch:
-	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/Makefile.PL
-
 .include <bsd.port.mk>
diff --git a/graphics/p5-Geo-GDAL-FFI/distinfo b/graphics/p5-Geo-GDAL-FFI/distinfo
index 4dc3019487c2..739b34255ae7 100644
--- a/graphics/p5-Geo-GDAL-FFI/distinfo
+++ b/graphics/p5-Geo-GDAL-FFI/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1713033322
-SHA256 (Geo-GDAL-FFI-0.11.tar.gz) = 743946ad177bb089703887e24418b857af2263c6b9e507ad1913849241ca4863
-SIZE (Geo-GDAL-FFI-0.11.tar.gz) = 52230
+TIMESTAMP = 1720022746
+SHA256 (Geo-GDAL-FFI-0.12.tar.gz) = 318223323b15c927cd657cb44556bd0658e5da2f1d04a3cc5cc0231b7b46baa2
+SIZE (Geo-GDAL-FFI-0.12.tar.gz) = 53610
diff --git a/graphics/p5-Geo-GDAL-FFI/files/patch-Makefile.PL b/graphics/p5-Geo-GDAL-FFI/files/patch-Makefile.PL
index 7796ec64ae94..d40e846f0221 100644
--- a/graphics/p5-Geo-GDAL-FFI/files/patch-Makefile.PL
+++ b/graphics/p5-Geo-GDAL-FFI/files/patch-Makefile.PL
@@ -1,27 +1,17 @@
---- Makefile.PL.orig	2023-07-10 15:20:31 UTC
+--- Makefile.PL.orig	2024-06-12 01:27:26 UTC
 +++ Makefile.PL
-@@ -13,7 +13,7 @@ BEGIN {
-     if ($gdal ne 'Alien::gdal' or $@) {
-         if ($gdal eq 'Alien::gdal') {
-             print "I can't find Alien::gdal.\n";
--            $gdal = '/usr';
-+            $gdal = '%%LOCALBASE%%';
-         }
-         print "Trying GDAL from '$gdal'.\n";
-         $have_alien = 0;
-@@ -61,7 +61,6 @@ use Config;
+@@ -13,14 +13,12 @@ my %args = (
      VERSION_FROM => "lib/Geo/GDAL/FFI.pm",
      LICENSE => "artistic_2",
      CONFIGURE_REQUIRES => {
--        Alien::gdal => 0,
+-        'Alien::gdal' => 0,
      },
      PREREQ_PM => {
-         PkgConfig => 0.23026,
-@@ -69,7 +68,6 @@ use Config;
-         FFI::Platypus::Declare => 0,
-         PDL => 0,
-         Sort::Versions => 0,
--        Alien::gdal => 0,
+         'PkgConfig' => 0.23026,
+         'FFI::Platypus' => 0,
+         'PDL' => 0,
+         'Sort::Versions' => 0,
+-        'Alien::gdal' => 0,
      },
      TEST_REQUIRES => {
-         'Test::More' => 0,
+         'Test::More'          => 0,
diff --git a/graphics/p5-Geo-GDAL-FFI/pkg-plist b/graphics/p5-Geo-GDAL-FFI/pkg-plist
index 300294b4a8f3..73e8e5ceecc6 100644
--- a/graphics/p5-Geo-GDAL-FFI/pkg-plist
+++ b/graphics/p5-Geo-GDAL-FFI/pkg-plist
@@ -12,7 +12,6 @@
 %%SITE_PERL%%/Geo/GDAL/FFI/SpatialReference.pm
 %%SITE_PERL%%/Geo/GDAL/FFI/VSI.pm
 %%SITE_PERL%%/Geo/GDAL/FFI/VSI/File.pm
-%%SITE_PERL%%/Geo/GDAL/gdal.pm
 %%PERL5_MAN3%%/Geo::GDAL::FFI.3.gz
 %%PERL5_MAN3%%/Geo::GDAL::FFI::Band.3.gz
 %%PERL5_MAN3%%/Geo::GDAL::FFI::Dataset.3.gz