/[gentoo-x86]/dev-ml/ocamlgraph/ocamlgraph-1.8.5.ebuild
Gentoo

Contents of /dev-ml/ocamlgraph/ocamlgraph-1.8.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Oct 28 08:13:27 2014 UTC (5 years, 9 months ago) by aballier
Branch: MAIN
CVS Tags: HEAD
version bump

Signed-off-by: aballier@gentoo.org
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 160F534A)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlgraph/ocamlgraph-0.99b.ebuild,v 1.6 2013/08/19 13:46:39 aballier Exp $
4
5 EAPI=5
6
7 inherit findlib eutils
8
9 DESCRIPTION="O'Caml Graph library"
10 HOMEPAGE="http://ocamlgraph.lri.fr/index.en.html"
11 SRC_URI="http://ocamlgraph.lri.fr/download/${P}.tar.gz"
12 LICENSE="LGPL-2.1"
13 SLOT="0/${PV}"
14 KEYWORDS="~amd64 ~ppc ~x86"
15 RDEPEND=">=dev-lang/ocaml-3.10.2:=[ocamlopt?]
16 gtk? ( dev-ml/lablgtk:=[gnomecanvas,ocamlopt?] )"
17 DEPEND="${RDEPEND}
18 doc? ( dev-tex/hevea dev-ml/ocamlweb )"
19 IUSE="doc examples gtk +ocamlopt"
20
21 src_prepare() {
22 epatch "${FILESDIR}/${P}-installfindlib.patch"
23 }
24
25 src_compile() {
26 emake byte
27 use ocamlopt && emake opt
28
29 if use doc; then
30 emake doc
31 fi
32
33 if use gtk; then
34 emake OCAMLBEST=$(usex ocamlopt opt byte) viewer dgraph editor
35 fi
36 }
37
38 src_install() {
39 findlib_src_preinst
40 use ocamlopt || export WANT_OCAMLOPT=no
41 use gtk && export WANT_GTK=yes
42 emake install-findlib
43
44 if use gtk ; then
45 local ext=byte
46 use ocamlopt && ext=opt
47 newbin dgraph/dgraph.${ext} ${PN}-dgraph
48 newbin editor/editor.${ext} ${PN}-editor
49 newbin view_graph/viewgraph.${ext} ${PN}-viewgraph
50 fi
51
52 dodoc README CREDITS FAQ CHANGES
53 if use doc; then
54 dohtml doc/*
55 fi
56
57 if use examples; then
58 insinto /usr/share/doc/${PF}
59 doins -r examples
60 docompress -x /usr/share/doc/${PF}/examples
61 fi
62 }

  ViewVC Help
Powered by ViewVC 1.1.20