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

PortSystem      1.0

name            ekhtml
version         0.3.2
checksums       rmd160  8e5d664821d181e12f0fc6d24d1a288f432cc2b5 \
                sha256  1ed1f0166cd56552253cd67abcfa51728ff6b88f39bab742dbf894b2974dc8d6 \
                size    234917

license         BSD
categories      textproc devel
platforms       darwin
maintainers     nomaintainer
description     El-Kabong is a speedy, yet forgiving, SAX-style HTML parser

long_description \
    ${description}

homepage        http://ekhtml.sourceforge.net/
master_sites    sourceforge:project/ekhtml/ekhtml/${version}

patchfiles      patch-automake-1.13.diff

# Fix build error "clang: error: unknown argument: '-syslibroot'" when
# a macOS SDK is used.
use_autoreconf  yes

use_parallel_build no

test.run        yes
test.target     check

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
        TODO ${destroot}${docdir}
    copy ${worksrcpath}/docs/html ${destroot}${docdir}/api
}
