# -*- 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-cheroot
version             8.2.1
revision            0
categories-append   www
platforms           darwin
supported_archs     noarch
license             BSD

maintainers         {khindenburg @kurthindenburg} openmaintainer

description         Highly-optimized, pure-python HTTP server
long_description    ${description} used by CherryPy

homepage            https://pypi.python.org/pypi/${python.rootname}

distname            ${python.rootname}-${version}
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}

checksums           rmd160  40b2beea7207bf3f75710ad4e7bc396878e61dab \
                    sha256  5b525b3e4a755adf78070ab54c1821fb860d4255a9317dba2b88eb2df2441cff \
                    size    89470

python.versions     27 35 36 37 38

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-setuptools_scm_git_archive
    depends_lib-append      port:py${python.version}-jaraco.functools \
                            port:py${python.version}-more-itertools \
                            port:py${python.version}-setuptools \
                            port:py${python.version}-six

    if {${python.version} eq 27} {
        depends_lib-append  port:py${python.version}-backports-functools_lru_cache
    }

    livecheck.type  none
}