# -*- 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
PortGroup           deprecated 1.0

name                py-threadpool
version             1.3.2
revision            0

categories-append   net parallel
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         {petr @petrrr} openmaintainer

description         Easy to use object-oriented thread pool framework
long_description    \
    A thread pool is an object that maintains a pool of worker threads to \
    perform time consuming operations in parallel. It assigns jobs to the \
    threads by putting them in a work request queue, where they are picked \
    up by the next available thread. This then performs the requested \
    operation in the background and puts the results in another queue.

homepage            https://chrisarndt.de/projects/threadpool/
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}
use_bzip2           yes

checksums           rmd160  ede7bc376bd2eec52c5798e13e93881434e6aaa2 \
                    sha256  cce4ef898b7eda686a6086facf33c9ac006d1809281db0030673d1647bfeefa4 \
                    size    33088

deprecated.upstream_support no
python.versions     27 35 36

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

    post-destroot {
        set dest_doc ${destroot}${prefix}/share/doc/${subport}
        xinstall -d ${dest_doc}
        xinstall -m 0644 {*}[glob ${worksrcpath}/*.txt] ${dest_doc}
        copy ${worksrcpath}/doc ${dest_doc}/html
    }

    livecheck.type  none
}
