# -*- 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-sphinx-gallery
version             0.21.0
revision            0

supported_archs     noarch
platforms           {darwin any}
license             BSD
maintainers         {reneeotten @reneeotten} openmaintainer

description         Extension for automatic generation of an example gallery
long_description    {*}${description}

homepage            https://sphinx-gallery.github.io

distname            sphinx_gallery-${version}

checksums           rmd160  02c0bcc33601b66b79d7859a6cfb6d3951764e4c \
                    sha256  72a7734ad9100878345b8b65c249148cc0f1cd0e274adf3e3900214e4c2c5bee \
                    size    483616

python.versions     310 311 312 313 314

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

    depends_lib-append \
                    port:py${python.version}-Pillow \
                    port:py${python.version}-sphinx

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