# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0

name                py-pytidylib
version             0.3.2
revision            0
checksums           rmd160  962e9c5a32861e61342c351635b57f36e12e3d9c \
                    sha256  22b1c8d75970d8064ff999c2369e98af1d0685417eda4c829a5c9f56764b0af3 \
                    size    87669

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 any}
supported_archs     noarch

homepage            https://countergram.github.io/pytidylib/

python.versions     39 310

if {${name} ne ${subport}} {
    depends_lib-append  port:tidy

    post-destroot {
       xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${subport}
       xinstall -m 0644 -W ${worksrcpath} LICENSE README \
          ${destroot}${prefix}/share/doc/${subport}
       copy {*}[glob ${worksrcpath}/docs/*] \
          ${destroot}${prefix}/share/doc/${subport}
    }
}
