# -*- 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-corner
version             2.2.3
revision            0

categories-append   science
supported_archs     noarch
platforms           {darwin any}
license             BSD
maintainers         {danfm.ca:dan @dfm} openmaintainer

description         Make some beautiful corner plots of samples
long_description    {*}${description}

homepage            https://github.com/dfm/corner.py

checksums           rmd160  119f50b022b64bcf4effef533fdbae52d8651916 \
                    sha256  471b7b63395d8f1dee176bb779348ade38d56abd23404a48802a593607745e1c \
                    size    5932840

python.versions     39 310 311 312 313
python.pep517_backend hatch

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-hatch-vcs

    depends_lib-append \
                    port:py${python.version}-numpy \
                    port:py${python.version}-matplotlib

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