# -*- 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-gunicorn
version             23.0.0
revision            0

platforms           {darwin any}
supported_archs     noarch
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  600164120acea0b507be6e02713ad87fc3d1742b \
                    sha256  f014447a0101dc57e294f6c18ca6b40227a4c90e9bdb586042628030cba004ec \
                    size    375031

python.versions     312

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

    test.run        yes

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