1 |
aballier 08/01/02 19:24:38 |
2 |
|
3 |
Modified: ChangeLog findlib-1.2.1.ebuild |
4 |
Log: |
5 |
Add support to build without ocamlopt |
6 |
(Portage version: 2.1.4_rc14) |
7 |
|
8 |
Revision Changes Path |
9 |
1.27 dev-ml/findlib/ChangeLog |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/findlib/ChangeLog?rev=1.27&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/findlib/ChangeLog?rev=1.27&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/findlib/ChangeLog?r1=1.26&r2=1.27 |
14 |
|
15 |
Index: ChangeLog |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/dev-ml/findlib/ChangeLog,v |
18 |
retrieving revision 1.26 |
19 |
retrieving revision 1.27 |
20 |
diff -u -r1.26 -r1.27 |
21 |
--- ChangeLog 13 Nov 2007 13:49:15 -0000 1.26 |
22 |
+++ ChangeLog 2 Jan 2008 19:24:38 -0000 1.27 |
23 |
@@ -1,6 +1,9 @@ |
24 |
# ChangeLog for dev-ml/findlib |
25 |
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
26 |
-# $Header: /var/cvsroot/gentoo-x86/dev-ml/findlib/ChangeLog,v 1.26 2007/11/13 13:49:15 aballier Exp $ |
27 |
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/findlib/ChangeLog,v 1.27 2008/01/02 19:24:38 aballier Exp $ |
29 |
+ |
30 |
+ 02 Jan 2008; Alexis Ballier <aballier@g.o> findlib-1.2.1.ebuild: |
31 |
+ Add support to build without ocamlopt |
32 |
|
33 |
*findlib-1.2.1 (13 Nov 2007) |
34 |
|
35 |
|
36 |
|
37 |
|
38 |
1.2 dev-ml/findlib/findlib-1.2.1.ebuild |
39 |
|
40 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/findlib/findlib-1.2.1.ebuild?rev=1.2&view=markup |
41 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/findlib/findlib-1.2.1.ebuild?rev=1.2&content-type=text/plain |
42 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/findlib/findlib-1.2.1.ebuild?r1=1.1&r2=1.2 |
43 |
|
44 |
Index: findlib-1.2.1.ebuild |
45 |
=================================================================== |
46 |
RCS file: /var/cvsroot/gentoo-x86/dev-ml/findlib/findlib-1.2.1.ebuild,v |
47 |
retrieving revision 1.1 |
48 |
retrieving revision 1.2 |
49 |
diff -u -r1.1 -r1.2 |
50 |
--- findlib-1.2.1.ebuild 13 Nov 2007 13:49:15 -0000 1.1 |
51 |
+++ findlib-1.2.1.ebuild 2 Jan 2008 19:24:38 -0000 1.2 |
52 |
@@ -1,10 +1,12 @@ |
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/findlib/findlib-1.2.1.ebuild,v 1.1 2007/11/13 13:49:15 aballier Exp $ |
57 |
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/findlib/findlib-1.2.1.ebuild,v 1.2 2008/01/02 19:24:38 aballier Exp $ |
58 |
|
59 |
inherit multilib eutils |
60 |
|
61 |
-IUSE="doc tk" |
62 |
+EAPI="1" |
63 |
+ |
64 |
+IUSE="doc +ocamlopt tk" |
65 |
|
66 |
DESCRIPTION="OCaml tool to find/use non-standard packages." |
67 |
HOMEPAGE="http://www.ocaml-programming.de/packages/" |
68 |
@@ -29,6 +31,12 @@ |
69 |
eerror "" |
70 |
die "Please make sure that ocaml is installed with tk support or remove the USE flag" |
71 |
fi |
72 |
+ if use ocamlopt && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then |
73 |
+ eerror "In order to build ${PN} with native code support from ocaml" |
74 |
+ eerror "You first need to have a native code ocaml compiler." |
75 |
+ eerror "You need to install dev-lang/ocaml with ocamlopt useflag on." |
76 |
+ die "Please install ocaml with ocamlopt useflag" |
77 |
+ fi |
78 |
} |
79 |
|
80 |
src_compile() { |
81 |
@@ -37,7 +45,13 @@ |
82 |
-config ${ocamlfind_destdir}/findlib/findlib.conf || die "configure failed" |
83 |
|
84 |
emake all || die |
85 |
- emake opt || die # optimized code |
86 |
+ if use ocamlopt; then |
87 |
+ emake opt || die # optimized code |
88 |
+ else |
89 |
+ # If using bytecode we dont want to strip the binary as it would remove the |
90 |
+ # bytecode and only leave ocamlrun... |
91 |
+ export STRIP_MASK="*/bin/*" |
92 |
+ fi |
93 |
} |
94 |
|
95 |
src_install() { |
96 |
|
97 |
|
98 |
|
99 |
-- |
100 |
gentoo-commits@g.o mailing list |