# $Id: Portfile 61081 2009-12-01 19:50:05Z ryandesign@macports.org $

PortSystem          1.0

name                caml-inifiles
version             1.2
categories          devel ml
maintainers         mww openmaintainer
platforms           darwin
license             BSD
description         ini file parser for OCaml
long_description    ${description}

homepage            http://homepage.mac.com/letaris/
master_sites        ${homepage}

distname            inifiles-${version}

checksums           md5     9deb802bdf98f5ead88598752d9ea5ac \
                    sha1    215120d4957c2a1fabb869804ae1360aaf32f6ac \
                    rmd160  977a0e72b7c247bedc83f87136572cca4b53bfe6

depends_lib         port:ocaml port:caml-pcre

use_configure       no

use_parallel_build  no

destroot {
    set ocaml_site_path [exec ocamlfind printconf destdir]
    xinstall -m 755 -d ${destroot}/${ocaml_site_path} \
        ${destroot}/${prefix}/share/doc/${name}
    system "cd ${worksrcpath} && OCAMLFIND_INSTFLAGS=\"-destdir ${destroot}/${ocaml_site_path}\" make install "
    xinstall -m 644 -W ${worksrcpath} COPYING ${destroot}/${prefix}/share/doc/${name}/
}

