# -*- 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-sphinxcontrib-websupport
version             2.0.0
revision            0

categories-append   textproc devel www
platforms           {darwin any}
supported_archs     noarch
maintainers         nomaintainer
license             BSD

description         Sphinx API for Web Apps
long_description    sphinxcontrib-webuspport provides a Python API to easily \
                    integrate Sphinx documentation into your Web application.

homepage            https://pypi.python.org/pypi/sphinxcontrib-websupport/

checksums           rmd160  7f54b3bf913117134437c250fc4ed73eb3de865e \
                    sha256  0b7367d3bac6454b1f97e42aa8c4d4d4a1b756d525fc726ebbe5571e033e79cd \
                    size    600125

python.versions     27 39 310 311 312 313

if {${subport} ne ${name}} {
    if {${python.version} == 27} {
        version     1.1.2
        revision    0
        checksums   rmd160  4d7d6c831fae6234ce6a6700ccf0ecbbe42e6d59 \
                    sha256  1501befb0fdf1d1c29a800fdbf4ef5dc5369377300ddbdd16d2cd40e54c6eefc \
                    size    599000

        depends_build-append \
                    port:py${python.version}-setuptools
    } else {
        python.rootname \
                    sphinxcontrib_websupport
        python.pep517_backend \
                    flit
    }

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        if {${python.version} == 27} {
            xinstall -m 0644 -W ${worksrcpath} CHANGES LICENSE README.rst ${destroot}${docdir}
        } else {
            xinstall -m 0644 -W ${worksrcpath} CHANGES.rst LICENCE.rst README.rst ${destroot}${docdir}
        }
    }

    livecheck.type  none
}
