Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 May 2023 16:13:06 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 89746c2e8a10 - main - science/netcdf: Update to 4.9.2
Message-ID:  <202305071613.347GD61E039999@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

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

commit 89746c2e8a10590c3c3d26866f85a1955d42d682
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-05-07 16:03:17 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-05-07 16:03:17 +0000

    science/netcdf: Update to 4.9.2
    
    - Convert REINPLACE_CMD to patch file
    
    Changes:        https://github.com/Unidata/netcdf-c/releases
---
 science/netcdf/Makefile              | 10 +++-------
 science/netcdf/distinfo              |  6 +++---
 science/netcdf/files/patch-configure | 29 +++++++++++++++++++++++++++++
 science/netcdf/pkg-plist             |  2 +-
 4 files changed, 36 insertions(+), 11 deletions(-)

diff --git a/science/netcdf/Makefile b/science/netcdf/Makefile
index aaf9395bd61d..bdd098d707d4 100644
--- a/science/netcdf/Makefile
+++ b/science/netcdf/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	netcdf
-PORTVERSION=	4.9.0
+PORTVERSION=	4.9.2
 DISTVERSIONPREFIX=	c-
-PORTREVISION=	3
 CATEGORIES=	science
 MASTER_SITES=	https://downloads.unidata.ucar.edu/netcdf-c/${PORTVERSION}/ \
 		LOCAL/sunpoet
@@ -14,7 +13,8 @@ LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYRIGHT
 
 LIB_DEPENDS=	libcurl.so:ftp/curl \
-		libhdf5.so:science/hdf5
+		libhdf5.so:science/hdf5 \
+		libzstd.so:archivers/zstd
 
 USES=		gmake libtool localbase ncurses pathfix pkgconfig:run
 
@@ -40,10 +40,6 @@ DOXYGEN_CONFIGURE_ENABLE=	doxygen
 SZIP_LIB_DEPENDS=	libsz.so:science/libaec
 SZIP_LIBS=		-lsz
 
-post-patch:
-	@${REINPLACE_CMD} -e 's|-ldl ||g' ${WRKSRC}/configure
-	@${REINPLACE_CMD} -e '/ int fileno(FILE\*);/d' ${WRKSRC}/libdispatch/d*.c ${WRKSRC}/ncgen/ncgen* ${WRKSRC}/ncgen3/ncgen* ${WRKSRC}/oc2/ocdump.c
-
 post-build-DOXYGEN-on:
 	cd ${WRKSRC}/docs/ && ${LOCALBASE}/bin/doxygen .
 
diff --git a/science/netcdf/distinfo b/science/netcdf/distinfo
index 860d8bf11ee2..b16ec475946e 100644
--- a/science/netcdf/distinfo
+++ b/science/netcdf/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1655829816
-SHA256 (netcdf-c-4.9.0.tar.gz) = 4c956022b79c08e5e14eee8df51b13c28e6121c2b7e7faadc21b375949400b49
-SIZE (netcdf-c-4.9.0.tar.gz) = 7103958
+TIMESTAMP = 1683227589
+SHA256 (netcdf-c-4.9.2.tar.gz) = cf11babbbdb9963f09f55079e0b019f6d0371f52f8e1264a5ba8e9fdab1a6c48
+SIZE (netcdf-c-4.9.2.tar.gz) = 7142536
diff --git a/science/netcdf/files/patch-configure b/science/netcdf/files/patch-configure
new file mode 100644
index 000000000000..3c679e058432
--- /dev/null
+++ b/science/netcdf/files/patch-configure
@@ -0,0 +1,29 @@
+--- configure.orig	2023-03-14 20:35:12 UTC
++++ configure
+@@ -18321,7 +18321,7 @@ then :
+   printf %s "(cached) " >&6
+ else $as_nop
+   ac_check_lib_save_LIBS=$LIBS
+-LIBS="-ldl  $LIBS"
++LIBS="$LIBS"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
+ 
+@@ -18427,7 +18427,7 @@ then :
+   printf %s "(cached) " >&6
+ else $as_nop
+   ac_check_lib_save_LIBS=$LIBS
+-LIBS="-ldl  $LIBS"
++LIBS="$LIBS"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
+ 
+@@ -23316,7 +23316,7 @@ then :
+   printf %s "(cached) " >&6
+ else $as_nop
+   ac_check_lib_save_LIBS=$LIBS
+-LIBS="-ldl  $LIBS"
++LIBS="$LIBS"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
+ 
diff --git a/science/netcdf/pkg-plist b/science/netcdf/pkg-plist
index 8638bc41e23d..3ae918a1a42c 100644
--- a/science/netcdf/pkg-plist
+++ b/science/netcdf/pkg-plist
@@ -18,7 +18,7 @@ lib/libnetcdf.a
 lib/libnetcdf.settings
 lib/libnetcdf.so
 lib/libnetcdf.so.19
-lib/libnetcdf.so.19.1.0
+lib/libnetcdf.so.19.2.2
 libdata/pkgconfig/netcdf.pc
 man/man1/nccopy.1.gz
 man/man1/ncdump.1.gz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305071613.347GD61E039999>