# $Id: Portfile 88534 2012-01-04 02:16:57Z mww@macports.org $

PortSystem          1.0

name                ocaml-ocamldbi
version             0.9.11
categories          devel ocaml
maintainers         landonf openmaintainer
description         DBI library for simple database access.
long_description    ${description}

homepage            http://merjis.com/developers/mod_caml
platforms           darwin
master_sites        http://download.savannah.gnu.org/releases/modcaml/

distname            ocamldbi-${version}

checksums           md5 b22a0aeb956c9049359579cd2cba33fd \
                    sha1 a48581b5348c6bc6e0607168ade2aa30b6b96163 \
                    rmd160 270020a83b10ee672ca735228476d66cba1f2b3e


depends_lib         port:ocaml \
                    port:ocaml-findlib \
                    port:ocaml-pcre \
                    port:ocaml-postgresql \
                    port:ocaml-sqlite3

patchfiles          patch-postgresql.ml

post-patch {
    reinplace "s|/usr/share/doc|${prefix}/share/doc|g" ${worksrcpath}/Makefile.config
}

use_configure       no
