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

name                py-xarray-einstats
python.rootname     xarray_einstats
version             0.10.0
revision            0

categories-append   math
supported_archs     noarch
platforms           {darwin any}
license             Apache-2
maintainers         {reneeotten @reneeotten} openmaintainer

description         Stats, linear algebra and einops for xarray
long_description    {*}${description}

homepage            https://github.com/arviz-devs/xarray-einstats

checksums           rmd160  5f96946d63e63229bf02a225a80483885a348752 \
                    sha256  d432a363fc8f09baad164f9826dc711551c684b9abd8098c1b961d18663a627d \
                    size    33449

python.versions     310 311 312 313 314
python.pep517_backend flit

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-numpy \
                    port:py${python.version}-scipy \
                    port:py${python.version}-xarray

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.md \
            LICENSE ${destroot}${docdir}
    }
}
