# -*- 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-rstcheck
version             3.3.1
revision            1

categories-append   devel
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         Checks syntax of reStructuredText and code blocks nested within it
long_description    ${description}

homepage            https://github.com/myint/rstcheck

checksums           rmd160  95397717b850a92f622293cba2cefed64ec9fed6 \
                    sha256  92c4f79256a54270e0402ba16a2f92d0b3c15c8f4410cb9c57127067c215741f \
                    size    13825

python.versions     27 37 38 39

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

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

    livecheck.type  none
}
