You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
72 lines
2.5 KiB
Tcl
72 lines
2.5 KiB
Tcl
# -*- 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
|
|
|
|
PortSystem 1.0
|
|
PortGroup github 1.0
|
|
PortGroup python 1.0
|
|
PortGroup mpi 1.0
|
|
|
|
github.setup h5py h5py 3.15.1
|
|
# Change github.tarball_from to 'releases' or 'archive' next update
|
|
github.tarball_from tarball
|
|
name py-h5py
|
|
|
|
# h5py needs to be re-built after hdf5 upgrades; it has its own version
|
|
# check included.
|
|
revision 0
|
|
|
|
checksums \
|
|
rmd160 42f8bca924820ebcca9584bb5baae1ac2143eaf1 \
|
|
sha256 8f66d7153404039551c32783582c39441bc876d1f23df93fa34cf637e01637cc \
|
|
size 446046
|
|
|
|
license BSD
|
|
maintainers {eborisch @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 https://www.h5py.org
|
|
|
|
python.versions 310 311 312 313 314
|
|
|
|
# Only check against releases.
|
|
github.livecheck.regex {([0-9.]+)}
|
|
|
|
if {${name} ne ${subport}} {
|
|
depends_build-append port:py${python.version}-cython \
|
|
port:py${python.version}-pkgconfig
|
|
|
|
depends_lib-append port:py${python.version}-numpy \
|
|
port:hdf5
|
|
|
|
build.env-append HDF5_DIR=${prefix}
|
|
destroot.env-append HDF5_DIR=${prefix}
|
|
|
|
post-destroot {
|
|
xinstall -d ${destroot}${prefix}/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
|
|
|
|
build.env-append HDF5_MPI=ON
|
|
destroot.env-append HDF5_MPI=ON
|
|
}
|
|
}
|