# $Id: Portfile 99945 2012-11-22 01:21:50Z ram@macports.org $

PortSystem         1.0
PortGroup          python27 1.0

name               buildbot
version            0.8.7p1
categories         devel python
platforms          darwin
supported_archs    noarch
license            GPL-2
maintainers        nomaintainer

description        compile/test cycle automation system
long_description   The BuildBot is a system to automate the compile/test \
  cycle required by most software projects to validate code changes.

homepage           http://buildbot.net/
master_sites       googlecode:buildbot
dist_subdir        ${name}

checksums          rmd160 503feeae40e5f05b2a6aff448ff22b03a5b84a15 \
                   sha256 8dee3f887bce55a7f7cf01e6c421a2511898c2f89f55f202f5193a100a9a5776

depends_lib-append port:py27-twisted \
                   port:py27-jinja2 \
                   port:py27-sqlalchemy \
                   port:py27-sqlalchemy-migrate

python.link_binaries_suffix

post-destroot {
  xinstall -m 644 -W ${worksrcpath} README COPYING CREDITS NEWS \
    ${destroot}${prefix}/share/doc/${name}
}

# note some tests need py27-mock
test.run           yes
test.env           PYTHONPATH=.
test.cmd           ${prefix}/bin/trial-${python.branch}
test.target        buildbot.test
