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