# -*- 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           deprecated 1.0

name                xmlpatch
version             0.4.0
revision            0

deprecated.upstream_support no

categories          textproc
maintainers         urchin.earth.li:twic openmaintainer
license             LGPL-2.1+

description         an XML patching handler library
long_description    The xmlpatch library is a framework utilizing XML path \
                    language (XPath) selectors with the aid of which a set of \
                    patches can be applied to an existing initial XML document.

homepage            http://xmlpatch.sourceforge.net/
master_sites        sourceforge:project/xmlpatch/xmlpatch/${version}
distname            lib${name}_${version}
worksrcdir          lib${name}

checksums           rmd160  eab2230c55df1883251f401afe16f80aa0316b9b \
                    sha256  6d92df0b3ac98f68325f99a012c06151a2bef29cee325010fd64c4d84ccbfdd2 \
                    size    351587

depends_build-append \
                    port:pkgconfig

depends_lib-append  port:libxml2 \
                    path:lib/pkgconfig/glib-2.0.pc:glib2

test.run            yes
test.target         check

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 0644 -W ${worksrcpath} COPYING ChangeLog \
        LEGAL_NOTICE README AUTHORS NEWS ${docdir}
}

livecheck.regex     lib${name}_(\\d+(?:\\.\\d+)*)
