# -*- 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             1.2.4
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  360dec014f96f95fd2c9c2f07787ae021549abff \
                    sha256  4edf0223a0685a7c485ae5a156b6f529ba1ee481a1417817935b20bde1956232 \
                    size    602360

python.versions     27 35 36 37 38 39 310

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

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

    livecheck.type  none
}
