# -*- 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.19.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  80af27f6c8b5c0bb00dbb65fee375ff31d366987 \
                    sha256  8400cb5240ad642e28a612fdba0667f725d0505a9be0222d0243de60e8af2eb3 \
                    size    471479

python.versions     39 310 311 312 313

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