# $Id: Portfile,v 1.6 2006/05/19 12:42:59 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-tables
version			1.3.1
categories		python science
platforms		darwin
maintainers		mww@opendarwin.org
description		Python package for users to organize scientific data tables
long_description	The goal of PyTables is to enable the end user to \
				manipulate easily scientific data tables, numarray \
				objects and Numerical Python objects in a persistent, \
				hierarchical structure. The foundation of the \
				underlying hierachical data organization is the \
				excellent HDF5 library.

homepage		http://pytables.sourceforge.com/
master_sites	sourceforge:pytables
distname		pytables-${version}
checksums		md5 b606a3e735a2d745807b6a1fac250dd3

depends_lib-append	lib:libhdf5:hdf5 \
				port:py-numarray

build.target	build_ext
build.args		--inplace \
				--hdf5=${prefix}

test.run		no
test.cmd		${python.bin} test/test_all.py
test.env		PYTHONPATH=.
test.target

destroot.args	--hdf5=${prefix}

post-destroot	{
	xinstall -m 644 -W ${worksrcpath} ANNOUNCE.txt LICENSE.txt README.txt \
		RELEASE-NOTES.txt THANKS TODO.txt \
		${destroot}${prefix}/share/doc/${name}
}
