# -*- 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-dispatcher
python.rootname     PyDispatcher
version             2.0.5
revision            0

categories-append   devel
license             BSD
platforms           darwin
supported_archs     noarch
maintainers         {dh @donkopotamus} openmaintainer

description         python dispatcher mechanism for creating event models
long_description    PyDispatcher provides the Python programmer with a \
                    multiple-producer-multiple-consumer \
                    signal-registration and routing infrastructure for use \
                    in multiple contexts.

homepage            https://pypi.python.org/pypi/${python.rootname}
master_sites        pypi:P/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  1b74f1ee498bd4b2806076994a8d543d58bd6734 \
                    sha256  5570069e1b1769af1fe481de6dd1d3a388492acddd2cdad7a3bde145615d5caf \
                    size    34437

python.versions     27 35 36 37 38 39

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

    test.run        yes
    test.cmd        ${python.bin} test_dispatcher.py && ${python.bin} test_robustapply.py && ${python.bin} test_saferef.py
    test.dir        ${build.dir}/tests
    test.env        PYTHONPATH=${worksrcpath}/build/lib
    test.target

    post-destroot   {
        file delete -force ${destroot}${prefix}/share/doc/${subport}
        file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${subport}
    }

    livecheck.type  none
}
