# -*- 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.7
revision            0

categories-append   devel
license             BSD
supported_archs     noarch
platforms           {darwin any}
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}

checksums           rmd160  f56563c2eb881bcad4dd24c6e0a53cbbaaa80a2b \
                    sha256  b777c6ad080dc1bad74a4c29d6a46914fa6701ac70f94b0d66fbcfde62f5be31 \
                    size    38891

python.versions     39 310 311 312

if {${name} ne ${subport}} {
    test.run        yes
    python.test_framework unittest

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