# -*- 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           deprecated 1.0
PortGroup           github 1.0

github.setup        petdance tidyp 1.04
# see license statement in tidyp.h
license             MIT
categories          www
platforms           darwin
maintainers         nomaintainer

description         Tidyp is a program (and a library) that can validate your HTML
long_description    ${description}, as well as modify it to be cleaner and more standard. \
                    Tidyp does not validate HTML5.  The Perl module HTML::Tidy is based on \
                    the libtidyp library. Tidyp is a fork of the original tidy project.

homepage            https://web.archive.org/web/20190205230744/http://tidyp.com/
github.tarball_from downloads

checksums           rmd160  9dd2ad63ec373e862960e91a6e418635d4fb5310 \
                    sha256  20b0fad32c63575bd4685ed09b8c5ca222bbc7b15284210d4b576d0223f0b338 \
                    size    662801

depends_build       port:automake

patchfiles          implicit.patch

post-patch {
    # Update config.guess and config.sub for arm64 support.
    # https://github.com/petdance/tidyp/issues/15
    # https://github.com/petdance/tidyp/issues/17
    # https://github.com/petdance/tidyp/issues/19
    set automake_dirs [glob -directory ${prefix}/share automake-*]
    set automake_dir [lindex [lsort -command vercmp $automake_dirs] end]
    copy -force ${automake_dir}/config.guess ${automake_dir}/config.sub \
        ${worksrcpath}
}

deprecated.upstream_support no
livecheck.type      none
