Revision: 92506 https://trac.macports.org/changeset/92506 Author: eborisch@macports.org Date: 2012-04-30 06:42:19 -0700 (Mon, 30 Apr 2012) Log Message: ----------- pyNN-htmldocs: Update to latest versions; clean up livecheck; simpler permissions setting. Modified Paths: -------------- trunk/dports/lang/py-htmldocs/Portfile Modified: trunk/dports/lang/py-htmldocs/Portfile =================================================================== --- trunk/dports/lang/py-htmldocs/Portfile 2012-04-30 13:40:42 UTC (rev 92505) +++ trunk/dports/lang/py-htmldocs/Portfile 2012-04-30 13:42:19 UTC (rev 92506) @@ -15,16 +15,16 @@ version 2.5.4 } if {${python.version} == 26} { - version 2.6.7 + version 2.6.8 } if {${python.version} == 27} { - version 2.7.2 + version 2.7.3 } if {${python.version} == 31} { - version 3.1.4 + version 3.1.5 } if {${python.version} == 32} { - version 3.2.2 + version 3.2.3 } } @@ -40,7 +40,6 @@ description HTML documentation for Python long_description ${description}. Unified port supplies py2\[567\]-htmldocs homepage http://www.python.org/ -livecheck.type none if {${name} != ${subport}} { description HTML documentation for Python ${version} @@ -51,41 +50,31 @@ distname python-${version}-docs-html set extractname ${distname} - livecheck.url http://www.python.org/ftp/python/doc/ - livecheck.type regex - set version_pattern [string range ${python.version} 0 end-1]\\.[string index ${python.version} end] - livecheck.regex (${version_pattern}\[\\.0-9\]*) - if {${python.version} == 25} { - checksums md5 b4041ec1faf9b6070aad451eeb5ab487 \ - sha1 f547228fbabc9b259ca4c4b32daffc813cfe5455 \ - rmd160 78cf1d55bc50b9c4535d1519a11a0a4e1a47a12e distname html-${version} set extractname Python-Docs-2.5.4 + checksums rmd160 78cf1d55bc50b9c4535d1519a11a0a4e1a47a12e \ + sha256 b73eaeaf0400e64d9bb223cfb0d09a935e8044f0ba485e5bc549b003e6df8325 } if {${python.version} == 26} { - checksums md5 a2fc12049840d5c66262c546cdf241fd \ - sha1 8cf151a4fd80f6a636d2292d340cd20858a58132 \ - rmd160 f8ac90c6e97888f1bb0f0207994c0c05d27b83ac + checksums rmd160 9e8291a9d4fe6253ee91818fe085433c363e40d1 \ + sha256 d1ceaf95e63c6728823da23ae15011f98f35b6ac27cf9738ceb6429566b47f26 } if {${python.version} == 27} { - checksums md5 40f0bd51b221662cae14fb0c6b6f622b \ - sha1 0886850a5bcf3e14e903cd33d51d1a8b664cfe36 \ - rmd160 d898264a2f0da8be8722396d25149c987e3614f8 + checksums rmd160 3b10444a0c1dfd412cb1a5b22e568f5ed074a078 \ + sha256 b294008007956d600ec78335d7afedda19bf855b008a3586343cd15f8115e9c1 } if {${python.version} == 31} { - checksums md5 0a4a56361005966cc38d1068dfd52a54 \ - sha1 1167eee9909fb37db471402afac96dfaf3563233 \ - rmd160 dedaece20647681bb3d9e062751b44b78782eb1e + checksums rmd160 29717979d6a8b4e970a4747e101259da3e3890c1 \ + sha256 ff327cfaa1219d8d82fcb4f3bae3ec4ce28567982a49784004130521d282faa0 } if {${python.version} == 32} { - checksums md5 55af06e320f35920ea9fed1f143e1286 \ - sha1 8c44d19d5f1cafc7cece9e2069f88601fdd73722 \ - rmd160 5c2bd261318aa12cbfc4ac80d9c2317e31cad6d3 + checksums rmd160 97f6f586eca112723479837ea902d17d0814a17d \ + sha256 1dd4a63dad800fe4207498b7d1ab1f3a8d7c77073fc8c9f5a519d8079ecf1715 } build {} @@ -94,14 +83,15 @@ set destdocdir ${destroot}${prefix}/share/doc/python${python.version}-doc file mkdir ${destroot}${prefix}/share/doc file copy ${workpath}/${extractname} ${destdocdir} - fs-traverse item ${destdocdir} { - if {[file isdirectory ${item}]} { - file attributes ${item} -permissions a+rx - } elseif {[file isfile ${item}]} { - file attributes ${item} -permissions a+r - } - } + system "chmod -R a+rX ${destdocdir}" } + + livecheck.url http://www.python.org/ftp/python/doc/ + livecheck.type regex + set version_pattern [string range ${python.version} 0 end-1]\\.[string index ${python.version} end] + livecheck.regex (${version_pattern}\[\\.0-9\]*) +} else { + livecheck.type none }