Modified: trunk/dports/python/py-parsing/Portfile (108741 => 108742)
--- 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