[145637] trunk/dports/devel/buildbot/Portfile

ctreleaven at macports.org ctreleaven at macports.org
Thu Feb 11 10:54:26 PST 2016


Revision: 145637
          https://trac.macports.org/changeset/145637
Author:   ctreleaven at macports.org
Date:     2016-02-11 10:54:26 -0800 (Thu, 11 Feb 2016)
Log Message:
-----------
buildbot: patch to permit use of recent SQLAlchemy-Migrate, add template launchd plist, fix livecheck

Modified Paths:
--------------
    trunk/dports/devel/buildbot/Portfile

Modified: trunk/dports/devel/buildbot/Portfile
===================================================================
--- trunk/dports/devel/buildbot/Portfile	2016-02-11 18:52:48 UTC (rev 145636)
+++ trunk/dports/devel/buildbot/Portfile	2016-02-11 18:54:26 UTC (rev 145637)
@@ -6,6 +6,7 @@
 
 name                    buildbot
 version                 0.8.12
+revision                2
 categories              devel python
 platforms               darwin
 supported_archs         noarch
@@ -34,14 +35,30 @@
                         port:py${python.version}-sqlalchemy-migrate \
                         port:py${python.version}-twisted
 
+patchfiles-append      patch-allowRecent_SQA_Migrate.diff
+
 build.env               NO_INSTALL_REQS=1
 
+set sharedir            ${prefix}/share/${subport}
 set docdir              ${prefix}/share/doc/${subport}
+set plistfile           org.macports.buildmaster.template.plist
 
+post-extract {
+    file mkdir ${worksrcpath}/macports
+    copy ${filespath}/${plistfile} ${worksrcpath}/macports/${plistfile}
+}
+
+post-patch {
+    reinplace -locale C "s|@PREFIX@|${prefix}|g" ${worksrcpath}/macports/${plistfile}
+}
+
 post-destroot {
     xinstall -d ${destroot}${docdir}
     xinstall -m 644 -W ${worksrcpath} README COPYING CREDITS NEWS UPGRADING \
         ${destroot}${docdir}
+    xinstall -d ${destroot}${sharedir}
+    xinstall -m 755 ${worksrcpath}/macports/${plistfile} \
+        ${destroot}${sharedir}
 }
 
 # note some tests need py-mock
@@ -50,3 +67,17 @@
 test.env                PYTHONPATH=.
 test.cmd                ${prefix}/bin/trial-${python.branch}
 test.target             buildbot.test
+
+livecheck.type  regex
+livecheck.url   https://pypi.python.org/pypi/${name}/
+livecheck.regex {buildbot\/(\d+\.\d+(?:\.\d+)(?:b\d))}
+
+notes "
+
+An example launchd plist file is available in ${sharedir}.  After you have
+created your build master, edit the UserName and WorkingDirectory fields to
+appropriate values. As the root user, copy it to /Library/LaunchDaemons and
+instruct launchd to run it with:
+sudo launchctl load -w /Library/LaunchDaemons/your.plist.name
+
+"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160211/3516f9fe/attachment.html>


More information about the macports-changes mailing list