[126380] trunk/dports/python/py-pyregion/Portfile
petr at macports.org
petr at macports.org
Thu Oct 9 00:15:11 PDT 2014
Revision: 126380
https://trac.macports.org/changeset/126380
Author: petr at macports.org
Date: 2014-10-09 00:15:11 -0700 (Thu, 09 Oct 2014)
Log Message:
-----------
py-pyregion: replaced py3{1,2} subports against py3{3,4}, add livecheck, related edits, replace !=, closes #45295 (openmaintainer)
Modified Paths:
--------------
trunk/dports/python/py-pyregion/Portfile
Modified: trunk/dports/python/py-pyregion/Portfile
===================================================================
--- trunk/dports/python/py-pyregion/Portfile 2014-10-09 05:12:52 UTC (rev 126379)
+++ trunk/dports/python/py-pyregion/Portfile 2014-10-09 07:15:11 UTC (rev 126380)
@@ -4,7 +4,10 @@
PortSystem 1.0
PortGroup python 1.0
-name py-pyregion
+set _name pyregion
+set _n [string index ${_name} 0]
+
+name py-${_name}
version 1.1.2
maintainers robitaille openmaintainer
@@ -14,21 +17,26 @@
platforms darwin
-homepage http://leejjoon.github.com/pyregion/
-master_sites https://pypi.python.org/packages/source/p/pyregion/
-distname pyregion-${version}
-checksums md5 61dde9206ab4ba731279a4737cc5a5a5 \
- sha1 4f08281b90e7b131cab5db7144c8e572288d2794 \
+homepage http://leejjoon.github.com/${_name}/
+master_sites https://pypi.python.org/packages/source/${_n}/${_name}/
+distname ${_name}-${version}
+
+checksums md5 61dde9206ab4ba731279a4737cc5a5a5 \
+ sha1 4f08281b90e7b131cab5db7144c8e572288d2794 \
rmd160 b1d973b8bd9fa5ed03d40f0a160cf41a61e72b2c
-python.versions 26 27 31 32
-python.default_version 27
+python.versions 26 27 33 34
-if {${subport} != ${name}} {
-
+if {${name} ne ${subport}} {
depends_build-append port:py${python.version}-numpy
depends_run-append port:py${python.version}-matplotlib \
port:py${python.version}-parsing \
port:py${python.version}-astropy
+
+ livecheck.type none
+} else {
+ livecheck.type regex
+ livecheck.url [lindex ${master_sites} 0]
+ livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141009/c525d807/attachment.html>
More information about the macports-changes
mailing list