View | Details | Raw Unified | Return to bug 177915
Collapse All | Expand All

(-)science/py-netCDF4/Makefile (-9 / +43 lines)
Lines 2-26 Link Here
2
# $FreeBSD: head/science/py-netCDF4/Makefile 307818 2012-11-27 03:28:28Z bdrewery $
2
# $FreeBSD: head/science/py-netCDF4/Makefile 307818 2012-11-27 03:28:28Z bdrewery $
3
3
4
PORTNAME=	netCDF4
4
PORTNAME=	netCDF4
5
PORTVERSION=	1.0.2
5
PORTVERSION=	1.0.4
6
CATEGORIES=	science python
6
CATEGORIES=	science python
7
MASTER_SITES=	http://netcdf4-python.googlecode.com/files/ \
7
MASTER_SITES=	GOOGLE_CODE
8
		CHEESESHOP
8
PROJECTHOST=	netcdf4-python
9
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
9
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
10
10
11
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=	ports@FreeBSD.org
12
COMMENT=	Python Interface to the NetCDF Library(versions 3 and 4)
12
COMMENT=	Python Interface to the NetCDF Library (versions 3 and 4)
13
13
14
BUILD_DEPENDS=	${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy
14
LICENSE=	MIT
15
RUN_DEPENDS:=	${BUILD_DEPENDS}
15
LICENSE_FILE=	${WRKSRC}/COPYING
16
17
BUILD_DEPENDS=	${PYNUMPY}
16
LIB_DEPENDS=	hdf5:${PORTSDIR}/science/hdf5-18 \
18
LIB_DEPENDS=	hdf5:${PORTSDIR}/science/hdf5-18 \
17
		netcdf:${PORTSDIR}/science/netcdf4
19
		netcdf:${PORTSDIR}/science/netcdf4
20
RUN_DEPENDS=	${PYNUMPY}
21
22
OPTIONS_DEFINE=	DOCS EXAMPLES
18
23
19
USE_PYTHON=	2.5+
24
USE_DOS2UNIX=	utils/nc3tonc4
25
USE_PYTHON=	yes
20
USE_PYDISTUTILS=	yes
26
USE_PYDISTUTILS=	yes
27
MAKE_ENV=	HDF5_INCDIR=${LOCALBASE}/include \
28
		HDF5_LIBDIR=${LOCALBASE}/lib \
29
		NETCDF4_INCDIR=${LOCALBASE}/include \
30
		NETCDF4_LIBDIR=${LOCALBASE}/lib
31
32
PORTDOCS=	*
33
PORTEXAMPLES=	*
34
PLIST_FILES=	bin/nc3tonc4 \
35
		bin/nc4tonc3 \
36
		%%PYTHON_SITELIBDIR%%/netCDF4.so \
37
		%%PYTHON_SITELIBDIR%%/netCDF4_utils.py \
38
		%%PYTHON_SITELIBDIR%%/netCDF4_utils.pyc \
39
		%%PYTHON_SITELIBDIR%%/netCDF4_utils.pyo \
40
		%%PYTHON_SITELIBDIR%%/netcdftime.py \
41
		%%PYTHON_SITELIBDIR%%/netcdftime.pyc \
42
		%%PYTHON_SITELIBDIR%%/netcdftime.pyo
43
44
.include <bsd.port.options.mk>
21
45
22
post-patch:
46
post-patch:
23
	@${REINPLACE_CMD} -e 's#/usr/local#${LOCALBASE}#g' \
47
	@${REINPLACE_CMD} -e \
24
		${WRKSRC}/setup.py
48
		"/dirstosearch/s|=.*|= ['${LOCALBASE}']|" ${WRKSRC}/setup.py
49
50
post-install:
51
.if ${PORT_OPTIONS:MDOCS}
52
	@${MKDIR} ${DOCSDIR}
53
	(cd ${WRKSRC}/docs && ${INSTALL_DATA} * ${DOCSDIR})
54
.endif
55
.if ${PORT_OPTIONS:MEXAMPLES}
56
	@${MKDIR} ${EXAMPLESDIR}
57
	(cd ${WRKSRC}/examples && ${INSTALL_DATA} * ${EXAMPLESDIR})
58
.endif
25
59
26
.include <bsd.port.mk>
60
.include <bsd.port.mk>
(-)science/py-netCDF4/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (netCDF4-1.0.2.tar.gz) = 76af3918112fbd254d07f073376d4364b3538ab0fdde47a453f1e10f612f6223
1
SHA256 (netCDF4-1.0.4.tar.gz) = 99f5eaebae2fae92759d13b790dde4226b2b8c83a68f86543c41c7998cba53b7
2
SIZE (netCDF4-1.0.2.tar.gz) = 490900
2
SIZE (netCDF4-1.0.4.tar.gz) = 521990
(-)science/py-netCDF4/pkg-plist (-12 lines)
Lines 1-12 Link Here
1
bin/nc4tonc3
2
bin/nc3tonc4
3
%%PYTHON_SITELIBDIR%%/netCDF4_utils.py
4
%%PYTHON_SITELIBDIR%%/netCDF4_utils.pyc
5
%%PYTHON_SITELIBDIR%%/netCDF4_utils.pyo
6
%%PYTHON_SITELIBDIR%%/netCDF4.so
7
%%PYTHON_SITELIBDIR%%/netcdftime.py
8
%%PYTHON_SITELIBDIR%%/netcdftime.pyc
9
%%PYTHON_SITELIBDIR%%/netcdftime.pyo
10
%%PYTHON_SITELIBDIR%%/ordereddict.py
11
%%PYTHON_SITELIBDIR%%/ordereddict.pyc
12
%%PYTHON_SITELIBDIR%%/ordereddict.pyo

Return to bug 177915