# $Id: Portfile 78632 2011-05-14 22:50:58Z ryandesign@macports.org $

PortSystem         1.0
PortGroup          python27 1.0

name               py27-tables
version            2.2.1
revision           1
categories-append  python science
platforms          darwin
maintainers        mmoll openmaintainer

description        Python package for HDF5 file access.
long_description   PyTables is a python package used to access \
  HDF5 files, and can efficiently manage extremely large hierarchical \
  data sets.

homepage           http://www.pytables.org/
master_sites       ${homepage}download/stable/
distname           tables-${version}

checksums           md5     37f4932ecff9fe97bffc7a3d2e7da427 \
                    sha1    2c6385365be19fdf8f81e8fd862bedfcf4fe2ba5 \
                    rmd160  1d9ab1f836fcccccdad8eee7603a1056c2c27716
depends_lib-append port:hdf5-18 \
                   port:py27-numpy \
                   port:py27-numexpr \
                   port:zlib \
                   port:bzip2 \
                   port:lzo2 \
                   port:py27-scientific \
                   port:py27-cython

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

destroot.args      --hdf5=${prefix} \
                   --bzip2=${prefix} \
                   --lzo=${prefix}

post-destroot {
  xinstall -m 644 -W ${worksrcpath} ANNOUNCE.txt LICENSE.txt README.txt \
    MIGRATING_TO_2.x.txt RELEASE_NOTES.txt THANKS VERSION \
    ${destroot}${prefix}/share/doc/${name}
}

livecheck.type     regex
livecheck.url      ${homepage}
livecheck.regex    {PyTables ([0-9]+\.[0-9]+\.[0-9]+) \(final\) released}
