aboutsummaryrefslogtreecommitdiffstats
path: root/science/py-h5py/Makefile
blob: 2dbe5255d48490b81747a574ef2bc1f5d2e54152 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Created by: TAOKA Fumiyoshi
# $FreeBSD$

PORTNAME=   h5py
PORTVERSION=    2.2.1
PORTREVISION=   2
CATEGORIES= science python
MASTER_SITES=   ${MASTER_SITE_GOOGLE_CODE}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= xmj@chaot.net
COMMENT=    General-purpose Python interface to the HDF5 library

LICENSE=    BSD

BROKEN=     Does not build

BUILD_DEPENDS=  ${PYNUMPY}
RUN_DEPENDS=    ${PYNUMPY}
LIB_DEPENDS=    libhdf5.so:${PORTSDIR}/science/hdf5

USE_PYTHON=     yes
USE_PYDISTUTILS=    yes

PYDISTUTILS_AUTOPLIST=  yes

PORTDOCS=   README.rst
PORTEXAMPLES=   multiprocessing_example.py \
        threading_example.py

OPTIONS_DEFINE= DOCS EXAMPLES

post-patch:
    ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
        ${WRKSRC}/setup.py

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/examples/|} ${STAGEDIR}${EXAMPLESDIR}

regression-test: build
    @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test

.include <bsd.port.mk>