# $Id: Portfile 55616 2009-08-14 21:26:28Z ryandesign@macports.org $

PortSystem          1.0

name                xmlstarlet
version             1.0.1
revision            1
categories          textproc
maintainers         nomaintainer
description         xml command line utilities
long_description    XMLStarlet is a set of command line utilities (tools) to \
                    transform, query, validate, and edit XML documents and \
                    files using simple set of shell commands in similar way it \
                    is done for text files with UNIX grep, sed, awk, diff, \
                    patch, join, etc utilities.

homepage            http://xmlstar.sourceforge.net
platforms           darwin
master_sites        sourceforge:xmlstar
checksums           md5 8deb71834bcdfb4443c258a1f0042fce \
                    sha1 48fb2fa7ac9c2c6640b4f21f44459cb08369c18b \
                    rmd160 daa43d5731d9868a2f31c34908212cbc3896a08d

depends_lib         port:libxml2 port:libxslt port:libiconv
configure.args      --with-libxml-prefix=${prefix} \
                    --with-libxslt-prefix=${prefix} \
                    --with-libiconv-prefix=${prefix} \
                    --mandir=${prefix}/share/man \
                    --program-transform-name=s/xml$/${name}/

patchfiles          patch-configure

variant inplace description {Enable in-place editing of XML documents} {
    patchfiles-append patch-xml_edit.c
}

livecheck.regex     <title>${name} (.*) released.*</title>
