source: trunk/dports/devel/buildbot/Portfile

Last change on this file was 151079, checked in by ryandesign@…, 16 months ago

buildbot: sort tags on waterfall help page

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 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 151079 2016-08-06 16:23:04Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               python 1.0
6
7name                    buildbot
8version                 0.8.12
9revision                7
10categories              devel python
11platforms               darwin
12supported_archs         noarch
13license                 GPL-2
14maintainers             ryandesign openmaintainer
15
16description             compile/test cycle automation system
17
18long_description        The BuildBot is a system to automate the compile/test \
19                        cycle required by most software projects to validate \
20                        code changes.
21
22homepage                http://buildbot.net/
23master_sites            https://pypi.python.org/packages/source/b/buildbot/
24dist_subdir             ${name}
25
26checksums               md5     c61fa219942f8a1ed43cdbc1e4ef0187 \
27                        rmd160  3ec4f77befce8993c0ddca4416a494201be52fa5 \
28                        sha256  c6b66976dff712268566574d57131ec15e5682f6d4390cd5c8559bab0980c4d6
29
30python.default_version  27
31
32depends_lib-append      port:py${python.version}-dateutil \
33                        port:py${python.version}-jinja2 \
34                        port:py${python.version}-sqlalchemy \
35                        port:py${python.version}-sqlalchemy-migrate \
36                        port:py${python.version}-twisted
37
38patchfiles-append       patch-allowRecent_SQA_Migrate.diff \
39                        patch-buildbot-status-web-console.py.diff \
40                        patch-buildbot-status-web-grid.py.diff \
41                        patch-buildbot-status-web-waterfall.py.diff \
42                        patch-buildbot-steps-trigger.py.diff
43
44build.env               NO_INSTALL_REQS=1
45
46set sharedir            ${prefix}/share/${subport}
47set docdir              ${prefix}/share/doc/${subport}
48set plistfile           org.macports.buildmaster.template.plist
49
50post-extract {
51    file mkdir ${worksrcpath}/macports
52    copy ${filespath}/${plistfile} ${worksrcpath}/macports/${plistfile}
53}
54
55post-patch {
56    reinplace -locale C "s|@PREFIX@|${prefix}|g" ${worksrcpath}/macports/${plistfile}
57}
58
59post-destroot {
60    xinstall -d ${destroot}${docdir}
61    xinstall -m 644 -W ${worksrcpath} README COPYING CREDITS NEWS UPGRADING \
62        ${destroot}${docdir}
63    xinstall -d ${destroot}${sharedir}
64    xinstall -m 755 ${worksrcpath}/macports/${plistfile} \
65        ${destroot}${sharedir}
66}
67
68# note some tests need py-mock
69#depends_test            port:py${python.version}-mock
70test.run                yes
71test.env                PYTHONPATH=.
72test.cmd                ${prefix}/bin/trial-${python.branch}
73test.target             buildbot.test
74
75livecheck.type          regex
76livecheck.url           https://pypi.python.org/pypi/${name}/
77livecheck.regex         {buildbot\/(\d+\.\d+(?:\.\d+))\"}
78#livecheck.regex        {buildbot\/(\d+\.\d+(?:\.\d+)(?:b\d))}
79
80notes "
81An example launchd plist file is available in ${sharedir}. After you have\
82created your build master, edit the UserName and WorkingDirectory fields to\
83appropriate values. As the root user, copy it to /Library/LaunchDaemons and\
84instruct launchd to run it with:
85
86sudo launchctl load -w /Library/LaunchDaemons/your.plist.name
87"
Note: See TracBrowser for help on using the repository browser.