mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
522abc8a66
PR: ports/156954
73 lines
2.1 KiB
Makefile
73 lines
2.1 KiB
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: PyTables
|
|
# Date created: Dec 19, 2003
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= tables
|
|
PORTVERSION= 2.2.1
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= http://www.pytables.org/download/stable/ \
|
|
http://www.pytables.org/download/py${PORTNAME}-${PORTVERSION}/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTFILES= tables-${PORTVERSION}.tar.gz pytablesmanual-${PORTVERSION}.pdf
|
|
EXTRACT_ONLY= tables-${PORTVERSION}.tar.gz
|
|
|
|
MAINTAINER= wen@FreeBSD.org
|
|
COMMENT= A hierarchical database for Python
|
|
|
|
BUILD_DEPENDS= ${PYNUMPY} \
|
|
${LOCALBASE}/bin/cython:${PORTSDIR}/lang/cython \
|
|
${PYTHON_PKGNAMEPREFIX}numexpr>=1.4.1:${PORTSDIR}/math/py-numexpr
|
|
LIB_DEPENDS= hdf5.0:${PORTSDIR}/science/hdf5 \
|
|
lzo2.2:${PORTSDIR}/archivers/lzo2 \
|
|
ucl.1:${PORTSDIR}/archivers/ucl
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
|
|
BROKEN= needs to be upgraded to lzo2 according to ports/156954
|
|
|
|
PLIST_FILES= bin/nctoh5 bin/ptdump bin/ptrepack
|
|
|
|
OPTIONS= PYREX "Use code generated by Pyrex to build" off
|
|
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(WITHOUT_PYREX)
|
|
BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/Pyrex/__init__.py:${PORTSDIR}/devel/pyrex
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE}," ${WRKSRC}/setup.py
|
|
|
|
post-install:
|
|
@${FIND} ${PYTHONPREFIX_SITELIBDIR}/tables ! -type d | \
|
|
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
|
|
@${FIND} ${PYTHONPREFIX_SITELIBDIR}/tables -type d | ${SORT} -r | \
|
|
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${DISTDIR}/pytablesmanual-${PORTVERSION}.pdf ${DOCSDIR}
|
|
${ECHO} '${DOCSDIR}/pytablesmanual-${PORTVERSION}.pdf' | ${SED} 's,^${PREFIX}/,,' \
|
|
>> ${TMPPLIST}
|
|
${ECHO} '${DOCSDIR}' | ${SED} 's,^${PREFIX}/,@dirrm ,' \
|
|
>> ${TMPPLIST}
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.py ${EXAMPLESDIR}
|
|
@${FIND} ${EXAMPLESDIR} ! -type d | \
|
|
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
|
|
@${FIND} ${EXAMPLESDIR} -type d | ${SORT} -r | \
|
|
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|