Revision: 139726 https://trac.macports.org/changeset/139726 Author: petr@macports.org Date: 2015-08-25 07:11:24 -0700 (Tue, 25 Aug 2015) Log Message: ----------- py-h5py: add parallel support, #48473, minor: dependencies & livecheck Modified Paths: -------------- trunk/dports/python/py-h5py/Portfile Modified: trunk/dports/python/py-h5py/Portfile =================================================================== --- trunk/dports/python/py-h5py/Portfile 2015-08-25 13:48:16 UTC (rev 139725) +++ trunk/dports/python/py-h5py/Portfile 2015-08-25 14:11:24 UTC (rev 139726) @@ -3,15 +3,17 @@ PortSystem 1.0 PortGroup python 1.0 +PortGroup mpi 1.0 + name py-h5py - version 2.5.0 +revision 1 # h5py needs to be re-built after hdf5 upgrades -revision 1 + platforms darwin license BSD -maintainers macports.org:eborisch \ - openmaintainer +maintainers eborisch openmaintainer + description Read and write HDF5 files from Python long_description \ @@ -26,6 +28,7 @@ homepage http://www.h5py.org master_sites https://pypi.python.org/packages/source/h/h5py +distname h5py-${version} checksums \ rmd160 94484badd1103c00421582a055b7b0f3368ad653 \ @@ -38,6 +41,7 @@ subport py27-h5py-devel {set DEV_VERSION 27} subport py33-h5py-devel {set DEV_VERSION 33} subport py34-h5py-devel {set DEV_VERSION 34} + python.versions 26 27 33 34 if {${DEV_VERSION}} { @@ -54,23 +58,43 @@ } python.default_version 27 -distname h5py-${version} if {${name} ne ${subport}} { + 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 - depends_build-append port:py${python.version}-cython - + + + # TODO: set compiler appropriately to build against parallel HDF5 + # (even when MPI variant not requested), ticket #45911 + #configure.cc mpicc + #configure.cc h5pcc + post-destroot { system -W ${destroot}${prefix} "mkdir -p share/doc/${subport}" copy ${worksrcpath}/lzf/LICENSE.txt \ ${destroot}${prefix}/share/doc/${subport} } -} -livecheck.type regex -livecheck.url https://pypi.python.org/pypi/h5py -livecheck.regex {h5py/(\d+(?:\.\d+)*)} + # Add MPI support + mpi.setup + if {[mpi_variant_isset]} { + 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 +} else { + livecheck.type regex + livecheck.url https://pypi.python.org/pypi/h5py + livecheck.regex {h5py/(\d+(?:\.\d+)*)} +}
participants (1)
-
petr@macports.org