Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ml/cryptokit: cryptokit-1.3.ebuild ChangeLog
Date: Wed, 02 Jan 2008 20:07:39
Message-Id: E1JA9s8-00008k-7j@stork.gentoo.org
1 aballier 08/01/02 20:07:28
2
3 Modified: cryptokit-1.3.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.3 dev-ml/cryptokit/cryptokit-1.3.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/cryptokit/cryptokit-1.3.ebuild?rev=1.3&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/cryptokit/cryptokit-1.3.ebuild?rev=1.3&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/cryptokit/cryptokit-1.3.ebuild?r1=1.2&r2=1.3
14
15 Index: cryptokit-1.3.ebuild
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/dev-ml/cryptokit/cryptokit-1.3.ebuild,v
18 retrieving revision 1.2
19 retrieving revision 1.3
20 diff -u -r1.2 -r1.3
21 --- cryptokit-1.3.ebuild 10 Nov 2007 15:42:28 -0000 1.2
22 +++ cryptokit-1.3.ebuild 2 Jan 2008 20:07:27 -0000 1.3
23 @@ -1,20 +1,31 @@
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/cryptokit/cryptokit-1.3.ebuild,v 1.2 2007/11/10 15:42:28 aballier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/cryptokit/cryptokit-1.3.ebuild,v 1.3 2008/01/02 20:07:27 aballier Exp $
29
30 inherit eutils findlib
31
32 +EAPI="1"
33 +
34 DESCRIPTION="Cryptographic primitives library for Objective Caml"
35 HOMEPAGE="http://cristal.inria.fr/~xleroy/software.html"
36 SRC_URI="http://caml.inria.fr/distrib/bazar-ocaml/${P}.tar.gz"
37 LICENSE="LGPL-2"
38 SLOT="0"
39 KEYWORDS="~amd64 ~x86"
40 -IUSE="doc"
41 +IUSE="doc +ocamlopt"
42
43 DEPEND=">=dev-lang/ocaml-3.09
44 >=sys-libs/zlib-1.1"
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_unpack() {
56 unpack ${A}
57 cd "${S}"
58 @@ -24,7 +35,9 @@
59
60 src_compile() {
61 emake all || die "emake all failed"
62 - emake allopt || die "emake allopt failed, is ocamlopt missing ?"
63 + if use ocamlopt; then
64 + emake allopt || die "emake allopt failed, is ocamlopt missing ?"
65 + fi
66 }
67
68 src_install() {
69
70
71
72 1.2 dev-ml/cryptokit/ChangeLog
73
74 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/cryptokit/ChangeLog?rev=1.2&view=markup
75 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/cryptokit/ChangeLog?rev=1.2&content-type=text/plain
76 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/cryptokit/ChangeLog?r1=1.1&r2=1.2
77
78 Index: ChangeLog
79 ===================================================================
80 RCS file: /var/cvsroot/gentoo-x86/dev-ml/cryptokit/ChangeLog,v
81 retrieving revision 1.1
82 retrieving revision 1.2
83 diff -u -r1.1 -r1.2
84 --- ChangeLog 10 Nov 2007 15:40:22 -0000 1.1
85 +++ ChangeLog 2 Jan 2008 20:07:27 -0000 1.2
86 @@ -1,6 +1,9 @@
87 # ChangeLog for dev-ml/cryptokit
88 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
89 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/cryptokit/ChangeLog,v 1.1 2007/11/10 15:40:22 aballier Exp $
90 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
91 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/cryptokit/ChangeLog,v 1.2 2008/01/02 20:07:27 aballier Exp $
92 +
93 + 02 Jan 2008; Alexis Ballier <aballier@g.o> cryptokit-1.3.ebuild:
94 + Add support to not build with ocamlopt
95
96 *cryptokit-1.3 (10 Nov 2007)
97
98
99
100
101 --
102 gentoo-commits@g.o mailing list