# $Id: Portfile 98499 2012-10-07 11:42:35Z mww@macports.org $

PortSystem          1.0
PortGroup           ocaml 1.0

name                ocaml-ospec
version             0.3.0
revision            1
categories          devel ml
platforms           darwin
license             BSD
maintainers         mww openmaintainer
description         Behavior-Driven Development tool for OCaml
long_description    \
    OSpec is a Behavior-Driven Development tool for OCaml, inspired by RSpec, \
    a Ruby BDD library. It is implemented as a Camlp4 syntax extension.

homepage            http://forge.ocamlcore.org/projects/ospec/
master_sites        http://forge.ocamlcore.org/frs/download.php/1009/
distname            ospec-${version}
checksums           rmd160  b772b235044679629f5f656e11cfaa0caf4107e3 \
                    sha256  7463979230051ae2764a87b8e07ddd55fd6f23b9183b5d481794a387a863dd34

depends_lib         port:ocaml port:ocaml-findlib

patchfiles          patch-Makefile.diff

use_oasis           yes

destroot {
    system "cd ${worksrcpath} && make install DESTDIR=${destroot} PREFIX=${prefix}"
}

livecheck.type      regex
livecheck.url       http://forge.ocamlcore.org/frs/?group_id=92
livecheck.regex     ospec-(\[0-9.\]+)${extract.suffix}

