[108742] trunk/dports/python/py-parsing/Portfile
snc at macports.org
snc at macports.org
Wed Jul 31 13:18:50 PDT 2013
Revision: 108742
https://trac.macports.org/changeset/108742
Author: snc at macports.org
Date: 2013-07-31 13:18:49 -0700 (Wed, 31 Jul 2013)
Log Message:
-----------
py{26,27,31,32,33}-parsing: update to 2.0.1
Modified Paths:
--------------
trunk/dports/python/py-parsing/Portfile
Modified: trunk/dports/python/py-parsing/Portfile
===================================================================
--- trunk/dports/python/py-parsing/Portfile 2013-07-31 20:10:39 UTC (rev 108741)
+++ trunk/dports/python/py-parsing/Portfile 2013-07-31 20:18:49 UTC (rev 108742)
@@ -6,10 +6,10 @@
name py-parsing
version 1.5.7
-# Python3 uses version 2.x
+# Python26 and newer uses version 2.x
if {$subport != $name} {
- if {[string range [option subport] 2 3] > 30} {
- version 2.0.0
+ if {${python.version} > 25} {
+ version 2.0.1
}
}
categories-append lang
@@ -35,9 +35,9 @@
python.versions 25 26 27 31 32 33
if {$subport != $name} {
- if {[string range [option subport] 2 3] > 30} {
- checksums rmd160 31390927fab542ee63775458b1a4c3f5c344c0b3 \
- sha256 79f9a468b7faad54122369b333e09a7cb80e9b68af4401bf0d19c1e7af646d0e
+ if {${python.version} > 25} {
+ checksums rmd160 6001ee51f2098235968045d738d74d951d48110e \
+ sha256 0007cd3f008eba4a203f1f6b4b133ddc352552c8808b694c88c23db56416e4e4
} else {
post-destroot {
@@ -50,9 +50,9 @@
}
}
- if {[string range [option subport] 2 3] == 33} {
+ if {${python.version} == 33} {
livecheck.regex pyparsing-(2(\\.\\d+)+)
- } elseif {[string range [option subport] 2 3] == 27} {
+ } elseif {${python.version} == 25} {
livecheck.regex pyparsing-(1(\\.\\d+)+)
} else {
livecheck.type none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130731/f4d1ed45/attachment.html>
More information about the macports-changes
mailing list