# -*- 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           github 1.0
PortGroup           python 1.0

github.setup        benoitc gunicorn 20.1.0
revision            0
name                py-${github.project}

platforms           darwin
license             MIT
maintainers         nomaintainer

description         WSGI HTTP Server for UNIX
long_description    Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server \
                    for UNIX. It's a pre-fork worker model ported from \
                    Ruby's Unicorn project. The Gunicorn server is \
                    broadly compatible with various web frameworks, \
                    simply implemented, light on server resource \
                    usage, and fairly speedy.

homepage            https://gunicorn.org

checksums           rmd160  b1f82014ebdcb13f30f57c66c1fe6f7dbdae52a7 \
                    sha256  0dfd384414b6666dffe49e67e54d16241258dd66d7c5c2c6e0713d647482e5a3 \
                    size    354952

python.versions     37 38 39

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

    depends_test-append \
                    port:py${python.version}-pytest \
                    port:py${python.version}-pytest-cov

    test.run        yes
    test.cmd        py.test-${python.branch}
    test.target
    test.env-append \
                    PYTHONPATH=${worksrcpath}/build/lib

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

    livecheck.type  none
}
