1 |
aballier 08/01/03 18:38:25 |
2 |
|
3 |
Modified: ulex-1.0.ebuild ChangeLog |
4 |
Log: |
5 |
Allow to disable ocamlopt via an useflag |
6 |
(Portage version: 2.1.4_rc14) |
7 |
|
8 |
Revision Changes Path |
9 |
1.2 dev-ml/ulex/ulex-1.0.ebuild |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/ulex/ulex-1.0.ebuild?rev=1.2&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/ulex/ulex-1.0.ebuild?rev=1.2&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/ulex/ulex-1.0.ebuild?r1=1.1&r2=1.2 |
14 |
|
15 |
Index: ulex-1.0.ebuild |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/dev-ml/ulex/ulex-1.0.ebuild,v |
18 |
retrieving revision 1.1 |
19 |
retrieving revision 1.2 |
20 |
diff -u -r1.1 -r1.2 |
21 |
--- ulex-1.0.ebuild 26 May 2007 18:32:57 -0000 1.1 |
22 |
+++ ulex-1.0.ebuild 3 Jan 2008 18:38:24 -0000 1.2 |
23 |
@@ -1,9 +1,11 @@ |
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/ulex/ulex-1.0.ebuild,v 1.1 2007/05/26 18:32:57 aballier Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/ulex/ulex-1.0.ebuild,v 1.2 2008/01/03 18:38:24 aballier Exp $ |
29 |
|
30 |
inherit eutils findlib |
31 |
|
32 |
+EAPI="1" |
33 |
+ |
34 |
DESCRIPTION="A lexer generator for unicode" |
35 |
HOMEPAGE="http://www.cduce.org" |
36 |
SRC_URI="http://www.cduce.org/download/${P}.tar.gz" |
37 |
@@ -11,13 +13,24 @@ |
38 |
LICENSE="LGPL-2.1" |
39 |
SLOT="0" |
40 |
KEYWORDS="~amd64 ~ppc ~x86" |
41 |
-IUSE="" |
42 |
+IUSE="+ocamlopt" |
43 |
|
44 |
DEPEND=">=dev-lang/ocaml-3.10.0" |
45 |
|
46 |
+pkg_setup() { |
47 |
+ if use ocamlopt && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then |
48 |
+ eerror "In order to build ${PN} with native code support from ocaml" |
49 |
+ eerror "You first need to have a native code ocaml compiler." |
50 |
+ eerror "You need to install dev-lang/ocaml with ocamlopt useflag on." |
51 |
+ die "Please install ocaml with ocamlopt useflag" |
52 |
+ fi |
53 |
+} |
54 |
+ |
55 |
src_compile() { |
56 |
- make all || die |
57 |
- make all.opt || die |
58 |
+ emake all || die "failed to build bytecode" |
59 |
+ if use ocamlopt; then |
60 |
+ emake all.opt || die "failed to build native code" |
61 |
+ fi |
62 |
} |
63 |
|
64 |
src_install() { |
65 |
|
66 |
|
67 |
|
68 |
1.13 dev-ml/ulex/ChangeLog |
69 |
|
70 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/ulex/ChangeLog?rev=1.13&view=markup |
71 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/ulex/ChangeLog?rev=1.13&content-type=text/plain |
72 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/ulex/ChangeLog?r1=1.12&r2=1.13 |
73 |
|
74 |
Index: ChangeLog |
75 |
=================================================================== |
76 |
RCS file: /var/cvsroot/gentoo-x86/dev-ml/ulex/ChangeLog,v |
77 |
retrieving revision 1.12 |
78 |
retrieving revision 1.13 |
79 |
diff -u -r1.12 -r1.13 |
80 |
--- ChangeLog 26 May 2007 18:32:57 -0000 1.12 |
81 |
+++ ChangeLog 3 Jan 2008 18:38:24 -0000 1.13 |
82 |
@@ -1,6 +1,9 @@ |
83 |
# ChangeLog for dev-ml/ulex |
84 |
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
85 |
-# $Header: /var/cvsroot/gentoo-x86/dev-ml/ulex/ChangeLog,v 1.12 2007/05/26 18:32:57 aballier Exp $ |
86 |
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
87 |
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/ulex/ChangeLog,v 1.13 2008/01/03 18:38:24 aballier Exp $ |
88 |
+ |
89 |
+ 03 Jan 2008; Alexis Ballier <aballier@g.o> ulex-1.0.ebuild: |
90 |
+ Allow to disable ocamlopt via an useflag |
91 |
|
92 |
*ulex-1.0 (26 May 2007) |
93 |
|
94 |
|
95 |
|
96 |
|
97 |
-- |
98 |
gentoo-commits@g.o mailing list |