# $Id: Portfile 30249 2007-10-23 02:12:47Z jmpp@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name            py-contract
version         1.1
categories      python
platforms       darwin freebsd
maintainers     nomaintainer
description     programming by contract for python
long_description    Programming by contract allows a programmer to \
                document a function/class with statements describing \
                behavior. The most famous use/example of contracts is \
                in the language Eiffel (also this module is for python).

homepage        http://www.wayforward.net/pycontract
master_sites    ${homepage}
distname        contract-${version}
checksums       rmd160 a0654545eedfbe3374df1fdf2f813839c2d35e7d

test.run        yes
test.cmd        ${python.bin}
test.target     test/testdbc?.py

post-destroot   {
    xinstall -m 644 -W ${worksrcpath} CHANGELOG pep-0316.txt README \
        ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath}/examples circbuf.py sort.py \
        ${destroot}${prefix}/share/doc/${name}/examples
}
