# -*- 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-utidylib
python.rootname     uTidylib
version             0.10
revision            0

supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         amln.net:dima openmaintainer

description         Python interface to html tidy
long_description    {*}${description}, the html and xml cleanup tool from the w3c.

homepage            https://www.berlios.de/software/utidylib/

checksums           rmd160  84fd9d2e38db4cb49ede729fad2f2db9c219b6ad \
                    sha256  95fe538c6cd1ea08d7df99d56a5816cb0571a06038189c03518024064edee60f \
                    size    16959

python.versions     313

if {${name} ne ${subport}} {
    patchfiles      patch-tidy_lib.py.diff

    post-patch {
        reinplace "s|@@TIDY_LIB@@|${prefix}/lib|g" \
            ${worksrcpath}/tidy/lib.py
    }

    depends_lib-append \
                    port:tidy
}
