# $Id$

PortSystem          1.0
PortGroup           ocaml 1.0

name                ocaml-xmlm
version             1.1.1
revision            3
categories          devel ml textproc
maintainers         mww openmaintainer
platforms           darwin
license             BSD
description         streaming XML input/output module for OCaml
long_description    Xmlm is an OCaml module providing streaming XML \
                    input/output. It aims at making XML processing robust and \
                    painless. The streaming interface can process documents \
                    without building an in-memory representation. It lets the \
                    programmer translate its data structures to XML documents \
                    and vice-versa. Functions are provided to easily transform \
                    arborescent data structures to/from XML documents.

homepage            http://erratique.ch/software/xmlm
master_sites        http://erratique.ch/software/xmlm/releases/

distname            xmlm-${version}
use_bzip2           yes
extract.suffix      .tbz

checksums           rmd160  e0ba666e1186a0ba6fe42b284282a48a651d2399 \
                    sha256  465630953ad80747250da53240b37c55f67991fdc83f28614ea76104d426aa26

depends_lib         port:ocaml \
                    port:ocaml-findlib

use_oasis           yes
configure.args      --destdir ${destroot}

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc
    file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} CHANGES README \
        ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      regex
livecheck.regex     xmlm-(\[0-9\.]+).tbz