# $Id: Portfile 86523 2011-10-27 08:39:14Z mww@macports.org $

PortSystem          1.0

name                caml-cgi
version             0.8
categories          www devel ml
platforms           darwin
maintainers         mww openmaintainer
license             LGPL-2
description         OCaml CGI Library
long_description    ${description}

homepage            http://www.lri.fr/~filliatr/ftp/ocaml/cgi/
master_sites        http://www.lri.fr/~filliatr/ftp/ocaml/cgi/
distname            cgi-${version}

checksums           md5     87e1e239dfb9af15f6c8ed469dca313a \
                    sha1    33c1640d4616fd7e83cf0a383a52740bfe518434 \
                    rmd160  be81fa7893a63946066759e33eaa31f1a8da67e2

depends_lib         port:ocaml

patchfiles          patch-Makefile.in.diff

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} CHANGES COPYING LGPL README \
        ${destroot}${prefix}/share/doc/${name}/
}

