# -*- 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.4.2
revision            0
categories-append   www
license             Apache-2

python.versions     27 38 39 310 311 312 313

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  3b57a46d1161481613c3234687c5d3a16cda0b10 \
                    sha256  92bad5b4746e9879fd7bf1eb21dce4e3fc5128d71601f80005afa39237ad620b \
                    size    501135

if {${name} ne ${subport}} {
    if {${python.version} in "38 39"} {
        conflicts   py${python.version}-tornado5
    }

    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
    }

    livecheck.type      none
}