2013-08-13 13:59:54 +02:00
|
|
|
# Created by: TAOKA Fumiyoshi
|
2009-07-13 16:07:16 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= h5py
|
2013-12-13 20:59:42 +01:00
|
|
|
PORTVERSION= 2.2.1
|
2014-05-03 02:55:30 +02:00
|
|
|
PORTREVISION= 2
|
2009-07-13 16:07:16 +02:00
|
|
|
CATEGORIES= science python
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
2013-11-13 22:28:29 +01:00
|
|
|
MAINTAINER= xmj@chaot.net
|
2013-10-30 22:34:16 +01:00
|
|
|
COMMENT= General-purpose Python interface to the HDF5 library
|
2009-07-13 16:07:16 +02:00
|
|
|
|
2013-11-13 22:28:29 +01:00
|
|
|
LICENSE= BSD
|
|
|
|
|
2009-07-13 16:07:16 +02:00
|
|
|
BUILD_DEPENDS= ${PYNUMPY}
|
2010-02-01 12:27:58 +01:00
|
|
|
RUN_DEPENDS= ${PYNUMPY}
|
2014-05-03 02:55:30 +02:00
|
|
|
LIB_DEPENDS= libhdf5.so:${PORTSDIR}/science/hdf5
|
2013-08-13 13:59:54 +02:00
|
|
|
|
2013-10-30 22:34:16 +01:00
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS= yes
|
2013-11-13 22:28:29 +01:00
|
|
|
|
2013-10-30 22:34:16 +01:00
|
|
|
PYDISTUTILS_AUTOPLIST= yes
|
2013-08-13 13:59:54 +02:00
|
|
|
|
2013-11-13 22:28:29 +01:00
|
|
|
PORTDOCS= README.rst
|
2013-12-13 20:59:42 +01:00
|
|
|
PORTEXAMPLES= multiprocessing_example.py \
|
|
|
|
threading_example.py
|
2013-11-13 22:28:29 +01:00
|
|
|
|
2013-12-13 20:59:42 +01:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
2013-11-13 22:28:29 +01:00
|
|
|
|
2013-10-30 22:34:16 +01:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
|
|
|
|
${WRKSRC}/setup.py
|
2009-07-13 16:07:16 +02:00
|
|
|
|
2013-11-13 22:28:29 +01:00
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
2013-12-13 20:59:42 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/examples/|} ${STAGEDIR}${EXAMPLESDIR}
|
2013-11-13 22:28:29 +01:00
|
|
|
|
2013-10-30 22:34:16 +01:00
|
|
|
regression-test: build
|
|
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
|
2009-07-13 16:07:16 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|