[114144] trunk/dports/python/py-unittest2/Portfile

aronnax at macports.org aronnax at macports.org
Sat Nov 30 03:41:47 PST 2013


Revision: 114144
          https://trac.macports.org/changeset/114144
Author:   aronnax at macports.org
Date:     2013-11-30 03:41:47 -0800 (Sat, 30 Nov 2013)
Log Message:
-----------
py-unittest2: fix livecheck

Modified Paths:
--------------
    trunk/dports/python/py-unittest2/Portfile

Modified: trunk/dports/python/py-unittest2/Portfile
===================================================================
--- trunk/dports/python/py-unittest2/Portfile	2013-11-30 11:38:10 UTC (rev 114143)
+++ trunk/dports/python/py-unittest2/Portfile	2013-11-30 11:41:47 UTC (rev 114144)
@@ -24,7 +24,13 @@
 
 homepage            http://pypi.python.org/pypi/unittest2
 
-if {${subport} != ${name}} {
+if {${subport} == ${name}} {
+    livecheck.type      regex
+    livecheck.url       {http://pypi.python.org/pypi?:action=doap&name=unittest2}
+    livecheck.regex     {<release><Version><revision>([^<]+)</revision></Version></release>}
+} else {
+    livecheck.type      none
+
     if {${python.version} < 30} {
         master_sites        http://pypi.python.org/packages/source/u/unittest2/
         distname            unittest2-${version}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131130/a08ec797/attachment-0001.html>


More information about the macports-changes mailing list