diff options
author | miwi <miwi@FreeBSD.org> | 2014-05-17 17:54:02 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2014-05-17 17:54:02 +0800 |
commit | ef3773edadd26fc9aa4293f7714b20df086a6e11 (patch) | |
tree | 53bcd020bc510c8be164d4fd4f68235d92e5ac33 /science | |
parent | f1a01ec3a24397e0d144dacb9034531d696c5966 (diff) | |
download | freebsd-ports-gnome-ef3773edadd26fc9aa4293f7714b20df086a6e11.tar.gz freebsd-ports-gnome-ef3773edadd26fc9aa4293f7714b20df086a6e11.tar.zst freebsd-ports-gnome-ef3773edadd26fc9aa4293f7714b20df086a6e11.zip |
- Update to 1.0.8
- Support GITHUB
PR: 187745
Submitted by: Ports Fury
Diffstat (limited to 'science')
-rw-r--r-- | science/py-netCDF4/Makefile | 35 | ||||
-rw-r--r-- | science/py-netCDF4/distinfo | 4 | ||||
-rw-r--r-- | science/py-netCDF4/pkg-descr | 2 |
3 files changed, 24 insertions, 17 deletions
diff --git a/science/py-netCDF4/Makefile b/science/py-netCDF4/Makefile index 098e0f26c7c1..a5f7fc84aa8d 100644 --- a/science/py-netCDF4/Makefile +++ b/science/py-netCDF4/Makefile @@ -2,11 +2,9 @@ # $FreeBSD$ PORTNAME= netCDF4 -PORTVERSION= 1.0.5 -PORTREVISION= 4 +PORTVERSION= 1.0.8 CATEGORIES= science python -MASTER_SITES= GOOGLE_CODE -PROJECTHOST= netcdf4-python +MASTER_SITES= GH PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= ports@FreeBSD.org @@ -19,26 +17,35 @@ LIB_DEPENDS= libhdf5.so:${PORTSDIR}/science/hdf5 \ libnetcdf.so:${PORTSDIR}/science/netcdf RUN_DEPENDS= ${PYNUMPY} -OPTIONS_DEFINE= DOCS EXAMPLES +USE_GITHUB= yes +GH_ACCOUNT= Unidata +GH_PROJECT= netcdf4-python +GH_TAGNAME= v${PORTVERSION}rel +GH_COMMIT= 1344040 -USES= dos2unix -DOS2UNIX_FILES= utils/nc3tonc4 USE_PYTHON= yes USE_PYDISTUTILS= yes PYDISTUTILS_AUTOPLIST= yes -MAKE_ENV= HDF5_INCDIR=${LOCALBASE}/include \ - HDF5_LIBDIR=${LOCALBASE}/lib \ - NETCDF4_INCDIR=${LOCALBASE}/include \ - NETCDF4_LIBDIR=${LOCALBASE}/lib + +DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} +EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} PORTDOCS= * PORTEXAMPLES= * -.include <bsd.port.options.mk> +OPTIONS_DEFINE= DOCS EXAMPLES post-patch: - @${REINPLACE_CMD} -e \ - "/dirstosearch/s|=.*|= ['${LOCALBASE}']|" ${WRKSRC}/setup.py + @${ECHO_CMD} -n > ${WRKSRC}/setup.cfg + @${ECHO_CMD} "[options]" >> ${WRKSRC}/setup.cfg + @${ECHO_CMD} "use_ncconfig=True" >> ${WRKSRC}/setup.cfg + @${ECHO_CMD} "ncconfig=${LOCALBASE}/bin/nc-config" \ + >> ${WRKSRC}/setup.cfg + @${ECHO_CMD} "[directories]" >> ${WRKSRC}/setup.cfg + @${ECHO_CMD} "HDF5_libdir=${LOCALBASE}/lib" \ + >> ${WRKSRC}/setup.cfg + @${ECHO_CMD} "HDF5_incdir=${LOCALBASE}/include" \ + >> ${WRKSRC}/setup.cfg post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} diff --git a/science/py-netCDF4/distinfo b/science/py-netCDF4/distinfo index c085019c7f46..d61ab4638d8a 100644 --- a/science/py-netCDF4/distinfo +++ b/science/py-netCDF4/distinfo @@ -1,2 +1,2 @@ -SHA256 (netCDF4-1.0.5.tar.gz) = a87751f85d823c22727183c78f8f20d83569399dc73c4bb30a247063756e46bd -SIZE (netCDF4-1.0.5.tar.gz) = 538945 +SHA256 (netCDF4-1.0.8.tar.gz) = cc6582011ff2937a4c6250e6df1fd9b33f15c18ae74bace0f519503d1402df66 +SIZE (netCDF4-1.0.8.tar.gz) = 571836 diff --git a/science/py-netCDF4/pkg-descr b/science/py-netCDF4/pkg-descr index 063de97d95ba..5a31e3053dc2 100644 --- a/science/py-netCDF4/pkg-descr +++ b/science/py-netCDF4/pkg-descr @@ -11,4 +11,4 @@ primitive data types (such as 64 bit and unsigned integer types) are implemented, except variable-length strings (NC_STRING). User defined data types (compound, vlen, enum etc.) are not supported. -WWW: http://code.google.com/p/netcdf4-python/ +WWW: http://unidata.github.io/netcdf4-python/ |