mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
416ce726e9
PR: ports/83692 Submitted by: Vsevolod Stakhov <vsevolod@highsecure.ru>
54 lines
1.5 KiB
Makefile
54 lines
1.5 KiB
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: PyTables
|
|
# Date created: Dec 19, 2003
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= tables
|
|
PORTVERSION= 1.1
|
|
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 \
|
|
ucl.1:${PORTSDIR}/archivers/ucl
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/numarray/__init__.py:${PORTSDIR}/math/py-numarray
|
|
|
|
USE_REINPLACE= yes
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
|
|
PLIST_FILES= bin/nctoh5 bin/ptdump bin/ptrepack
|
|
|
|
.if !exists(/usr/bin/bzip2)
|
|
LIB_DEPENDS+= bzip2:${PORTSDIR}/archivers/bzip2
|
|
.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} ${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.mk>
|