# -*- 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
# $Id: Portfile 106911 2013-06-11 14:40:14Z jmr@macports.org $

PortSystem 1.0
PortGroup python 1.0

name                py-dispatcher
version             2.0.1
categories-append   devel
license             BSD
platforms           darwin
supported_archs     noarch
maintainers         dh 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            http://pydispatcher.sourceforge.net/
master_sites        sourceforge:pydispatcher
distname            PyDispatcher-${version}
checksums           md5     8b1695ed6f5bdbda8fbcde82b62d505c \
                    sha1    1ad6f2feb48ff2ff53d23faacfcc00cc627b078b \
                    rmd160  601836d7a6333043be8063f81e90573637cfd7e5

python.versions     26

if {$subport != $name} {
    depends_build       port:py${python.version}-setuptools

    test.run            yes
    test.cmd            ${python.bin} tests/test.py
    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}
    }
}
