# -*- 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           perl5 1.0

perl5.branches      5.28 5.30 5.32 5.34
perl5.setup         HTML-Tidy 1.60
license             {Artistic-1 GPL}
maintainers         nomaintainer
description         HTML::Tidy - (X)HTML validation in a Perl object
long_description    ${description}

platforms           darwin

checksums           rmd160  3bd30628494b72286cd27342e2bd888347e5f4dc \
                    sha256  bcfbf65d687f8e672cf60c9821bcd65d5e8c72a78272b67bb0ac1c699a13d7c7

if {${perl5.major} != ""} {
    depends_build-append \
                    port:p${perl5.major}-test-exception

    depends_lib-append \
                    port:p${perl5.major}-libwww-perl \
                    port:tidyp

    post-patch {
        reinplace "s|/usr/include|${prefix}/include|g" ${worksrcpath}/Makefile.PL
    }
}
