Portfile

# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name py-contract
version 1.0b3
revision 1
categories python
platforms darwin freebsd
maintainers nomaintainer@macports.org
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 md5 97657390e08d5218e5b0aba11a42e365

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
}