# -*- 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 github 1.0 PortGroup python 1.0 PortGroup mpi 1.0 github.setup h5py h5py 2.6.0 name py-h5py revision 0 # h5py needs to be re-built after hdf5 upgrades platforms darwin license BSD maintainers eborisch openmaintainer description Read and write HDF5 files from Python long_description \ The h5py package provides both a high- and low-level interface to the \ HDF5 library from Python. The low-level interface is intended to be a \ complete wrapping of the HDF5 API, while the high-level component \ supports access to HDF5 files, datasets and groups using established \ Python and NumPy concepts. \ \n\nA strong emphasis on automatic conversion between Python (Numpy) \ datatypes and data structures and their HDF5 equivalents vastly \ simplifies the process of reading and writing data from Python. homepage http://www.h5py.org # Support for -devel set DEV_VERSION 0 subport py26-h5py-devel {set DEV_VERSION 26} subport py27-h5py-devel {set DEV_VERSION 27} subport py33-h5py-devel {set DEV_VERSION 33} subport py34-h5py-devel {set DEV_VERSION 34} subport py35-h5py-devel {set DEV_VERSION 35} python.versions 26 27 33 34 35 if {${DEV_VERSION}} { checksums \ rmd160 937ec9ac2cfc290025ebdada30f35a021cb12efc \ sha256 b2872862d1d5afd3d34fc831a5feae394516683996c22f73c3eccc5fcd4cdb89 } else { checksums \ rmd160 f9a975c3a4fdac3f06cae38e8b5bcc565d90a61a \ sha256 62bf69569d685f4eda7fbbcfb1be76dd769e593058f5f0f466434b7240127c42 } if {${DEV_VERSION}} { python.version ${DEV_VERSION} # epoch was already set to a date; continuing with that approach epoch 20160412 github.setup h5py h5py 8e58fa6 name py${python.version}-h5py-devel conflicts py${python.version}-h5py } elseif {${name} ne ${subport}} { conflicts py${python.version}-h5py-devel } python.default_version 27 if {${name} ne ${subport} || ${DEV_VERSION}} { depends_build-append port:py${python.version}-cython depends_lib-append port:py${python.version}-numpy \ port:py${python.version}-six \ port:py${python.version}-pkgconfig \ port:hdf5 post-destroot { system -W ${destroot}${prefix} "mkdir -p share/doc/${subport}" copy ${worksrcpath}/lzf/LICENSE.txt \ ${destroot}${prefix}/share/doc/${subport} } # Add MPI support mpi.setup if {[mpi_variant_isset]} { build.env-append DISTUTILS_DEBUG=1 depends_lib-append port:py${python.version}-mpi4py mpi.enforce_variant hdf5 \ py${python.version}-mpi4py use_configure yes configure.cmd ${build.cmd} configure configure.args --mpi configure.pre_args } livecheck.type none }