# -*- 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: Portfile 150948 2016-08-03 14:20:57Z mmoll@macports.org $ PortSystem 1.0 PortGroup python 1.0 PortGroup mpi 1.0 PortGroup conflicts_build 1.0 conflicts_build hdf5 set realname tables name py-${realname} version 3.2.3.1 revision 0 categories-append science platforms darwin license BSD python.versions 27 34 35 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 pypi:t/tables/ \ http://sourceforge.net/projects/pytables/files/pytables/${version} checksums rmd160 a9d8c9dc8a3d5845968337eeb08cf81be7535e70 \ sha256 20fb453dcfbb28450f4f738ed8ce85943b1cca4bf5e3cd739098cae6dac9dbc8 distname ${realname}-${version} mpi.setup if {${name} ne ${subport}} { build.target build_ext build.args --inplace \ --hdf5=${prefix}/lib/hdf5-18 \ --bzip2=${prefix} \ --lzo=${prefix} \ --blosc=${prefix} destroot.args --hdf5=${prefix}/lib/hdf5-18 \ --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-18 \ port:py${python.version}-numpy \ port:py${python.version}-numexpr \ port:zlib \ port:bzip2 \ port:lzo2 \ port:blosc if {${subport} eq "py27-${realname}"} { depends_lib-append port:py${python.version}-scientific } post-extract { # Fix permissions fs-traverse item ${worksrcpath} { if {[file isdirectory ${item}]} { file attributes ${item} -permissions a+rx } elseif {[file isfile ${item}]} { file attributes ${item} -permissions a+r } } 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 }