# $Id: Portfile 90964 2012-03-20 09:37:20Z mww@macports.org $

PortSystem          1.0
PortGroup           ocaml 1.0

name                ocaml-xmlm
version             1.1.0
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           md5     443bb4e06ee5f88bbd2bafd5641f903d \
                    sha1    c19ebedba03e70e9e1d1a2f2756d7344010c6260 \
                    rmd160  3ddcf5cdf00014be89280fbbd61bcd0934e7b9b4

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
