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/lablgl: lablgl-1.03.ebuild ChangeLog
Date: Wed, 02 Jan 2008 20:13:18
Message-Id: E1JA9xb-0000Bx-5l@stork.gentoo.org
1 aballier 08/01/02 20:13:07
2
3 Modified: lablgl-1.03.ebuild ChangeLog
4 Log:
5 Add support to not build with ocamlopt
6 (Portage version: 2.1.4_rc14)
7
8 Revision Changes Path
9 1.2 dev-ml/lablgl/lablgl-1.03.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/lablgl/lablgl-1.03.ebuild?rev=1.2&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/lablgl/lablgl-1.03.ebuild?rev=1.2&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/lablgl/lablgl-1.03.ebuild?r1=1.1&r2=1.2
14
15 Index: lablgl-1.03.ebuild
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/dev-ml/lablgl/lablgl-1.03.ebuild,v
18 retrieving revision 1.1
19 retrieving revision 1.2
20 diff -u -r1.1 -r1.2
21 --- lablgl-1.03.ebuild 11 Dec 2007 10:12:47 -0000 1.1
22 +++ lablgl-1.03.ebuild 2 Jan 2008 20:13:06 -0000 1.2
23 @@ -1,10 +1,12 @@
24 -# Copyright 1999-2007 Gentoo Foundation
25 +# Copyright 1999-2008 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgl/lablgl-1.03.ebuild,v 1.1 2007/12/11 10:12:47 aballier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgl/lablgl-1.03.ebuild,v 1.2 2008/01/02 20:13:06 aballier Exp $
29
30 inherit multilib eutils toolchain-funcs
31
32 -IUSE="doc"
33 +EAPI="1"
34 +
35 +IUSE="doc +ocamlopt"
36
37 DESCRIPTION="Objective CAML interface for OpenGL"
38 HOMEPAGE="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgl.html"
39 @@ -32,6 +34,13 @@
40 eerror "Please recompile ocaml with tk useflag enabled."
41 die "Ocaml is missing tk support"
42 fi
43 +
44 + if use ocamlopt && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then
45 + eerror "In order to build ${PN} with native code support from ocaml"
46 + eerror "You first need to have a native code ocaml compiler."
47 + eerror "You need to install dev-lang/ocaml with ocamlopt useflag on."
48 + die "Please install ocaml with ocamlopt useflag"
49 + fi
50 }
51
52 src_compile() {
53 @@ -45,7 +54,9 @@
54 echo 'INCLUDES = $(TKINCLUDES) $(GLINCLUDES) $(XINCLUDES)' >> Makefile.config
55
56 emake -j1 || die "failed to build"
57 - emake -j1 opt || die "failed to build opt"
58 + if use ocamlopt; then
59 + emake -j1 opt || die "failed to build opt"
60 + fi
61 }
62
63 src_install () {
64
65
66
67 1.42 dev-ml/lablgl/ChangeLog
68
69 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/lablgl/ChangeLog?rev=1.42&view=markup
70 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/lablgl/ChangeLog?rev=1.42&content-type=text/plain
71 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/lablgl/ChangeLog?r1=1.41&r2=1.42
72
73 Index: ChangeLog
74 ===================================================================
75 RCS file: /var/cvsroot/gentoo-x86/dev-ml/lablgl/ChangeLog,v
76 retrieving revision 1.41
77 retrieving revision 1.42
78 diff -u -r1.41 -r1.42
79 --- ChangeLog 11 Dec 2007 10:12:47 -0000 1.41
80 +++ ChangeLog 2 Jan 2008 20:13:06 -0000 1.42
81 @@ -1,6 +1,9 @@
82 # ChangeLog for dev-ml/lablgl
83 -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
84 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgl/ChangeLog,v 1.41 2007/12/11 10:12:47 aballier Exp $
85 +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
86 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgl/ChangeLog,v 1.42 2008/01/02 20:13:06 aballier Exp $
87 +
88 + 02 Jan 2008; Alexis Ballier <aballier@g.o> lablgl-1.03.ebuild:
89 + Add support to not build with ocamlopt
90
91 *lablgl-1.03 (11 Dec 2007)
92
93
94
95
96 --
97 gentoo-commits@g.o mailing list