# -*- 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-waitress
version             1.4.4
revision            0
platforms           darwin
supported_archs     noarch
license             ZPL-2.1
maintainers         nomaintainer

description         Waitress WSGI server
long_description    ${description}

homepage            https://github.com/Pylons/waitress
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  a6c81c21c96d90c2e3f95d4530df2ac2b66ca052 \
                    sha256  1bb436508a7487ac6cb097ae7a7fe5413aefca610550baf58f0940e51ecfb261 \
                    size    173124

python.versions     27 35 36 37 38 39

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

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

    livecheck.type  none
}
