# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup python 1.0 PortGroup mpi 1.0 set realname tables name py-${realname} version 3.2.0 revision 1 categories-append science platforms darwin license BSD python.versions 27 34 maintainers mmoll openmaintainer description Package for managing hierarchical datasets long_description PyTables is a package for managing hierarchical datasets \ and designed to efficiently and easily cope with \ extremely large amounts of data homepage https://pytables.github.io/ master_sites http://sourceforge.net/projects/pytables/files/pytables/${version} checksums rmd160 141f2241a5f5a7f737bb191c9e77f009620eb587 \ sha256 60980e44676bfe463cdd2582ecdacc0b0763b259477015e866f8af72b4cdba44 distname ${realname}-${version} mpi.setup if {${name} ne ${subport}} { build.target build_ext build.args --inplace \ --hdf5=${prefix} \ --bzip2=${prefix} \ --lzo=${prefix} \ --blosc=${prefix} destroot.args --hdf5=${prefix} \ --bzip2=${prefix} \ --lzo=${prefix} \ --blosc=${prefix} pre-destroot { # need to wrap this in a pre-destroot phase so that ${mpi.cc} expands to the right value if {[mpi_variant_isset]} { destroot.cmd env CC=${mpi.cc} ${destroot.cmd} } } depends_build-append \ port:py${python.version}-cython depends_lib-append port:hdf5 \ port:py${python.version}-numpy \ port:py${python.version}-numexpr \ port:zlib \ port:bzip2 \ port:lzo2 \ port:blosc if {${subport} eq "py26-${realname}" || ${subport} eq "py27-${realname}"} { depends_lib-append port:py${python.version}-scientific } post-extract { file rename ${worksrcpath}/src/utils.h ${worksrcpath}/src/xxx_utils.h } post-patch { eval reinplace "s:utils.h:xxx_utils.h:" [glob ${worksrcpath}/{src,tables}/*.c] } post-destroot { xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport} xinstall -m 644 -W ${worksrcpath} ANNOUNCE.txt LICENSE.txt README.rst \ RELEASE_NOTES.txt THANKS VERSION \ ${destroot}${prefix}/share/doc/${subport} } } if {${name} eq ${subport}} { livecheck.type regex livecheck.url https://pypi.python.org/pypi/tables/json livecheck.regex {tables-(\d+(?:\.\d+)*)\.[tz]} } else { livecheck.type none }