blob: 87b5501ff23418913729c5e3adf9a03e1560280e (
plain)
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
|
# Created by: ijliao@FreeBSD.org
# $FreeBSD$
PORTNAME= tables
PORTVERSION= 3.2.2
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= wen@FreeBSD.org
COMMENT= Hierarchical database for Python
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= ${PYNUMPY} \
${LOCALBASE}/bin/cython:${PORTSDIR}/lang/cython \
${PYTHON_PKGNAMEPREFIX}numexpr>=1.4.1:${PORTSDIR}/math/py-numexpr
LIB_DEPENDS= libhdf5.so:${PORTSDIR}/science/hdf5 \
liblzo2.so:${PORTSDIR}/archivers/lzo2 \
libucl.so:${PORTSDIR}/archivers/ucl
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= fortran python
USE_PYTHON= autoplist distutils
PORTEXAMPLES= *
OPTIONS_DEFINE= PYREX EXAMPLES
PYREX_DESC= Use code generated by Pyrex to build
PYREX_BUILD_DEPENDS= pyrex>0:${PORTSDIR}/devel/pyrex
post-patch:
@${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE}," ${WRKSRC}/setup.py
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/tables/*.so
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/*.py ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
|