[101477] trunk/dports/python/py-parsing/Portfile
snc at macports.org
snc at macports.org
Fri Jan 11 09:56:12 PST 2013
Revision: 101477
https://trac.macports.org/changeset/101477
Author: snc at macports.org
Date: 2013-01-11 09:56:12 -0800 (Fri, 11 Jan 2013)
Log Message:
-----------
py-parsing: update to 2.0.0 for Python3
Modified Paths:
--------------
trunk/dports/python/py-parsing/Portfile
Modified: trunk/dports/python/py-parsing/Portfile
===================================================================
--- trunk/dports/python/py-parsing/Portfile 2013-01-11 17:51:09 UTC (rev 101476)
+++ trunk/dports/python/py-parsing/Portfile 2013-01-11 17:56:12 UTC (rev 101477)
@@ -6,6 +6,12 @@
name py-parsing
version 1.5.7
+# Python3 uses version 2.x
+if {$subport != $name} {
+ if {[string range [option subport] 2 3] > 30} {
+ version 2.0.0
+ }
+}
categories-append lang
platforms darwin
maintainers snc openmaintainer
@@ -29,13 +35,19 @@
python.versions 24 25 26 27 31 32 33
if {$subport != $name} {
- post-destroot {
- set docdir ${destroot}${prefix}/share/doc/${subport}
- xinstall -d ${docdir}
- xinstall -m 644 -W ${worksrcpath} CHANGES HowToUsePyparsing.html \
- LICENSE README ${docdir}
- eval xinstall -m 644 [glob ${worksrcpath}/docs/*] ${docdir}
- eval xinstall -m 644 [glob ${worksrcpath}/examples/*] ${docdir}/examples/
+ if {[string range [option subport] 2 3] > 30} {
+ checksums rmd160 31390927fab542ee63775458b1a4c3f5c344c0b3 \
+ sha256 79f9a468b7faad54122369b333e09a7cb80e9b68af4401bf0d19c1e7af646d0e
+
+ } else {
+ post-destroot {
+ set docdir ${destroot}${prefix}/share/doc/${subport}
+ xinstall -d ${docdir}
+ xinstall -m 644 -W ${worksrcpath} CHANGES HowToUsePyparsing.html \
+ LICENSE README ${docdir}
+ eval xinstall -m 644 [glob ${worksrcpath}/docs/*] ${docdir}
+ eval xinstall -m 644 [glob ${worksrcpath}/examples/*] ${docdir}/examples/
+ }
}
livecheck.type none
} else {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130111/f9ed92bd/attachment-0001.html>
More information about the macports-changes
mailing list