Import math/py-netcdf4, a Python interface to the netCDF C library.
OK benoit@ earlier version input by sthen@ and kmos@
This commit is contained in:
parent
fec1b6d629
commit
be8e458848
52
math/py-netcdf4/Makefile
Normal file
52
math/py-netcdf4/Makefile
Normal file
@ -0,0 +1,52 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2020/02/09 18:45:25 martin Exp $
|
||||
|
||||
COMMENT= Python interface to the netCDF C library
|
||||
|
||||
MODPY_EGG_VERSION= 1.5.3
|
||||
DISTNAME= netCDF4-${MODPY_EGG_VERSION}
|
||||
PKGNAME= py-${DISTNAME:L}
|
||||
CATEGORIES= math
|
||||
|
||||
HOMEPAGE= http://unidata.github.io/netcdf4-python/
|
||||
|
||||
MAINTAINER= Martin Reindl <martin@catai.org>
|
||||
|
||||
# BSD-like
|
||||
PERMIT_PACKAGE= Yes
|
||||
|
||||
MODULES= lang/python
|
||||
MODPY_SETUPTOOLS= Yes
|
||||
MODPY_PI= Yes
|
||||
MODPY_VERSION= ${MODPY_DEFAULT_VERSION_3}
|
||||
|
||||
PORT_HOME= ${WRKDIR}
|
||||
|
||||
WANTLIB+= netcdf hdf5 hdf5_hl pthread ${MODPY_WANTLIB}
|
||||
|
||||
LIB_DEPENDS= math/netcdf \
|
||||
math/hdf5
|
||||
|
||||
BUILD_DEPENDS+= lang/cython${MODPY_FLAVOR} \
|
||||
math/hdf5 \
|
||||
math/netcdf \
|
||||
math/py-numpy${MODPY_FLAVOR}
|
||||
|
||||
RUN_DEPENDS+= lang/cython${MODPY_FLAVOR} \
|
||||
math/hdf5 \
|
||||
math/netcdf \
|
||||
math/py-numpy${MODPY_FLAVOR} \
|
||||
math/py-cftime
|
||||
|
||||
TEST_DEPENDS= ${FULLPKGNAME}:${FULLPKGPATH}
|
||||
TEST_ENV= TMPDIR=${WRKDIR}/tmp
|
||||
|
||||
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib" \
|
||||
CPPFLAGS="-I${LOCALBASE}/include"
|
||||
|
||||
pre-test:
|
||||
@mkdir -p ${WRKDIR}/tmp
|
||||
|
||||
do-test:
|
||||
@cd ${WRKSRC}/test && ${SETENV} ${ALL_TEST_ENV} ${MODPY_BIN} run_all.py
|
||||
|
||||
.include <bsd.port.mk>
|
2
math/py-netcdf4/distinfo
Normal file
2
math/py-netcdf4/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (netCDF4-1.5.3.tar.gz) = KjyoVYSPS78H+sNm2nemgfzq0YwKiBPZHUYwL1Ytw74=
|
||||
SIZE (netCDF4-1.5.3.tar.gz) = 790343
|
8
math/py-netcdf4/pkg/DESCR
Normal file
8
math/py-netcdf4/pkg/DESCR
Normal file
@ -0,0 +1,8 @@
|
||||
netcdf4-python is a Python interface to the netCDF C library.
|
||||
|
||||
netCDF version 4 has many features not found in earlier versions
|
||||
of the library and is implemented on top of HDF5. This module can
|
||||
read and write files in both the new netCDF 4 and the old netCDF 3
|
||||
format, and can create files that are readable by HDF5 clients. The
|
||||
API is modelled after Scientific.IO.NetCDF, and should be familiar
|
||||
to users of that module.
|
18
math/py-netcdf4/pkg/PLIST
Normal file
18
math/py-netcdf4/pkg/PLIST
Normal file
@ -0,0 +1,18 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2020/02/09 18:45:25 martin Exp $
|
||||
bin/nc3tonc4
|
||||
bin/nc4tonc3
|
||||
bin/ncinfo
|
||||
lib/python${MODPY_VERSION}/site-packages/netCDF4/
|
||||
lib/python${MODPY_VERSION}/site-packages/netCDF4-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
|
||||
lib/python${MODPY_VERSION}/site-packages/netCDF4-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
|
||||
lib/python${MODPY_VERSION}/site-packages/netCDF4-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/netCDF4-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/netCDF4-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/entry_points.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/netCDF4-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/netCDF4-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/netCDF4/__init__.py
|
||||
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/netCDF4/${MODPY_PYCACHE}/
|
||||
lib/python${MODPY_VERSION}/site-packages/netCDF4/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/netCDF4/${MODPY_PYCACHE}utils.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
@so lib/python${MODPY_VERSION}/site-packages/netCDF4/_netCDF4.so
|
||||
lib/python${MODPY_VERSION}/site-packages/netCDF4/utils.py
|
Loading…
Reference in New Issue
Block a user