git: 57c617781dd1 - main - science/py-netCDF4: Update version 1.3.1=>1.5.7

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 10 Oct 2021 15:33:13 UTC
The branch main has been updated by bofh:

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

commit 57c617781dd1a1fd04acefc15dcf2391bf8960a8
Author:     Wen Heping <wen@FreeBSD.org>
AuthorDate: 2021-10-10 15:31:35 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2021-10-10 15:32:52 +0000

    science/py-netCDF4: Update version 1.3.1=>1.5.7
    
    PR: 259042
    Reported by: wen
    Relnotes: https://github.com/Unidata/netcdf4-python/releases/tag/v1.5.7rel
---
 science/py-netCDF4/Makefile | 11 +++++------
 science/py-netCDF4/distinfo |  6 +++---
 2 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/science/py-netCDF4/Makefile b/science/py-netCDF4/Makefile
index e44276c807a2..2b75363c2277 100644
--- a/science/py-netCDF4/Makefile
+++ b/science/py-netCDF4/Makefile
@@ -1,10 +1,9 @@
 # Created by: Wen Heping <wenheping@gmail.com>
 
 PORTNAME=	netCDF4
-PORTVERSION=	1.3.1
+PORTVERSION=	1.5.7
 DISTVERSIONPREFIX=	v
 DISTVERSIONSUFFIX=	rel
-PORTREVISION=	8
 CATEGORIES=	science python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -16,13 +15,14 @@ LICENSE=	MIT
 BUILD_DEPENDS=	${PYNUMPY}
 LIB_DEPENDS=	libhdf5.so:science/hdf5 \
 		libnetcdf.so:science/netcdf
-RUN_DEPENDS=	${PYNUMPY}
-
-OPTIONS_DEFINE=	DOCS EXAMPLES
+RUN_DEPENDS=	${PYNUMPY} \
+		${PYTHON_PKGNAMEPREFIX}cftime>=0:devel/py-cftime@${PY_FLAVOR}
 
 USES=		python:3.6+
 USE_PYTHON=	autoplist concurrent distutils cython cython_run
 
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
 DOCSDIR=	${PREFIX}/share/doc/py-${PORTNAME}
 EXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}
 PORTDOCS=	*
@@ -43,7 +43,6 @@ post-patch:
 
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/netCDF4/_netCDF4*.so
-	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/netcdftime/_netcdftime*.so
 
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
diff --git a/science/py-netCDF4/distinfo b/science/py-netCDF4/distinfo
index 0bbda07c52e6..de1a2e66e634 100644
--- a/science/py-netCDF4/distinfo
+++ b/science/py-netCDF4/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1515614706
-SHA256 (Unidata-netcdf4-python-v1.3.1rel_GH0.tar.gz) = a1674d281d54af9dd83e38f1be2dabed7de0f1bc8165adcd39c8dfddc4ec20b4
-SIZE (Unidata-netcdf4-python-v1.3.1rel_GH0.tar.gz) = 554411
+TIMESTAMP = 1633879759
+SHA256 (Unidata-netcdf4-python-v1.5.7rel_GH0.tar.gz) = 5673896d1d39d591423abbd4856270cc901b88bdbeaf4ab293bfd7cfd77fe8d5
+SIZE (Unidata-netcdf4-python-v1.5.7rel_GH0.tar.gz) = 797425