[135876] trunk/dports/python/py-mitmproxy/Portfile
petr at macports.org
petr at macports.org
Wed May 6 02:10:06 PDT 2015
Revision: 135876
https://trac.macports.org/changeset/135876
Author: petr at macports.org
Date: 2015-05-06 02:10:06 -0700 (Wed, 06 May 2015)
Log Message:
-----------
py-mitmproxy: use pypi pattern and add livecheck
Modified Paths:
--------------
trunk/dports/python/py-mitmproxy/Portfile
Modified: trunk/dports/python/py-mitmproxy/Portfile
===================================================================
--- trunk/dports/python/py-mitmproxy/Portfile 2015-05-06 07:32:50 UTC (rev 135875)
+++ trunk/dports/python/py-mitmproxy/Portfile 2015-05-06 09:10:06 UTC (rev 135876)
@@ -4,8 +4,10 @@
PortSystem 1.0
PortGroup python 1.0
-set real_name mitmproxy
-name py-mitmproxy
+set _name mitmproxy
+set _n [string index ${_name} 0]
+
+name py-${_name}
version 0.10.1
revision 1
categories-append www
@@ -23,8 +25,8 @@
same functionality but without the user interface. Think tcpdump for HTTP.
homepage http://mitmproxy.org/
-master_sites https://pypi.python.org/packages/source/m/${real_name}/
-distname ${real_name}-${version}
+master_sites https://pypi.python.org/packages/source/${_n}/${_name}/
+distname ${_name}-${version}
checksums rmd160 0fb144d4907f9402c475f84d2f8706cfdb81365e \
sha256 527cbff76e0d49d7db62561252d399e1c747730676515c4ed89250c223e2fe56
@@ -39,4 +41,10 @@
port:py${python.version}-urwid \
port:py${python.version}-lxml \
port:py${python.version}-Pillow
+
+ 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/20150506/0a43f0d5/attachment.html>
More information about the macports-changes
mailing list