# $Id$

PortSystem          1.0
PortGroup           ocaml 1.0

name                ocaml-deriving-ocsigen
version             0.3c
revision            4
categories          devel www ml
platforms           darwin
license             MIT
maintainers         mww openmaintainer
description         deriving preprocessor and library for OCaml
long_description    ${description}
homepage            http://ocsigen.org/
master_sites        http://ocsigen.org/download/
distname            deriving-ocsigen-${version}
checksums           rmd160  e19b1b64defda68420c0a122708234b8645ec4fe \
                    sha256  eb6e7e647b6f2effcc65c9b32076fbc12e366e16035447a762a93e5e1cba94c7

depends_lib         port:ocaml port:ocaml-findlib

configure {
    reinplace "s|ocamlfind|${ocamlfind_wrapper}|g" ${worksrcpath}/Makefile.config
}

use_parallel_build  no
build.target        all

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