source: trunk/dports/devel/buildbot-slave/Portfile

Last change on this file was 151003, checked in by ryandesign@…, 12 months ago

buildbot, buildbot-slave: take over as maintainer

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 151003 2016-08-05 14:02:18Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               python 1.0
6
7name                    buildbot-slave
8version                 0.8.12
9revision                2
10categories              devel python
11platforms               darwin
12supported_archs         noarch
13license                 GPL-2
14maintainers             ryandesign openmaintainer
15
16description             buildslave for buildbot continuous integration system
17
18long_description        Buildbot is a system to automate the compile/test \
19                        cycle required by most software projects to validate \
20                        code changes. This port provides the slave side of \
21                        the system.
22
23homepage                http://buildbot.net/
24master_sites            https://pypi.python.org/packages/source/b/buildbot-slave/
25dist_subdir             ${name}
26
27checksums               md5     a5bdda0174e0428b14580323d35b221f \
28                        rmd160  42c30f14bace0871f16f4094e72caf440e843643 \
29                        sha256  905eab122dcfc9425d51f0ed0c7682e7f933e140a7203637aa12a84498bd7461
30
31python.default_version  27
32
33depends_lib-append      port:py${python.version}-twisted
34
35build.env               NO_INSTALL_REQS=1
36
37set sharedir            ${prefix}/share/${subport}
38set docdir              ${prefix}/share/doc/${subport}
39set plistfile           org.macports.buildslave.template.plist
40
41# Add a user that can be used to run the buildbot slave
42add_users               buildbot group=buildbot
43
44pre-extract {
45    file mkdir ${worksrcpath}/macports
46    copy ${filespath}/${plistfile} ${worksrcpath}/macports/${plistfile}
47}
48
49post-patch {
50    reinplace -locale C "s|@PREFIX@|${prefix}|g" ${worksrcpath}/macports/${plistfile}
51}
52
53post-destroot {
54    xinstall -d ${destroot}${docdir}
55    xinstall -m 644 -W ${worksrcpath} COPYING NEWS README UPGRADING \
56        ${destroot}${docdir}
57    xinstall -m 644 ${worksrcpath}/docs/buildslave.1 \
58        ${destroot}${prefix}/share/man/man1
59    xinstall -d ${destroot}${sharedir}
60    xinstall -m 755 ${worksrcpath}/macports/${plistfile} \
61        ${destroot}${sharedir}
62}
63
64# note some tests need py-mock
65#depends_test           port:py${python.version}-mock
66test.run                yes
67test.env                PYTHONPATH=.
68test.cmd                ${prefix}/bin/trial-${python.branch}
69test.target             buildslave.test
70
71livecheck.type          regex
72livecheck.url           https://pypi.python.org/pypi/${name}/
73livecheck.regex         {buildbot-slave\/(\d+\.\d+(?:\.\d+))\"}
74#livecheck.regex        {buildbot-slave\/(\d+\.\d+(?:\.\d+)(?:b\d))}
75
76notes "
77An example launchd plist file is available in ${sharedir}. After you have\
78created your build slave, edit the WorkingDirectory field to appropriate\
79values. As the root user, copy it to /Library/LaunchDaemons and instruct\
80launchd to run it with:
81
82sudo launchctl load -w /Library/LaunchDaemons/your.plist.name
83"
Note: See TracBrowser for help on using the repository browser.