# $Id: Portfile 53329 2009-07-03 17:57:01Z erickt@macports.org $

PortSystem          1.0
name                caml-type-conv
version             1.6.8
distfiles           type-conv-${version}.tar.gz
worksrcdir          type-conv-${version}
categories          devel ml
maintainers         erickt openmaintainer
description         Mini library required for some other preprocessing libraries (OCaml 3.10 and newer)
homepage            http://www.ocaml.info/home/ocaml_sources.html
platforms           darwin
master_sites        http://www.ocaml.info/ocaml_sources
checksums           md5     9909edb89537699420d61704dff97c96 \
                    sha1    6607af1b357fdc3ff100f0a68228e522ec200f42 \
                    rmd160  655b7ef37c8049cf020e136089b055308151f1dd

livecheck.check     regex
livecheck.regex     "type-conv-(.*?).tar.gz"

depends_lib         port:ocaml port:caml-findlib

use_configure       no

build.env           PREFIX=${prefix}

set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib

destroot.env        OCAMLFIND_INSTFLAGS="-destdir $ocamlfind_destdir"

pre-destroot {
    file mkdir $ocamlfind_destdir
}
