# $Id: Portfile 47005 2009-02-19 19:36:34Z snc@macports.org $

PortSystem          1.0

name                xml2

version             0.4
revision            1
categories          textproc xml html
platforms           darwin
maintainers         23bit.net:cr

description         Convert between XML/HTML and a shell-friendly format

long_description    These tools are used to convert XML and HTML to and from a \
                    line-oriented format more amenable to processing by classic \
                    Unix pipeline processing tools, like grep, sed, awk, cut, \
                    shell scripts, and so forth.
homepage            http://dan.egnor.name/xml2/

master_sites    http://download.gale.org/

checksums       md5 8a0ef16fe0b3e1495307318c590c1ec0 \
                sha1 735e7f6c336bd88dd1ab12bdea84e7cf1df5a36d \
                rmd160 06f9c2eed54ad51f0f938ebceee60fa5a3cb878f

depends_lib     port:libxml

post-destroot {
    # fix broken Links
    ln -sf ./xml2 ${destroot}${prefix}/bin/html2
    ln -sf ./2xml ${destroot}${prefix}/bin/2html
}
