# -*- 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
# $Id$

PortSystem          1.0
PortGroup ocaml     1.0

name                ocaml-expect
version             0.0.4
revision            2
categories          devel ml
maintainers         googlemail.com:benedikt.meurer
license             LGPL-2.1
description         Expect-like framework
long_description    This is a simple implementation of `expect` to help building \
                    unitary testing of interactive program. It helps to receive \
                    question and send answers from an interactive process. You \
                    can match the question using a regular expression (Str). You \
                    can also use a timeout to ensure that the process answer in \
                    time.

homepage            http://forge.ocamlcore.org/projects/ocaml-expect/
platforms           darwin
master_sites        http://forge.ocamlcore.org/frs/download.php/1289/

checksums           rmd160  b0edb9ef3ed4624ca9b9b9bfc4b10b0b796b8688 \
                    sha256  cc7c2d74d56f5cddf191a835fcd0827a5c0913598f8547f1bd3961089fde6447

depends_lib         port:ocaml-batteries \
                    port:ocaml-ounit \
                    port:ocaml-pcre

livecheck.type      regex
livecheck.url       http://forge.ocamlcore.org/frs/?group_id=177
livecheck.regex     {>ocaml-expect-(.*)\.tar\.gz}

use_oasis           yes
use_oasis_doc       yes

configure.args-append --destdir "${destroot}" --docdir "${prefix}/share/doc/caml-expect"