# $Id: Portfile 92262 2012-04-23 06:49:45Z ram@macports.org $

PortSystem         1.0
PortGroup          python27 1.0

name               buildbot-slave
version            0.8.6p1
categories         devel python
platforms          darwin
supported_archs    noarch
license            GPL-2
maintainers        ram openmaintainer

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 e1a73bab81662bf8e3c96ec0f8d27b4dd6126c88 \
                   sha256 43e6f94a7c37e103af755bc4f9b2ede945cf3c4247b22f595c5ab1c21ccf092f

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
