Ticket #48473: Portfile.diff
File Portfile.diff, 2.6 KB (added by petrrr, 9 years ago) |
---|
-
Portfile
3 3 4 4 PortSystem 1.0 5 5 PortGroup python 1.0 6 PortGroup mpi 1.0 7 6 8 name py-h5py 7 8 9 version 2.5.0 10 revision 1 9 11 # h5py needs to be re-built after hdf5 upgrades 10 revision 1 12 11 13 platforms darwin 12 14 license BSD 13 maintainers macports.org:eborisch \14 openmaintainer 15 maintainers eborisch openmaintainer 16 15 17 description Read and write HDF5 files from Python 16 18 17 19 long_description \ … … 26 28 27 29 homepage http://www.h5py.org 28 30 master_sites https://pypi.python.org/packages/source/h/h5py 31 distname h5py-${version} 29 32 30 33 checksums \ 31 34 rmd160 94484badd1103c00421582a055b7b0f3368ad653 \ … … 38 41 subport py27-h5py-devel {set DEV_VERSION 27} 39 42 subport py33-h5py-devel {set DEV_VERSION 33} 40 43 subport py34-h5py-devel {set DEV_VERSION 34} 44 41 45 python.versions 26 27 33 34 42 46 43 47 if {${DEV_VERSION}} { … … 54 58 } 55 59 56 60 python.default_version 27 57 distname h5py-${version}58 61 59 62 if {${name} ne ${subport}} { 63 depends_build-append port:py${python.version}-cython 64 60 65 depends_lib-append port:py${python.version}-numpy \ 61 66 port:py${python.version}-six \ 62 67 port:py${python.version}-pkgconfig \ 63 68 port:hdf5 64 depends_build-append port:py${python.version}-cython 65 69 70 71 # TODO: set compiler appropriately to build against parallel HDF5 72 # (when MPI not requested), ticket #45911 73 #configure.cc mpicc 74 #configure.cc h5pcc 75 66 76 post-destroot { 67 77 system -W ${destroot}${prefix} "mkdir -p share/doc/${subport}" 68 78 copy ${worksrcpath}/lzf/LICENSE.txt \ 69 79 ${destroot}${prefix}/share/doc/${subport} 70 80 } 71 }72 81 73 livecheck.type regex 74 livecheck.url https://pypi.python.org/pypi/h5py 75 livecheck.regex {h5py/(\d+(?:\.\d+)*)} 82 # Add MPI support 83 mpi.setup 84 if {[mpi_variant_isset]} { 85 depends_lib-append port:py${python.version}-mpi4py 86 mpi.enforce_variant hdf5 \ 87 py${python.version}-mpi4py 76 88 89 use_configure yes 90 configure.cmd ${build.cmd} configure 91 configure.args --mpi 92 configure.pre_args 93 } 94 95 livecheck.type none 96 } else { 97 livecheck.type regex 98 livecheck.url https://pypi.python.org/pypi/h5py 99 livecheck.regex {h5py/(\d+(?:\.\d+)*)} 100 }