categories-append textproc www
description Python wrapper for tidylib
A new Python wrapper for tidylib, which allows you to convert slightly \
invalid HTML/XHTML markup into valid markup. E.g. this Python tidy \
library will correct unescaped ampersands, some unclosed tags, missing \
elements, missing attributes, etc. Tidylib is highly configurable. It can \
output HTML or XHTML, and perform other functions such as converting \
named entities to numeric entities (named entities work only along with \
an HTML or XHTML doctype, numeric entities work in generic XML data).
homepage http://countergram.com/open-source/pytidylib/
master_sites http://cloud.github.com/downloads/countergram/pytidylib/
distname pytidylib-${version}
checksums md5 1da834d4305f0ff7efacc20c8783efd3 \
sha1 0e3d89ce52289af641996fe0243417607bc5e941 \
rmd160 82db29a4cdd530aa7eb72c2da1131b7615c2def5
if {${name} ne ${subport}} {
depends_lib-append port:tidy
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
xinstall -m 644 -W ${worksrcpath} LICENSE README \
${destroot}${prefix}/share/doc/${subport}
copy {*}[glob ${worksrcpath}/docs/*] \
${destroot}${prefix}/share/doc/${subport}
livecheck.url https://github.com/countergram/pytidylib/downloads
livecheck.regex {pytidylib-([0-9.]+)\.tar\.gz}