# -*- 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 84512 2011-09-27 14:19:06Z snc@macports.org $

PortSystem 1.0
PortGroup python26 1.0

name                py26-dispatcher
version             2.0.1
categories          python devel
platforms           darwin
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

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/${name}
    file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
}
