[146978] trunk/dports/python/py-argh/Portfile
petr at macports.org
petr at macports.org
Tue Mar 22 11:27:29 PDT 2016
Revision: 146978
https://trac.macports.org/changeset/146978
Author: petr at macports.org
Date: 2016-03-22 11:27:29 -0700 (Tue, 22 Mar 2016)
Log Message:
-----------
py-argh: fix livecheck, use pypi pattern
Modified Paths:
--------------
trunk/dports/python/py-argh/Portfile
Modified: trunk/dports/python/py-argh/Portfile
===================================================================
--- trunk/dports/python/py-argh/Portfile 2016-03-22 18:27:02 UTC (rev 146977)
+++ trunk/dports/python/py-argh/Portfile 2016-03-22 18:27:29 UTC (rev 146978)
@@ -4,8 +4,10 @@
PortSystem 1.0
PortGroup python 1.0
-name py-argh
-set real_name argh
+set _name argh
+set _n [string index ${_name} 0]
+
+name py-${_name}
version 0.24.1
platforms darwin
license LGPL-3+
@@ -17,9 +19,9 @@
long_description \
${description}
-homepage https://bitbucket.org/neithere/${real_name}/
-master_sites https://pypi.python.org/packages/source/a/${real_name}
-distname ${real_name}-${version}
+homepage https://bitbucket.org/neithere/${_name}/
+master_sites https://pypi.python.org/packages/source/${_n}/${_name}
+distname ${_name}-${version}
checksums md5 67ef29c2a32b206228933d94cdfeda96 \
rmd160 272d128abc9ec5e331c03a6086e307210b5e5ddc \
@@ -29,4 +31,10 @@
if {${name} ne ${subport}} {
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 "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160322/842d90ab/attachment.html>
More information about the macports-changes
mailing list