# $Id$

PortSystem          1.0
PortGroup ocaml 1.0

name                ocaml-ocamlgraph
version             1.8.2
revision            4
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    ff864aaae11f7355685f37815194ca58d3fcac01 \
                    rmd160  b201425faa695d39724ab53026469c4663576188

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}
}