aboutsummaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2013-12-29 19:41:17 +0800
committerwg <wg@FreeBSD.org>2013-12-29 19:41:17 +0800
commitfc156bbf777a920fb254fe2423d4e90e8e9ebf1c (patch)
tree11ddf0619e076668c96926c0a4b59cf06680bae9 /science
parent892146467a57fdb12bb3b873f73e923215d094fb (diff)
downloadfreebsd-ports-gnome-fc156bbf777a920fb254fe2423d4e90e8e9ebf1c.tar.gz
freebsd-ports-gnome-fc156bbf777a920fb254fe2423d4e90e8e9ebf1c.tar.zst
freebsd-ports-gnome-fc156bbf777a920fb254fe2423d4e90e8e9ebf1c.zip
science/py-netCDF4: support staging
Diffstat (limited to 'science')
-rw-r--r--science/py-netCDF4/Makefile26
1 files changed, 6 insertions, 20 deletions
diff --git a/science/py-netCDF4/Makefile b/science/py-netCDF4/Makefile
index 516f1a865176..cd7f1a05eab5 100644
--- a/science/py-netCDF4/Makefile
+++ b/science/py-netCDF4/Makefile
@@ -13,7 +13,6 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Python Interface to the NetCDF Library (versions 3 and 4)
LICENSE= MIT
-LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${PYNUMPY}
LIB_DEPENDS= hdf5:${PORTSDIR}/science/hdf5-18 \
@@ -26,6 +25,7 @@ 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 \
@@ -33,17 +33,7 @@ MAKE_ENV= HDF5_INCDIR=${LOCALBASE}/include \
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
-
-NO_STAGE= yes
+
.include <bsd.port.options.mk>
post-patch:
@@ -51,13 +41,9 @@ post-patch:
"/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
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC}/docs && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR})
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ (cd ${WRKSRC}/examples && ${INSTALL_DATA} * ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>