git: 1a93495aed95 - main - astro/cfitsio: Update to 4.5.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 08 Sep 2024 18:42:15 UTC
The branch main has been updated by sunpoet:

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

commit 1a93495aed955a7029c7cfac2ebaf8dfe25645e6
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-09-08 18:16:07 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-09-08 18:36:57 +0000

    astro/cfitsio: Update to 4.5.0
    
    - Clean up MASTER_SITES
    - Update WWW
    - Use USES=pathfix to fix .pc installation
    
    Changes:        https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/docs/changes.txt
---
 astro/cfitsio/Makefile  | 26 ++++++++------------------
 astro/cfitsio/distinfo  |  6 +++---
 astro/cfitsio/pkg-plist | 13 ++++++++++++-
 3 files changed, 23 insertions(+), 22 deletions(-)

diff --git a/astro/cfitsio/Makefile b/astro/cfitsio/Makefile
index d161788d0bde..57e9aa05c823 100644
--- a/astro/cfitsio/Makefile
+++ b/astro/cfitsio/Makefile
@@ -1,29 +1,27 @@
 PORTNAME=	cfitsio
-PORTVERSION=	4.4.1
+PORTVERSION=	4.5.0
 CATEGORIES=	astro
 MASTER_SITES=	https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/ \
 		https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/oldvers/ \
-		ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/ \
-		ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/oldvers/ \
 		LOCAL/sunpoet
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Library for reading and writing files in FITS data format
-WWW=		https://heasarc.gsfc.nasa.gov/docs/software/fitsio/
+WWW=		https://heasarc.gsfc.nasa.gov/fitsio/ \
+		https://github.com/HEASARC/cfitsio
 
 LICENSE=	CFITSIO
 LICENSE_NAME=	CFITSIO License
 LICENSE_FILE=	${WRKSRC}/licenses/License.txt
 LICENSE_PERMS=	auto-accept dist-mirror dist-sell pkg-mirror pkg-sell
 
-LIB_DEPENDS=	libcurl.so:ftp/curl \
-		libf2c.so:lang/f2c
+LIB_DEPENDS=	libcurl.so:ftp/curl
 
-USES=		cpe localbase pkgconfig
+USES=		cpe libtool localbase pathfix pkgconfig
 
-ALL_TARGET=	libcfitsio.a shared
-CONFIGURE_ARGS=	ac_cv_prog_FC=f2c --enable-reentrant --with-bzip2=/usr
+CONFIGURE_ARGS=	--enable-reentrant --with-bzip2=/usr
 GNU_CONFIGURE=	yes
+INSTALL_TARGET=	install-strip
 USE_LDCONFIG=	yes
 
 PLIST_SUB=	PORTVERSION=${PORTVERSION}
@@ -32,16 +30,8 @@ CPE_VENDOR=	nasa
 
 OPTIONS_DEFINE=	DOCS
 
-do-install:
-	cd ${WRKSRC}/ && ${INSTALL_DATA} drvrsmem.h fitsio.h fitsio2.h longnam.h ${STAGEDIR}${PREFIX}/include/
-	${INSTALL_DATA} ${WRKSRC}/libcfitsio.a ${STAGEDIR}${PREFIX}/lib/
-	${INSTALL_LIB} ${WRKSRC}/libcfitsio.so.10.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/
-	${INSTALL_DATA} ${WRKSRC}/cfitsio.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/
-	${LN} -fs libcfitsio.so.10.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libcfitsio.so.10
-	${LN} -fs libcfitsio.so.10.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libcfitsio.so
-
 do-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}/
-	${INSTALL_DATA} ${WRKSRC}/docs/changes.txt ${WRKSRC}/docs/*.pdf ${STAGEDIR}${DOCSDIR}/
+	${INSTALL_DATA} ${WRKSRC}/docs/*.pdf ${STAGEDIR}${DOCSDIR}/
 
 .include <bsd.port.mk>
diff --git a/astro/cfitsio/distinfo b/astro/cfitsio/distinfo
index b5d165636141..d6c615cc2b61 100644
--- a/astro/cfitsio/distinfo
+++ b/astro/cfitsio/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1718784539
-SHA256 (cfitsio-4.4.1.tar.gz) = 66a1dc3f21800f9eeabd9eac577b91fcdd9aabba678fbba3b8527319110d1d25
-SIZE (cfitsio-4.4.1.tar.gz) = 4308170
+TIMESTAMP = 1725559549
+SHA256 (cfitsio-4.5.0.tar.gz) = e4854fc3365c1462e493aa586bfaa2f3d0bb8c20b75a524955db64c27427ce09
+SIZE (cfitsio-4.5.0.tar.gz) = 4648097
diff --git a/astro/cfitsio/pkg-plist b/astro/cfitsio/pkg-plist
index b56ae236e14f..828aed9a3b6f 100644
--- a/astro/cfitsio/pkg-plist
+++ b/astro/cfitsio/pkg-plist
@@ -1,14 +1,25 @@
+bin/cookbook
+bin/fitscopy
+bin/fitsverify
+bin/fpack
+bin/funpack
+bin/imcopy
+bin/smem
+bin/speed
+include/cfortran.h
 include/drvrsmem.h
+include/f77_wrap.h
 include/fitsio.h
 include/fitsio2.h
 include/longnam.h
+include/region.h
 lib/libcfitsio.a
 lib/libcfitsio.so
 lib/libcfitsio.so.10
+lib/libcfitsio.so.10.0.0
 lib/libcfitsio.so.10.%%PORTVERSION%%
 libdata/pkgconfig/cfitsio.pc
 %%PORTDOCS%%%%DOCSDIR%%/cfitsio.pdf
-%%PORTDOCS%%%%DOCSDIR%%/changes.txt
 %%PORTDOCS%%%%DOCSDIR%%/fitsio.pdf
 %%PORTDOCS%%%%DOCSDIR%%/fpackguide.pdf
 %%PORTDOCS%%%%DOCSDIR%%/quick.pdf