# -*- 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 set realname tables name py-${realname} version 3.0.0 revision 1 categories-append science platforms darwin license BSD python.versions 26 27 32 33 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 http://www.pytables.org/ master_sites http://sourceforge.net/projects/pytables/files/pytables/${version} checksums rmd160 d5a502f5d2e13d71a007aa988d8d9fc7af8cb812 \ sha256 53532a59c8f03c3c5ef3c73c04f5bfd8384d6a3d508683cb87fc17af4c71dfe1 distname ${realname}-${version} if {$subport != $name} { build.target build_ext build.args --inplace \ --hdf5=${prefix} \ --bzip2=${prefix} \ --lzo=${prefix} compiler.cpath-append \ ${prefix}/include/openmpi destroot.args --hdf5=${prefix} \ --bzip2=${prefix} \ --lzo=${prefix} depends_lib-append port:hdf5-18 \ port:py${python.version}-numpy \ port:py${python.version}-numexpr \ port:zlib \ port:bzip2 \ port:lzo2 \ port:py${python.version}-cython if {${subport} == "py26-${realname}" || ${subport} == "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.txt \ RELEASE_NOTES.txt THANKS VERSION \ ${destroot}${prefix}/share/doc/${subport} } } if {${name} == ${subport}} { livecheck.type regex livecheck.url ${homepage} livecheck.regex {PyTables ([0-9]+\.[0-9]+\.[0-9]+) \(?final\)? released} } else { livecheck.type none }