# -*- 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.20.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  029bdae0b552d64d373bea20709f3a798c013133 \
                    sha256  70281510c6183d812d3595957005ccf555c5a793f207410f6cd16a25bf08d735 \
                    size    473502

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}
    }
}
