# -*- 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           github 1.0

github.setup        ecmwf eccodes-python 2.44.0
github.tarball_from archive

name                py-eccodes
revision            0

categories-append   science
supported_archs     noarch
platforms           {darwin any}
license             Apache-2
maintainers         nomaintainer

description         Python interface to the ecCodes GRIB and BUFR decoder/encoder
long_description    {*}${description}

checksums           rmd160  b9ce96809c7b1cb348e2c68ad7c96d17481d201f \
                    sha256  ec02f7a4e5a819efb9c13e1cdc012391d74e601ebc9cd67029f22c4dc73c15ae \
                    size    2459524

python.versions     310

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:ecCodes \
                    port:py${python.version}-attrs \
                    port:py${python.version}-cffi \
                    port:py${python.version}-findlibs \
                    port:py${python.version}-numpy
}
