git: a8ac9839b153 - main - astro/p5-Astro-FITS-CFITSIO: Update to 1.16

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 31 Aug 2022 11:46:51 UTC
The branch main has been updated by sunpoet:

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

commit a8ac9839b15324b4e53e3c2d7bfb3bf7a8d5d7bc
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-08-31 11:26:52 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-08-31 11:41:42 +0000

    astro/p5-Astro-FITS-CFITSIO: Update to 1.16
    
    Changes:        https://metacpan.org/dist/Astro-FITS-CFITSIO/changes
---
 astro/p5-Astro-FITS-CFITSIO/Makefile               |  5 ++---
 astro/p5-Astro-FITS-CFITSIO/distinfo               |  6 +++---
 .../p5-Astro-FITS-CFITSIO/files/patch-Makefile.PL  | 22 +++++++++-------------
 3 files changed, 14 insertions(+), 19 deletions(-)

diff --git a/astro/p5-Astro-FITS-CFITSIO/Makefile b/astro/p5-Astro-FITS-CFITSIO/Makefile
index 2c2fea9c4687..8b4f575e6883 100644
--- a/astro/p5-Astro-FITS-CFITSIO/Makefile
+++ b/astro/p5-Astro-FITS-CFITSIO/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	Astro-FITS-CFITSIO
-PORTVERSION=	1.15
-PORTREVISION=	2
+PORTVERSION=	1.16
 CATEGORIES=	astro perl5
 MASTER_SITES=	CPAN
 PKGNAMEPREFIX=	p5-
@@ -13,7 +12,7 @@ LICENSE_COMB=	dual
 
 LIB_DEPENDS=	libcfitsio.so:astro/cfitsio
 
-USES=		perl5
+USES=		localbase perl5
 USE_PERL5=	configure
 
 CONFIGURE_ENV=	CFITSIO=${LOCALBASE}
diff --git a/astro/p5-Astro-FITS-CFITSIO/distinfo b/astro/p5-Astro-FITS-CFITSIO/distinfo
index d32945710642..bd5e45ee7fcf 100644
--- a/astro/p5-Astro-FITS-CFITSIO/distinfo
+++ b/astro/p5-Astro-FITS-CFITSIO/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1600863394
-SHA256 (Astro-FITS-CFITSIO-1.15.tar.gz) = 1f874d685466e24985c9d74c022cf0f1d7e26a94c9afe378cd0239811214c500
-SIZE (Astro-FITS-CFITSIO-1.15.tar.gz) = 355379
+TIMESTAMP = 1661599559
+SHA256 (Astro-FITS-CFITSIO-1.16.tar.gz) = 2c14e22a91dd871b330f2017a945928cae7b1eb076b7449e6ff483f4073079aa
+SIZE (Astro-FITS-CFITSIO-1.16.tar.gz) = 354531
diff --git a/astro/p5-Astro-FITS-CFITSIO/files/patch-Makefile.PL b/astro/p5-Astro-FITS-CFITSIO/files/patch-Makefile.PL
index b81c298f07d0..22108919f682 100644
--- a/astro/p5-Astro-FITS-CFITSIO/files/patch-Makefile.PL
+++ b/astro/p5-Astro-FITS-CFITSIO/files/patch-Makefile.PL
@@ -1,15 +1,11 @@
---- Makefile.PL.orig	2012-01-19 19:18:45 UTC
+--- Makefile.PL.orig	2022-06-24 16:40:06 UTC
 +++ Makefile.PL
-@@ -22,9 +22,9 @@ FOUND_IT: {
-     }
-   }
- 
--  warn("CFITSIO environment variable not found, assuming /usr/local/cfitsio\n");
--  $inc = "-I/usr/local/cfitsio";
--  $libs = "-L/usr/local/cfitsio -lcfitsio -lm";
-+  warn("CFITSIO environment variable not found, assuming /usr/local/include\n");
-+  $inc = "-I/usr/local/include";
-+  $libs = "-L/usr/local/include -lcfitsio -lm";
- 
- }
+@@ -1,7 +1,7 @@
+ use strict;
+ use warnings;
  
+-use Alien::Base::Wrapper 'WriteMakefile';
++use ExtUtils::MakeMaker;
+
+ # See lib/ExtUtils/MakeMaker.pm for details of how to influence
+ # the contents of the Makefile that is written.