# -*- 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_rtd_theme
version             3.0.2
revision            0

supported_archs     noarch
platforms           {darwin any}
license             MIT BSD
maintainers         nomaintainer

description         ReadTheDocs.org mobile-friendly Sphinx theme.
long_description    {*}${description}

homepage            https://sphinx-rtd-theme.readthedocs.io/

checksums           rmd160  16f18d25f127b7018ae172d016b6983b6e08eb2f \
                    sha256  b7457bc25dda723b20b086a670b9953c859eab60a2a03ee8eb2bb23e176e5f85 \
                    size    7620463

python.versions     39 310 311 312 313 314

if {${subport} ne ${name}} {
    depends_lib-append \
                    port:py${python.version}-docutils \
                    port:py${python.version}-sphinx \
                    port:py${python.version}-sphinxcontrib-jquery

    test.run        yes

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} LICENSE OFL-License.txt \
            Apache-License-2.0.txt README.rst ${destroot}${docdir}
    }
}
