Permalink
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (40 sloc) 1.79 KB
PortSystem 1.0
PortGroup python 1.0
name py-pytidylib
version 0.2.1
categories-append textproc www
license MIT
maintainers nomaintainer
description Python wrapper for tidylib
long_description \
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).
platforms darwin
supported_archs noarch
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
python.versions 27
if {${name} ne ${subport}} {
depends_lib-append port:tidy
post-destroot {
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.type none
} else {
livecheck.url https://github.com/countergram/pytidylib/downloads
livecheck.type regex
livecheck.regex {pytidylib-([0-9.]+)\.tar\.gz}
}