freebsd-ports/devel/py-tables/Makefile

48 lines
1.3 KiB
Makefile
Raw Normal View History

# ex:ts=8
# Ports collection makefile for: PyTables
# Date created: Dec 19, 2003
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= tables
2005-05-11 05:11:40 +02:00
PORTVERSION= 1.0
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pytables
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pytables-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= A hierarchical database for Python
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/numarray/__init__.py:${PORTSDIR}/math/py-numarray
LIB_DEPENDS= hdf5.0:${PORTSDIR}/science/hdf5 \
lzo.1:${PORTSDIR}/archivers/lzo \
2004-01-17 12:43:20 +01:00
ucl.1:${PORTSDIR}/archivers/ucl
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/numarray/__init__.py:${PORTSDIR}/math/py-numarray
2005-05-11 05:11:40 +02:00
USE_REINPLACE= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
2005-05-11 05:11:40 +02:00
post-patch:
@${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE}," ${WRKSRC}/setup.py
post-install:
2005-05-11 05:11:40 +02:00
@${FIND} ${PYTHON_SITELIBDIR}/tables ! -type d | \
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${PYTHON_SITELIBDIR}/tables -type d | ${SORT} -r | \
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
.if !defined(NOPORTDOCS)
@${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}
.endif
.include <bsd.port.mk>