1 # Copyright 1999-2018 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="O'Caml Graph library"
9 HOMEPAGE="http://ocamlgraph.lri.fr/index.en.html"
10 SRC_URI="http://ocamlgraph.lri.fr/download/${P}.tar.gz"
13 KEYWORDS="amd64 ~arm ~arm64 ~ppc ~x86"
14 RDEPEND=">=dev-lang/ocaml-3.10.2:=[ocamlopt?]
15 gtk? ( dev-ml/lablgtk:=[gnomecanvas,ocamlopt?] )"
17 doc? ( dev-tex/hevea dev-ml/ocamlweb )"
18 IUSE="doc examples gtk +ocamlopt"
22 use ocamlopt && emake opt
29 emake OCAMLBEST=$(usex ocamlopt opt byte) viewer dgraph editor
35 use ocamlopt || export WANT_OCAMLOPT=no
36 use gtk && export WANT_GTK=yes
41 use ocamlopt && ext=opt
42 newbin dgraph/dgraph.${ext} ${PN}-dgraph
43 newbin editor/editor.${ext} ${PN}-editor
44 newbin view_graph/viewgraph.${ext} ${PN}-viewgraph
47 dodoc README.adoc CREDITS FAQ CHANGES
53 insinto /usr/share/doc/${PF}
55 docompress -x /usr/share/doc/${PF}/examples