# $Id$

PortSystem          1.0
PortGroup           ocaml 1.0

name                ocaml-ulex
version             1.1
revision            4
categories          devel textproc ml
platforms           darwin
license             BSD
maintainers         nomaintainer

description         lexer generator for Unicode and OCaml
long_description    ulex is a lexer generator for Unicode and OCaml written by Alain Frisch.

distname            ulex-${version}

homepage            http://www.cduce.org/download.html
master_sites        http://www.cduce.org/download/

checksums           rmd160  4219fce15e357bf6edaa6efad04902a84082c3b9 \
                    sha256  a01ff3223b295c5b24ee414bb9e9add14357ccf364addcfa734d91a02f9f543a

depends_lib         port:ocaml \
                    port:ocaml-findlib

use_configure       no

post-patch {
    reinplace "s|ocamlfind|${ocamlfind_wrapper}|g" ${worksrcpath}/Makefile
}

build.target        all.opt

livecheck.type      regex
livecheck.regex     {ulex-(\d+(?:\.\d+)*)}