1 |
aballier 08/01/02 21:23:59 |
2 |
|
3 |
Modified: ocaml-sqlite3-0.23.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/ocaml-sqlite3/ocaml-sqlite3-0.23.0.ebuild |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/ocaml-sqlite3/ocaml-sqlite3-0.23.0.ebuild?rev=1.2&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/ocaml-sqlite3/ocaml-sqlite3-0.23.0.ebuild?rev=1.2&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/ocaml-sqlite3/ocaml-sqlite3-0.23.0.ebuild?r1=1.1&r2=1.2 |
14 |
|
15 |
Index: ocaml-sqlite3-0.23.0.ebuild |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/dev-ml/ocaml-sqlite3/ocaml-sqlite3-0.23.0.ebuild,v |
18 |
retrieving revision 1.1 |
19 |
retrieving revision 1.2 |
20 |
diff -u -r1.1 -r1.2 |
21 |
--- ocaml-sqlite3-0.23.0.ebuild 8 Dec 2007 00:07:11 -0000 1.1 |
22 |
+++ ocaml-sqlite3-0.23.0.ebuild 2 Jan 2008 21:23:59 -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/ocaml-sqlite3/ocaml-sqlite3-0.23.0.ebuild,v 1.1 2007/12/08 00:07:11 aballier Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocaml-sqlite3/ocaml-sqlite3-0.23.0.ebuild,v 1.2 2008/01/02 21:23:59 aballier Exp $ |
29 |
|
30 |
inherit findlib eutils |
31 |
|
32 |
-IUSE="doc" |
33 |
+EAPI="1" |
34 |
+ |
35 |
+IUSE="doc +ocamlopt" |
36 |
|
37 |
DESCRIPTION="A package for ocaml that provides access to SQLite databases." |
38 |
SRC_URI="http://ocaml.info/ocaml_sources/${P}.tar.bz2" |
39 |
@@ -19,16 +21,28 @@ |
40 |
LICENSE="MIT" |
41 |
KEYWORDS="~amd64 ~x86" |
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_unpack() { |
53 |
unpack ${A} |
54 |
cd "${S}" |
55 |
epatch "${FILESDIR}/${PN}-0.22.0-destdir.patch" |
56 |
+ epatch "${FILESDIR}/${P}-noocamlopt.patch" |
57 |
} |
58 |
|
59 |
src_compile() { |
60 |
econf |
61 |
emake -j1 bytecode || die "make bytecode failed" |
62 |
- emake -j1 opt || die "make opt failed" |
63 |
+ if use ocamlopt; then |
64 |
+ emake -j1 opt || die "make opt failed" |
65 |
+ fi |
66 |
if use doc; then |
67 |
emake -j1 docs || die "make doc failed" |
68 |
fi |
69 |
|
70 |
|
71 |
|
72 |
1.3 dev-ml/ocaml-sqlite3/ChangeLog |
73 |
|
74 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/ocaml-sqlite3/ChangeLog?rev=1.3&view=markup |
75 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/ocaml-sqlite3/ChangeLog?rev=1.3&content-type=text/plain |
76 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/ocaml-sqlite3/ChangeLog?r1=1.2&r2=1.3 |
77 |
|
78 |
Index: ChangeLog |
79 |
=================================================================== |
80 |
RCS file: /var/cvsroot/gentoo-x86/dev-ml/ocaml-sqlite3/ChangeLog,v |
81 |
retrieving revision 1.2 |
82 |
retrieving revision 1.3 |
83 |
diff -u -r1.2 -r1.3 |
84 |
--- ChangeLog 8 Dec 2007 00:07:11 -0000 1.2 |
85 |
+++ ChangeLog 2 Jan 2008 21:23:59 -0000 1.3 |
86 |
@@ -1,6 +1,10 @@ |
87 |
# ChangeLog for dev-ml/ocaml-sqlite3 |
88 |
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
89 |
-# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocaml-sqlite3/ChangeLog,v 1.2 2007/12/08 00:07:11 aballier Exp $ |
90 |
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
91 |
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocaml-sqlite3/ChangeLog,v 1.3 2008/01/02 21:23:59 aballier Exp $ |
92 |
+ |
93 |
+ 02 Jan 2008; Alexis Ballier <aballier@g.o> |
94 |
+ +files/ocaml-sqlite3-0.23.0-noocamlopt.patch, ocaml-sqlite3-0.23.0.ebuild: |
95 |
+ Add support to not build with ocamlopt |
96 |
|
97 |
*ocaml-sqlite3-0.23.0 (08 Dec 2007) |
98 |
|
99 |
|
100 |
|
101 |
|
102 |
-- |
103 |
gentoo-commits@g.o mailing list |