1 |
aballier 08/01/02 20:50:48 |
2 |
|
3 |
Modified: lablgtk-2.10.0.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/lablgtk/lablgtk-2.10.0.ebuild |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/lablgtk/lablgtk-2.10.0.ebuild?rev=1.2&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/lablgtk/lablgtk-2.10.0.ebuild?rev=1.2&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/lablgtk/lablgtk-2.10.0.ebuild?r1=1.1&r2=1.2 |
14 |
|
15 |
Index: lablgtk-2.10.0.ebuild |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/dev-ml/lablgtk/lablgtk-2.10.0.ebuild,v |
18 |
retrieving revision 1.1 |
19 |
retrieving revision 1.2 |
20 |
diff -u -r1.1 -r1.2 |
21 |
--- lablgtk-2.10.0.ebuild 30 Oct 2007 22:41:25 -0000 1.1 |
22 |
+++ lablgtk-2.10.0.ebuild 2 Jan 2008 20:50:47 -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/lablgtk/lablgtk-2.10.0.ebuild,v 1.1 2007/10/30 22:41:25 aballier Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgtk/lablgtk-2.10.0.ebuild,v 1.2 2008/01/02 20:50:47 aballier Exp $ |
29 |
|
30 |
inherit eutils multilib |
31 |
|
32 |
-IUSE="debug doc glade gnome gnomecanvas sourceview opengl spell svg" |
33 |
+EAPI="1" |
34 |
+ |
35 |
+IUSE="debug doc glade gnome gnomecanvas sourceview +ocamlopt opengl spell svg" |
36 |
|
37 |
DESCRIPTION="Objective CAML interface for Gtk+2" |
38 |
HOMEPAGE="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html" |
39 |
@@ -28,6 +30,15 @@ |
40 |
SLOT="2" |
41 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd" |
42 |
|
43 |
+pkg_setup() { |
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 |
econf $(use_enable debug) \ |
54 |
$(use_with svg rsvg) \ |
55 |
@@ -40,7 +51,10 @@ |
56 |
$(use_with gnomecanvas) \ |
57 |
|| die "configure failed" |
58 |
|
59 |
- emake -j1 all opt || die "make failed" |
60 |
+ emake -j1 all || die "make failed" |
61 |
+ if use ocamlopt; then |
62 |
+ emake -j1 opt || die "Compiling native code failed" |
63 |
+ fi |
64 |
} |
65 |
|
66 |
install_examples() { |
67 |
|
68 |
|
69 |
|
70 |
1.55 dev-ml/lablgtk/ChangeLog |
71 |
|
72 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/lablgtk/ChangeLog?rev=1.55&view=markup |
73 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/lablgtk/ChangeLog?rev=1.55&content-type=text/plain |
74 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/lablgtk/ChangeLog?r1=1.54&r2=1.55 |
75 |
|
76 |
Index: ChangeLog |
77 |
=================================================================== |
78 |
RCS file: /var/cvsroot/gentoo-x86/dev-ml/lablgtk/ChangeLog,v |
79 |
retrieving revision 1.54 |
80 |
retrieving revision 1.55 |
81 |
diff -u -r1.54 -r1.55 |
82 |
--- ChangeLog 30 Oct 2007 22:41:25 -0000 1.54 |
83 |
+++ ChangeLog 2 Jan 2008 20:50:47 -0000 1.55 |
84 |
@@ -1,6 +1,9 @@ |
85 |
# ChangeLog for dev-ml/lablgtk |
86 |
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
87 |
-# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgtk/ChangeLog,v 1.54 2007/10/30 22:41:25 aballier Exp $ |
88 |
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
89 |
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgtk/ChangeLog,v 1.55 2008/01/02 20:50:47 aballier Exp $ |
90 |
+ |
91 |
+ 02 Jan 2008; Alexis Ballier <aballier@g.o> lablgtk-2.10.0.ebuild: |
92 |
+ Add support to not build with ocamlopt |
93 |
|
94 |
*lablgtk-2.10.0 (30 Oct 2007) |
95 |
|
96 |
|
97 |
|
98 |
|
99 |
-- |
100 |
gentoo-commits@g.o mailing list |