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

epoch                   1
github.setup            htacg tidy-html5 5.8.0
revision                1
checksums               rmd160  8b29c1ae58bf4a26a1befec08ebea8a98043aa13 \
                        sha256  2fc78c4369cde9a80f4ae3961880bd003ac31e8b160f6b9422645bab3be5a6cf \
                        size    1008951

name                    tidy
categories              www
maintainers             {ryandesign @ryandesign} openmaintainer
license                 MIT

description             Fixes and tidies up HTML files

long_description        Tidy is a utility to clean up and fix broken HTML files.

homepage                http://www.html-tidy.org/
github.tarball_from     archive

# Ignore stealth update of 5.8.0
# https://github.com/htacg/tidy-html5/issues/974
master_sites            macports_distfiles

depends_build-append    port:libxslt

patchfiles              tidyplatform.h.patch

cmake.build_dir         ${worksrcpath}/build/cmake

configure.args-append   -DBUILD_SHARED_LIB:BOOL=ON

use_parallel_build      yes

github.livecheck.regex  {(\d+\.\d*[02468](?:\.\d+)?)}
