[146973] trunk/dports/python/py-aniso8601/Portfile
petr at macports.org
petr at macports.org
Tue Mar 22 11:16:56 PDT 2016
Revision: 146973
https://trac.macports.org/changeset/146973
Author: petr at macports.org
Date: 2016-03-22 11:16:56 -0700 (Tue, 22 Mar 2016)
Log Message:
-----------
py-aniso8601: fix livecheck
Modified Paths:
--------------
trunk/dports/python/py-aniso8601/Portfile
Modified: trunk/dports/python/py-aniso8601/Portfile
===================================================================
--- trunk/dports/python/py-aniso8601/Portfile 2016-03-22 18:11:10 UTC (rev 146972)
+++ trunk/dports/python/py-aniso8601/Portfile 2016-03-22 18:16:56 UTC (rev 146973)
@@ -4,6 +4,9 @@
PortSystem 1.0
PortGroup python 1.0
+set _name aniso8601
+set _n [string index ${_name} 0]
+
name py-aniso8601
version 0.82
@@ -16,7 +19,7 @@
description A library for parsing ISO 8601 strings
long_description ${description}
-master_sites http://pypi.python.org/packages/source/a/aniso8601/
+master_sites http://pypi.python.org/packages/source/${_n}/${_name}
distname aniso8601-${version}
checksums rmd160 309d4f27849d9db327f66f7911bae56b5bea57fa \
@@ -32,6 +35,6 @@
livecheck.url
} else {
livecheck.type regex
- livecheck.url ${master_sites}
- livecheck.regex "aniso8601-(\\d+(?:\\.\\d+)*)${extract.suffix}"
+ 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/2969f1e7/attachment-0001.html>
More information about the macports-changes
mailing list