# -*- 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
PortGroup           github 1.0

github.setup        rtfd sphinx_rtd_theme 0.4.3
revision            0
name                py-sphinx_rtd_theme
platforms           darwin
supported_archs     noarch
license             MIT BSD
maintainers         nomaintainer

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

# do not download file from github since the one from pypi is significantly smaller
master_sites        pypi:s/sphinx_rtd_theme

checksums           rmd160  4445532bc9604877e8a28c819a403bc47f49895d \
                    sha256  728607e34d60456d736cc7991fd236afb828b21b82f956c5ea75f94c8414040a \
                    size    5391190

python.versions     27 35 36 37 38 39

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

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

    livecheck.type  none
}
