# $Id: Portfile 92833 2012-05-08 23:46:29Z ryandesign@macports.org $

PortSystem 1.0

name                ocaml-fileutils
version             0.4.3
categories          devel ml
maintainers         landonf openmaintainer
license             LGPL-2.1
description         OCaml POSIX-like file library
long_description    Library to provide pure OCaml functions to manipulate  \
                    real file (POSIX like) and filename.

homepage            http://ocaml-fileutils.forge.ocamlcore.org/
platforms           darwin
master_sites        http://forge.ocamlcore.org/frs/download.php/625/

checksums           md5     b2a3c8541a130d7c601a7deb5e982ef7 \
                    sha1    a2a7326565f8cf5d8cc11264b9612329579a9d46 \
                    rmd160  181e7c8ea72fb4438809705584a2ee7e132367e6

livecheck.type      regex
livecheck.regex     {>ocaml-fileutils-(.*)\.tar\.bz2}

depends_lib         port:ocaml

use_configure       no

build.env           PREFIX=${prefix}
build.target        build
use_parallel_build  no

set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib
destroot.env        OCAMLFIND_DESTDIR="$ocamlfind_destdir"

pre-destroot {
	file mkdir ${ocamlfind_destdir}
}
