# $Id: Portfile 60454 2009-11-12 23:35:31Z ryandesign@macports.org $

PortSystem          1.0

name                caml-react
version             0.9.0
categories          devel ml
maintainers         avsm
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     193a64a2abb0eebc6a88c19fba18ca85 \
                    sha1    bc19c0b8c7ab647d030ce7e85ef61ffbbaae5499 \
                    rmd160  0017145cc8f6e6b34906cd6036f4b2ef68ae0f1b

use_configure       no
use_parallel_build  no

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

destroot.cmd        "./build"
destroot.target     "install"
destroot.env        INSTALLDIR=${destroot}${prefix}/lib/ocaml/site-lib/react
destroot.destdir    ""

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