# $Id: Portfile 111393 2013-09-20 05:30:25Z mww@macports.org $

PortSystem 1.0

name                tyxml
version             2.2.0
revision            3
categories          textproc devel ml
platforms           darwin
maintainers         mww openmaintainer
license             LGPL-2.1
description         OCaml library to generate XML output using static typing
long_description    Tyxml is a library that makes it almost impossible for \
                    your OCaml programs to generate wrong XML ouput, using \
                    static typing. Modules exist for XHTML1, HTML5 and SVG.

homepage            http://ocsigen.org/tyxml/
master_sites        http://ocsigen.org/download/

checksums           rmd160  8cd613dbf1bbe6f439a5c5001b812288081aa3c8 \
                    sha256  8eab54f5fd7e9f5df3ac894123bd5abb124d741411a0ad5333e5058e44325f84

patchfiles          patch-Makefile.diff patch-rm_netstring_pcre.diff

depends_lib         port:ocaml port:ocaml-findlib port:ocaml-ocamlnet

use_configure       no

use_parallel_build  no

pre-destroot { xinstall -m 755 -d ${destroot}${prefix}/lib/ocaml/site-lib }
destroot.args       SITELIB=${prefix}/lib/ocaml/site-lib

livecheck.type      regex
livecheck.url       http://ocsigen.org/tyxml/install/
livecheck.regex     tyxml-(\[0-9.\]+)${extract.suffix}

