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

Contents of /dev-ml/ocamlgraph/ocamlgraph-0.99b.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Aug 19 13:46:39 2013 UTC (7 years, 1 month ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +16 -14 lines
eapi5, define subslot and add := dep on ocaml

(Portage version: 2.2.0/cvs/Linux x86_64, signed Manifest commit with key 160F534A)

1 # Copyright 1999-2013 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.5 2009/09/28 16:51:57 betelgeuse Exp $
4
5 EAPI=5
6
7 inherit findlib eutils
8
9 DESCRIPTION="O'Caml Graph library"
10 HOMEPAGE="http://www.lri.fr/~filliatr/ocamlgraph/"
11 SRC_URI="http://www.lri.fr/~filliatr/ftp/ocamlgraph/${P}.tar.gz"
12 LICENSE="LGPL-2"
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 -j1
27
28 if use doc; then
29 emake doc
30 fi
31 if use gtk; then
32 emake -j1 editor
33 fi
34 }
35
36 src_install() {
37 findlib_src_preinst
38 emake install-findlib
39
40 if use gtk; then
41 if use ocamlopt; then
42 newbin editor/editor.opt ocamlgraph_editor
43 else
44 newbin editor/editor.byte ocamlgraph_editor
45 fi
46 fi
47 dodoc README CREDITS FAQ CHANGES
48 if use doc; then
49 dohtml doc/*
50 fi
51 if use examples; then
52 insinto /usr/share/doc/${PF}
53 doins -r examples
54 docompress -x /usr/share/doc/${PF}/examples
55 fi
56 }

  ViewVC Help
Powered by ViewVC 1.1.20