[146435] trunk/dports/python/py-prettytable/Portfile

petr at macports.org petr at macports.org
Mon Mar 7 07:25:09 PST 2016


Revision: 146435
          https://trac.macports.org/changeset/146435
Author:   petr at macports.org
Date:     2016-03-07 07:25:09 -0800 (Mon, 07 Mar 2016)
Log Message:
-----------
py-prettytable: fix livecheck

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

Modified: trunk/dports/python/py-prettytable/Portfile
===================================================================
--- trunk/dports/python/py-prettytable/Portfile	2016-03-07 15:20:52 UTC (rev 146434)
+++ trunk/dports/python/py-prettytable/Portfile	2016-03-07 15:25:09 UTC (rev 146435)
@@ -4,6 +4,9 @@
 PortSystem          1.0
 PortGroup           python 1.0
 
+set _name           PrettyTable
+set _n              [string index ${_name} 0]
+
 name                py-prettytable
 version             0.6.1
 platforms           darwin
@@ -23,8 +26,8 @@
                     row range.
 categories-append   textproc
 
-homepage            https://pypi.python.org/pypi/PrettyTable
-master_sites        https://pypi.python.org/packages/source/P/PrettyTable
+homepage            https://pypi.python.org/pypi/${_name}
+master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/
 distname            prettytable-${version}
 
 checksums           rmd160  bd1ba3653d6665dec40f0954bc371aab19dc4353 \
@@ -34,4 +37,10 @@
 
 if {$subport ne $name} {
     depends_build       port:py${python.version}-setuptools
+
+    livecheck.type  none
+} else {
+    livecheck.type  regex
+    livecheck.url   https://pypi.python.org/pypi/${_name}/json
+    livecheck.regex "\"prettytable-(\[.\\d\]+)\\${extract.suffix}\""
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160307/8679b968/attachment.html>


More information about the macports-changes mailing list