Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ml/ocamlgraph: ChangeLog ocamlgraph-0.99b.ebuild
Date: Fri, 04 Jan 2008 01:27:26
Message-Id: E1JAbLA-0001Kq-QN@stork.gentoo.org
1 aballier 08/01/04 01:27:16
2
3 Modified: ChangeLog
4 Added: ocamlgraph-0.99b.ebuild
5 Log:
6 version bump, allow building without ocamlopt
7 (Portage version: 2.1.4_rc14)
8
9 Revision Changes Path
10 1.6 dev-ml/ocamlgraph/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/ocamlgraph/ChangeLog?rev=1.6&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/ocamlgraph/ChangeLog?rev=1.6&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/ocamlgraph/ChangeLog?r1=1.5&r2=1.6
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-ml/ocamlgraph/ChangeLog,v
19 retrieving revision 1.5
20 retrieving revision 1.6
21 diff -u -r1.5 -r1.6
22 --- ChangeLog 26 May 2007 19:34:05 -0000 1.5
23 +++ ChangeLog 4 Jan 2008 01:27:16 -0000 1.6
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-ml/ocamlgraph
26 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlgraph/ChangeLog,v 1.5 2007/05/26 19:34:05 aballier Exp $
28 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlgraph/ChangeLog,v 1.6 2008/01/04 01:27:16 aballier Exp $
30 +
31 +*ocamlgraph-0.99b (04 Jan 2008)
32 +
33 + 04 Jan 2008; Alexis Ballier <aballier@g.o>
34 + +files/ocamlgraph-0.99b-installfindlib.patch, +ocamlgraph-0.99b.ebuild:
35 + version bump, allow building without ocamlopt
36
37 *ocamlgraph-0.98 (26 May 2007)
38
39
40
41
42 1.1 dev-ml/ocamlgraph/ocamlgraph-0.99b.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/ocamlgraph/ocamlgraph-0.99b.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/ocamlgraph/ocamlgraph-0.99b.ebuild?rev=1.1&content-type=text/plain
46
47 Index: ocamlgraph-0.99b.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlgraph/ocamlgraph-0.99b.ebuild,v 1.1 2008/01/04 01:27:16 aballier Exp $
52
53 inherit findlib eutils
54
55 EAPI="1"
56
57 DESCRIPTION="O'Caml Graph library"
58 HOMEPAGE="http://www.lri.fr/~filliatr/ocamlgraph/"
59 SRC_URI="http://www.lri.fr/~filliatr/ftp/ocamlgraph/${P}.tar.gz"
60 LICENSE="LGPL-2"
61 SLOT="0"
62 KEYWORDS="~amd64 ~ppc ~x86"
63 DEPEND=">=dev-lang/ocaml-3.08
64 doc? ( dev-tex/hevea dev-ml/ocamlweb )
65 gtk? ( dev-ml/lablgtk )"
66 IUSE="doc examples gtk +ocamlopt"
67
68 ocamlgraph_need_use() {
69 if ! built_with_use --missing true $1 $2; then
70 eerror "In order to build ${PN} with your useflags you first need to build $1 with $2 useflag"
71 die "Please install $1 with $2 useflag"
72 fi
73 }
74
75 pkg_setup() {
76 use ocamlopt && ocamlgraph_need_use 'dev-lang/ocaml' ocamlopt
77 use gtk && ocamlgraph_need_use 'dev-ml/lablgtk' gnomecanvas
78 use ocamlopt && use gtk && ocamlgraph_need_use 'dev-lang/lablgtk' ocamlopt
79 }
80
81 src_unpack() {
82 unpack ${A}
83 cd "${S}"
84
85 epatch "${FILESDIR}/${P}-installfindlib.patch"
86 }
87
88 src_compile() {
89 econf
90 emake -j1 || die "failed to build"
91
92 if use doc; then
93 emake doc || die "making documentation failed"
94 fi
95 if use gtk; then
96 emake -j1 editor || die "compiling editor failed"
97 fi
98 }
99
100 src_install() {
101 findlib_src_preinst
102 emake install-findlib || die "make install failed"
103
104 if use gtk; then
105 if use ocamlopt; then
106 newbin editor/editor.opt ocamlgraph_editor || die "failed to install ocamlgraph_editor"
107 else
108 newbin editor/editor.byte ocamlgraph_editor || die "failed to install ocamlgraph_editor"
109 fi
110 fi
111 dodoc README CREDITS FAQ CHANGES
112 if use doc; then
113 dohtml doc/*
114 fi
115 if use examples; then
116 insinto /usr/share/doc/${PF}
117 doins -r examples
118 fi
119 }
120
121
122
123 --
124 gentoo-commits@g.o mailing list