1 |
aballier 08/01/02 19:31:42 |
2 |
|
3 |
Modified: ChangeLog ledit-1.15.ebuild |
4 |
Log: |
5 |
Add support for disabling ocamlopt |
6 |
(Portage version: 2.1.4_rc14) |
7 |
|
8 |
Revision Changes Path |
9 |
1.16 app-misc/ledit/ChangeLog |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/ledit/ChangeLog?rev=1.16&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/ledit/ChangeLog?rev=1.16&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/ledit/ChangeLog?r1=1.15&r2=1.16 |
14 |
|
15 |
Index: ChangeLog |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/app-misc/ledit/ChangeLog,v |
18 |
retrieving revision 1.15 |
19 |
retrieving revision 1.16 |
20 |
diff -u -r1.15 -r1.16 |
21 |
--- ChangeLog 20 Nov 2007 13:24:01 -0000 1.15 |
22 |
+++ ChangeLog 2 Jan 2008 19:31:41 -0000 1.16 |
23 |
@@ -1,6 +1,9 @@ |
24 |
# ChangeLog for app-misc/ledit |
25 |
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 |
26 |
-# $Header: /var/cvsroot/gentoo-x86/app-misc/ledit/ChangeLog,v 1.15 2007/11/20 13:24:01 aballier Exp $ |
27 |
+# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-misc/ledit/ChangeLog,v 1.16 2008/01/02 19:31:41 aballier Exp $ |
29 |
+ |
30 |
+ 02 Jan 2008; Alexis Ballier <aballier@g.o> ledit-1.15.ebuild: |
31 |
+ Add support for disabling ocamlopt |
32 |
|
33 |
20 Nov 2007; Alexis Ballier <aballier@g.o> ledit-1.15.ebuild: |
34 |
take ocaml deps down to 3.09, works fine if camlp5 is installed |
35 |
|
36 |
|
37 |
|
38 |
1.4 app-misc/ledit/ledit-1.15.ebuild |
39 |
|
40 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/ledit/ledit-1.15.ebuild?rev=1.4&view=markup |
41 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/ledit/ledit-1.15.ebuild?rev=1.4&content-type=text/plain |
42 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/ledit/ledit-1.15.ebuild?r1=1.3&r2=1.4 |
43 |
|
44 |
Index: ledit-1.15.ebuild |
45 |
=================================================================== |
46 |
RCS file: /var/cvsroot/gentoo-x86/app-misc/ledit/ledit-1.15.ebuild,v |
47 |
retrieving revision 1.3 |
48 |
retrieving revision 1.4 |
49 |
diff -u -r1.3 -r1.4 |
50 |
--- ledit-1.15.ebuild 20 Nov 2007 13:24:01 -0000 1.3 |
51 |
+++ ledit-1.15.ebuild 2 Jan 2008 19:31:41 -0000 1.4 |
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/app-misc/ledit/ledit-1.15.ebuild,v 1.3 2007/11/20 13:24:01 aballier Exp $ |
57 |
+# $Header: /var/cvsroot/gentoo-x86/app-misc/ledit/ledit-1.15.ebuild,v 1.4 2008/01/02 19:31:41 aballier Exp $ |
58 |
|
59 |
inherit eutils |
60 |
|
61 |
-IUSE="" |
62 |
+EAPI="1" |
63 |
+ |
64 |
+IUSE="+ocamlopt" |
65 |
|
66 |
DESCRIPTION="A line editor to be used with interactive commands." |
67 |
SRC_URI="http://pauillac.inria.fr/~ddr/ledit/${P}.tgz" |
68 |
@@ -17,15 +19,34 @@ |
69 |
LICENSE="BSD" |
70 |
KEYWORDS="~amd64 ~ppc ~x86" |
71 |
|
72 |
+pkg_setup() { |
73 |
+ if use ocamlopt && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then |
74 |
+ eerror "In order to build ${PN} with native code support from ocaml" |
75 |
+ eerror "You first need to have a native code ocaml compiler." |
76 |
+ eerror "You need to install dev-lang/ocaml with ocamlopt useflag on." |
77 |
+ die "Please install ocaml with ocamlopt useflag" |
78 |
+ fi |
79 |
+} |
80 |
+ |
81 |
src_compile() |
82 |
{ |
83 |
emake -j1 all || die "make failed" |
84 |
- emake -j1 ledit.opt || die "make failed" |
85 |
+ if use ocamlopt; then |
86 |
+ emake -j1 ledit.opt || die "make failed" |
87 |
+ else |
88 |
+ # If using bytecode we dont want to strip the binary as it would remove the |
89 |
+ # bytecode and only leave ocamlrun... |
90 |
+ export STRIP_MASK="*/bin/*" |
91 |
+ fi |
92 |
} |
93 |
|
94 |
src_install() |
95 |
{ |
96 |
- newbin ledit.opt ledit |
97 |
+ if use ocamlopt; then |
98 |
+ newbin ledit.opt ledit |
99 |
+ else |
100 |
+ newbin ledit.out ledit |
101 |
+ fi |
102 |
doman ledit.1 |
103 |
dodoc CHANGES README |
104 |
} |
105 |
|
106 |
|
107 |
|
108 |
-- |
109 |
gentoo-commits@g.o mailing list |