# -*- 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-tornado
version             6.5.7
revision            0
categories-append   www
license             Apache-2

python.versions     27 310 311 312 313 314

maintainers         {stromnov @stromnov} openmaintainer

description         Scalable, non-blocking web server and related tools

long_description    \
    Tornado is an open source version of the scalable, non-blocking web server \
    and tools that power FriendFeed. The FriendFeed application is written \
    using a web framework that looks a bit like web.py or Google's webapp, \
    but with additional tools and optimizations to take advantage of the \
    underlying non-blocking infrastructure.

homepage            https://www.tornadoweb.org/

checksums           rmd160  9aff03c4a2a23c96eb248dab942db3ccdb8f6df9 \
                    sha256  66c513a76cda70d53907bc27cf1447557699c2e95aa48ba27a442ff61c3ddfc2 \
                    size    519252

if {${name} ne ${subport}} {
    if {${python.version} eq 27} {
        version             5.1.1
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  c5352ef0fe39e4877cab97f2ec7258d455158317 \
                            sha256  4e5158d97583502a7e2739951553cbd88a72076f152b4b11b64b9a10c4c49409 \
                            size    516819
        python.pep517       no
        depends_build-append \
                            port:py${python.version}-setuptools
        depends_lib-append  port:py${python.version}-backports_abc \
                            port:py${python.version}-certifi \
                            port:py${python.version}-futures \
                            port:py${python.version}-monotonic \
                            port:py${python.version}-singledispatch
    }

    test.run            yes
    python.test_framework
    test.cmd            ${python.bin}
    test.args           -m tornado.test.runtests

    livecheck.type      none
}
