# Created by: ijliao@FreeBSD.org # $FreeBSD$ PORTNAME= tables PORTVERSION= 3.0.0 CATEGORIES= devel python MASTER_SITES= SF/py${PORTNAME:L}/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= 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:${PORTSDIR}/science/hdf5-18 \ lzo2:${PORTSDIR}/archivers/lzo2 \ ucl:${PORTSDIR}/archivers/ucl RUN_DEPENDS:= ${BUILD_DEPENDS} USE_PYTHON= yes USE_PYDISTUTILS= yes PLIST_FILES= bin/pt2to3 bin/ptdump bin/ptrepack OPTIONS_DEFINE= PYREX PYREX_DESC= Use code generated by Pyrex to build OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options NO_STAGE= yes .include .if ${PORT_OPTIONS:MPYREX} 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 ${PORT_OPTIONS:MDOCS} @${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 ${PORT_OPTIONS:MEXAMPLES} @${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