# -*- 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.2
revision            0

categories-append   textproc devel www
platforms           darwin
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  8efaeebb663709e6e8eb231884eaf10080d1c8ce \
                    sha256  33c0db6c0635b9dc3e72629b7278ca3b9fa24c156eeeaf1674be8f268831d951 \
                    size    602287

python.versions     27 35 36 37 38 39

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
}
