# -*- 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.1.0
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  6a1118d93a836844e9e7ab598b8684ab12bb239f \
                    sha256  b44276f2c276e909239a4f6c955aa667aaafeb78597923b1c60babc76db78e4c \
                    size    7620915

python.versions     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}
    }
}
