# -*- 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             2.0.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  9b46f9c8b20aeec21d26279bb078408204088e06 \
                    sha256  bd5d7b80622406762073a04ef8fadc5f9151261563d47027de09910ce03afe6b \
                    size    2785005

python.versions     37 38 39 310 311 312

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

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

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