2003-12-19 04:41:34 +01:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: PyTables
|
|
|
|
# Date created: Dec 19, 2003
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= tables
|
2006-07-27 18:24:12 +02:00
|
|
|
PORTVERSION= 1.3.2
|
2003-12-19 04:41:34 +01:00
|
|
|
CATEGORIES= devel python
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= pytables
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= pytables-${PORTVERSION}
|
|
|
|
|
2006-07-27 18:24:12 +02:00
|
|
|
MAINTAINER= quakelee@cn.freebsd.org
|
2003-12-19 04:41:34 +01:00
|
|
|
COMMENT= A hierarchical database for Python
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/numarray/__init__.py:${PORTSDIR}/math/py-numarray
|
2004-02-25 23:55:55 +01:00
|
|
|
LIB_DEPENDS= hdf5.0:${PORTSDIR}/science/hdf5 \
|
2005-05-31 21:58:33 +02:00
|
|
|
lzo.1:${PORTSDIR}/archivers/lzo \
|
2004-01-17 12:43:20 +01:00
|
|
|
ucl.1:${PORTSDIR}/archivers/ucl
|
2003-12-19 04:41:34 +01:00
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/numarray/__init__.py:${PORTSDIR}/math/py-numarray
|
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS= yes
|
|
|
|
|
2005-05-13 05:51:53 +02:00
|
|
|
PLIST_FILES= bin/nctoh5 bin/ptdump bin/ptrepack
|
|
|
|
|
2006-07-27 18:24:12 +02:00
|
|
|
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
|
|
|
|
|
2005-05-11 05:11:40 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE}," ${WRKSRC}/setup.py
|
|
|
|
|
2003-12-19 04:41:34 +01:00
|
|
|
post-install:
|
2005-07-19 00:43:17 +02:00
|
|
|
@${FIND} ${PYTHONPREFIX_SITELIBDIR}/tables ! -type d | \
|
2005-05-11 05:11:40 +02:00
|
|
|
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
|
2005-07-19 00:43:17 +02:00
|
|
|
@${FIND} ${PYTHONPREFIX_SITELIBDIR}/tables -type d | ${SORT} -r | \
|
2005-05-11 05:11:40 +02:00
|
|
|
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
|
|
|
.if !defined(NOPORTDOCS)
|
2003-12-19 04:41:34 +01:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.py ${EXAMPLESDIR}
|
2005-05-11 05:11:40 +02:00
|
|
|
@${FIND} ${EXAMPLESDIR} ! -type d | \
|
|
|
|
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
|
|
|
|
@${FIND} ${EXAMPLESDIR} -type d | ${SORT} -r | \
|
|
|
|
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
2003-12-19 04:41:34 +01:00
|
|
|
.endif
|
|
|
|
|
2006-07-27 18:24:12 +02:00
|
|
|
.include <bsd.port.post.mk>
|