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

PortSystem         1.0
PortGroup          python27 1.0

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

description        buildslave for buildbot continuous integration system
long_description   Buildbot is a system to automate the \
  compile/test cycle required by most software projects to validate \
  code changes. This port provides the slave side of the system.

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

checksums          rmd160 dcf33994816786b6760e9d2b0a0d391f5e77ae42 \
                   sha256 bbdb07a3847efa186f942142a09394b467d7375745c49da0a42e9aa5b206eadc

depends_lib-append port:py27-twisted

python.link_binaries_suffix

post-destroot {
  xinstall -m 644 -W ${worksrcpath} COPYING NEWS README \
    ${destroot}${prefix}/share/doc/${name}
  xinstall -m 644 ${worksrcpath}/docs/buildslave.1 \
    ${destroot}${prefix}/share/man/man1
}

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