# $Id: Portfile 88489 2012-01-03 11:23:04Z mww@macports.org $

PortSystem          1.0
PortGroup ocaml 1.0

name                ocaml-react
version             0.9.2
categories          devel ml
maintainers         nomaintainer
description         Functional reactive progreamming for OCaml
long_description    React is an OCaml module for functional reactive programming (FRP).\
                    It provides support to program with time varying values : applicative \
                    events and signals. React doesn't define any primitive event or signal, \
                    this lets the client chooses the concrete timeline.
homepage            http://erratique.ch/software/react
platforms           darwin

master_sites        http://erratique.ch/software/react/releases/
use_bzip2           yes
extract.suffix      .tbz
distname            react-${version}
patchfiles          patch-META

depends_lib         port:ocaml

checksums           md5     ecbe0fa4d7d0fd1076cce5decf7a86b7 \
                    sha1    a238ee9e795712fb31472d086f8ed5eabc1590a9 \
                    rmd160  abae8e133a227c66d2e1d25a0b4be41113c2b91f

post-extract { system -W ${worksrcpath} "chmod +x build" }

use_configure       no
use_parallel_build  no

build.cmd           "./build"
build.target        ""

destroot.cmd        "./build"
destroot.target     "install"
destroot.env        INSTALLDIR=${ocamlfind_destdir}/react
destroot.destdir    ""

livecheck.type      regex
livecheck.url       http://erratique.ch/software/react/releases/
livecheck.regex     {>react-(.*)\.tbz}
