1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

- Update to version 1.0.4

PR:		177915
Submitted by:	Ports Fury
This commit is contained in:
Martin Wilke 2013-04-30 00:39:35 +00:00
parent 85f578720f
commit 65990273d0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=316858
3 changed files with 45 additions and 23 deletions

View File

@ -2,25 +2,59 @@
# $FreeBSD$
PORTNAME= netCDF4
PORTVERSION= 1.0.2
PORTVERSION= 1.0.4
CATEGORIES= science python
MASTER_SITES= http://netcdf4-python.googlecode.com/files/ \
CHEESESHOP
MASTER_SITES= GOOGLE_CODE
PROJECTHOST= netcdf4-python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Python Interface to the NetCDF Library(versions 3 and 4)
COMMENT= Python Interface to the NetCDF Library (versions 3 and 4)
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy
RUN_DEPENDS:= ${BUILD_DEPENDS}
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${PYNUMPY}
LIB_DEPENDS= hdf5:${PORTSDIR}/science/hdf5-18 \
netcdf:${PORTSDIR}/science/netcdf4
RUN_DEPENDS= ${PYNUMPY}
USE_PYTHON= 2.5+
OPTIONS_DEFINE= DOCS EXAMPLES
USE_DOS2UNIX= utils/nc3tonc4
USE_PYTHON= yes
USE_PYDISTUTILS= yes
MAKE_ENV= HDF5_INCDIR=${LOCALBASE}/include \
HDF5_LIBDIR=${LOCALBASE}/lib \
NETCDF4_INCDIR=${LOCALBASE}/include \
NETCDF4_LIBDIR=${LOCALBASE}/lib
PORTDOCS= *
PORTEXAMPLES= *
PLIST_FILES= bin/nc3tonc4 \
bin/nc4tonc3 \
%%PYTHON_SITELIBDIR%%/netCDF4.so \
%%PYTHON_SITELIBDIR%%/netCDF4_utils.py \
%%PYTHON_SITELIBDIR%%/netCDF4_utils.pyc \
%%PYTHON_SITELIBDIR%%/netCDF4_utils.pyo \
%%PYTHON_SITELIBDIR%%/netcdftime.py \
%%PYTHON_SITELIBDIR%%/netcdftime.pyc \
%%PYTHON_SITELIBDIR%%/netcdftime.pyo
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's#/usr/local#${LOCALBASE}#g' \
${WRKSRC}/setup.py
@${REINPLACE_CMD} -e \
"/dirstosearch/s|=.*|= ['${LOCALBASE}']|" ${WRKSRC}/setup.py
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
(cd ${WRKSRC}/docs && ${INSTALL_DATA} * ${DOCSDIR})
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
(cd ${WRKSRC}/examples && ${INSTALL_DATA} * ${EXAMPLESDIR})
.endif
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (netCDF4-1.0.2.tar.gz) = 76af3918112fbd254d07f073376d4364b3538ab0fdde47a453f1e10f612f6223
SIZE (netCDF4-1.0.2.tar.gz) = 490900
SHA256 (netCDF4-1.0.4.tar.gz) = 99f5eaebae2fae92759d13b790dde4226b2b8c83a68f86543c41c7998cba53b7
SIZE (netCDF4-1.0.4.tar.gz) = 521990

View File

@ -1,12 +0,0 @@
bin/nc4tonc3
bin/nc3tonc4
%%PYTHON_SITELIBDIR%%/netCDF4_utils.py
%%PYTHON_SITELIBDIR%%/netCDF4_utils.pyc
%%PYTHON_SITELIBDIR%%/netCDF4_utils.pyo
%%PYTHON_SITELIBDIR%%/netCDF4.so
%%PYTHON_SITELIBDIR%%/netcdftime.py
%%PYTHON_SITELIBDIR%%/netcdftime.pyc
%%PYTHON_SITELIBDIR%%/netcdftime.pyo
%%PYTHON_SITELIBDIR%%/ordereddict.py
%%PYTHON_SITELIBDIR%%/ordereddict.pyc
%%PYTHON_SITELIBDIR%%/ordereddict.pyo