# -*- 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
# $Id: Portfile 117765 2014-03-11 10:24:13Z raimue@macports.org $

PortSystem          1.0

name                html-xml-utils
version             6.5
revision            1
categories          textproc
platforms           darwin
maintainers         nomaintainer
license             W3C

description         A number of simple utilties for manipulating HTML and XML files.

long_description    ${description}

homepage            http://www.w3.org/Tools/HTML-XML-utils/
master_sites        ${homepage}

checksums           rmd160  a62ba2f7e2f7dc02b09f73ac6c16ce12032091e6 \
                    sha256  21e411f7a52281bb006aa0177f0996b832f27a85c00ba126acf98ddc06248c9a                    

configure.cflags-append -std=gnu89

configure.libs-append   -liconv

post-destroot {
    # For backwards compatibility, restore the program prefix that was used in
    # earlier versions of this port
    fs-traverse f "${destroot}${prefix}/bin ${destroot}${prefix}/share/man" {
        if [file isfile $f] {
            ln -s [file tail $f] [file dirname $f]/w3[file tail $f]
        }
    }
}

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}-(\[0-9.\]+)\\.tar
