Revision: 117306 https://trac.macports.org/changeset/117306 Author: g5pw@macports.org Date: 2014-02-21 10:01:25 -0800 (Fri, 21 Feb 2014) Log Message: ----------- python/py-BitVector: update to 3.3.1 use a template to deal with realname implement livecheck, the default behavior is broken here closes #42440 Modified Paths: -------------- trunk/dports/python/py-BitVector/Portfile Modified: trunk/dports/python/py-BitVector/Portfile =================================================================== --- trunk/dports/python/py-BitVector/Portfile 2014-02-21 17:56:54 UTC (rev 117305) +++ trunk/dports/python/py-BitVector/Portfile 2014-02-21 18:01:25 UTC (rev 117306) @@ -4,8 +4,10 @@ PortSystem 1.0 PortGroup python 1.0 -name py-BitVector -version 3.3 +set _name BitVector + +name py-${_name} +version 3.3.1 categories-append math platforms darwin @@ -19,14 +21,14 @@ representation of bit arrays and for logical operations \ on such arrays. It is written in pure Python. -homepage https://engineering.purdue.edu/kak/dist/BitVector-${version}.html +homepage https://engineering.purdue.edu/kak/dist/${_name}-${version}.html -distname BitVector-${version} +distname ${_name}-${version} master_sites https://engineering.purdue.edu/kak/dist -checksums md5 5cd94e48eefabac749edaebf8337fc5a \ - rmd160 1228aa6855a8958dd14ecbe5c639f3d343588183 \ - sha256 ad82343d3e12f2538a250de3385c2511e980e85478f858659c5280eb988d0484 +checksums md5 08cde7d782b7a5a721a94225a1488985 \ + rmd160 9b1cae21dc0852f826625770da8cede6878f3271 \ + sha256 798ace69f4f845722ee67648ff13ac29aba966f7ebd56f7ae0d1035054a0c6b4 python.versions 26 27 31 32 33 34 @@ -47,10 +49,17 @@ # Adding documentation & examples post-destroot { - copy ${worksrcpath}/${distname}.html ${destroot}${prefix}/share/doc/${subport} + set dest_doc ${destroot}${prefix}/share/doc/${subport} + copy ${worksrcpath}/${distname}.html ${dest_doc} # Avoid creation of example directory - delete ${destroot}${prefix}/share/doc/${subport}/examples - copy ${worksrcpath}/Examples ${destroot}${prefix}/share/doc/${subport}/examples + delete ${dest_doc}/examples + copy ${worksrcpath}/Examples ${dest_doc}/examples } + + livecheck.type none +} else { + livecheck.type regex + livecheck.url [lindex ${master_sites} 0] + livecheck.regex "${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}" }