# $Id: Portfile 88485 2012-01-03 11:01:15Z mww@macports.org $

PortSystem          1.0
PortGroup ocaml 1.0
name                ocaml-ocamlgraph
version             1.8.1
distname            ocamlgraph-${version}
categories          devel ml
maintainers         labri.fr:fh
license             LGPL-2.1
description         a graph library for OCaml
long_description    It provides an easy-to-use graph data structure together with several \
                    operations and algorithms over graphs, in Graph.Pack. It is a reasonably \
                    efficient imperative data structure for directed graphs with vertices and \
                    edges labeled with integers.

homepage            http://ocamlgraph.lri.fr/
platforms           darwin
master_sites        http://ocamlgraph.lri.fr/download/

checksums           sha1    1eac55604956f566f525c3e043188d626d1924ce \
                    rmd160  11022fc8893234ff46f154089f992fae0a8ccf97

livecheck.url       http://ocamlgraph.lri.fr/
livecheck.type      regex
livecheck.regex     {>ocamlgraph-(.*)\.tar\.gz}

depends_lib         port:ocaml port:ocaml-findlib

configure.env       OCAMLFIND=${ocamlfind_wrapper}

use_parallel_build  no
build.target-append doc

destroot.target     install-findlib

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc
    file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
}
