Revision: 100800 https://trac.macports.org/changeset/100800 Author: vince@macports.org Date: 2012-12-26 04:06:15 -0800 (Wed, 26 Dec 2012) Log Message: ----------- Added a patch for python 3 support and upgraded the subports accordingly Modified Paths: -------------- trunk/dports/python/py-configobj/Portfile Modified: trunk/dports/python/py-configobj/Portfile =================================================================== --- trunk/dports/python/py-configobj/Portfile 2012-12-26 09:56:20 UTC (rev 100799) +++ trunk/dports/python/py-configobj/Portfile 2012-12-26 12:06:15 UTC (rev 100800) @@ -5,7 +5,7 @@ PortGroup python 1.0 name py-configobj -version 4.6.0 +version 4.7.2 license BSD maintainers akitada openmaintainer description Config file reading, writing and validation. @@ -38,13 +38,22 @@ master_sites sourceforge:configobj distname configobj-${version} use_zip yes -checksums md5 286907e06061e272137f48e5f611a526 \ - sha1 b6f2863c67c461702188f3eae0d57fa7dc4ceac6 \ - rmd160 d2b102a6642237ef3780c5efc9de48356ed472fc +checksums md5 51cee395cfbf831339b03f72706de18e \ + sha1 2e6e33a5f685926bea2d4745cf81403c2c974e81 \ + rmd160 a4301775b5bc7c893f8ee32df5160bc5559fd541 -python.versions 24 25 26 27 +python.versions 24 25 26 27 31 32 if {$subport != $name} { + # Patch for Python3 + post-extract { + if {[string match py3* ${subport}]} { + ui_msg "Patching for python 3.x" + reinplace -E "s|(except .*)\\, e|\\1 as e|" \ + ${worksrcpath}/configobj.py + } + } + post-destroot { foreach f [glob -directory ${worksrcpath}/docs *] { copy $f ${destroot}${prefix}/share/doc/${subport}/[file tail $f]