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

python.versions     27 35 36 37 38 39 310 311 312
python.pep517       yes

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  aff063286163230a9b2d71bd9ce3042d60916fec \
                    sha256  72291fa6e6bc84e626589f1c29d90a5a6d593ef5ae68052ee2ef000dfd273dee \
                    size    498845

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

    if {${python.version} in "37 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_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
    } elseif {${python.version} eq 35} {
        version             6.0.4
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  92b5c98162990a3b62e40bc77e98bd21ff7bff26 \
                            sha256  0fe2d45ba43b00a41cd73f8be321a44936dc1aba233dee979f17a042b83eb6dc \
                            size    496204
        python.pep517       no
    } elseif {${python.version} eq 36} {
        version             6.1
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  a42c2d7c44cd3e2f3eb4249bcf6f13ac9e133894 \
                            sha256  33c6e81d7bd55b468d2e793517c909b139960b6c790a60b7991b9b6b76fb9791 \
                            size    497359
        python.pep517       no
    } elseif {${python.version} eq 37} {
        version             6.2
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  da0c4517658c6e029a7dd86cc8cfc03d61a2c93e \
                            sha256  9b630419bde84ec666bfd7ea0a4cb2a8a651c2d5cccdbdd1972a0c859dfc3c13 \
                            size    504849
    }

    livecheck.type      none
}
