# -*- 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 python 1.0 PortGroup mpi 1.0 name py-netcdf4 python.rootname netCDF4 version 1.6.5 revision 2 categories-append science platforms darwin license MIT maintainers {fastmail.fm:jswhit @jswhit} openmaintainer description Python/numpy interface to netCDF long_description netCDF version 4 has many features not found in \ earlier versions of the library and is implemented \ on top of HDF5. This module can read and write files \ in both the new netCDF 4 and the old netCDF \ 3 format, and can create files that are readable by \ HDF5 clients. homepage https://unidata.github.io/netcdf4-python/ checksums rmd160 1f755b8e348196379e403f06fc4b0bf333f6510b \ sha256 824881d0aacfde5bd982d6adedd8574259c85553781e7b83e0ce82b890bfa0ef \ size 764969 mpi.enforce_variant netcdf mpi.setup build.env-append USE_NCCONFIG=1 destroot.env-append USE_NCCONFIG=1 python.versions 27 38 39 310 311 312 # Fixes "Missing dependencies: oldest-supported-numpy" # See https://trac.macports.org/ticket/67136 # This fix copies the method used for py311-cftime: # https://trac.macports.org/ticket/66898 python.pep517 no if {${name} ne ${subport}} { if {${python.version} == 27} { version 1.5.3 revision 10 checksums rmd160 b855fcb0cc51bf349824ada5129feab9f3911728 \ sha256 2a3ca855848f4bbf07fac366da77a681fcead18c0a8813d91d46302f562dc3be \ size 790343 } depends_build-append \ path:bin/cython-${python.branch}:py${python.version}-cython depends_lib-append \ port:netcdf \ port:py${python.version}-cftime \ port:hdf5 \ port:py${python.version}-numpy \ port:py${python.version}-setuptools depends_test-append \ port:py${python.version}-certifi pre-configure { # py-netcdf4's setup.py uses nc-config for flags and libs but not compiler configure.cc {*}[exec ${prefix}/bin/nc-config --cc] } test.run yes python.test_framework test.dir ${build.dir}/test test.cmd ${python.bin} run_all.py post-destroot { set docdir ${prefix}/share/doc/${subport} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} Changelog \ README.md ${destroot}${docdir} } }