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/camlzip: camlzip-1.03-r1.ebuild ChangeLog
Date: Wed, 02 Jan 2008 19:57:01
Message-Id: E1JA9hr-0008Tc-Oa@stork.gentoo.org
1 aballier 08/01/02 19:56:51
2
3 Modified: camlzip-1.03-r1.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/camlzip/camlzip-1.03-r1.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/camlzip/camlzip-1.03-r1.ebuild?rev=1.2&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/camlzip/camlzip-1.03-r1.ebuild?rev=1.2&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/camlzip/camlzip-1.03-r1.ebuild?r1=1.1&r2=1.2
14
15 Index: camlzip-1.03-r1.ebuild
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/dev-ml/camlzip/camlzip-1.03-r1.ebuild,v
18 retrieving revision 1.1
19 retrieving revision 1.2
20 diff -u -r1.1 -r1.2
21 --- camlzip-1.03-r1.ebuild 10 Nov 2007 14:18:20 -0000 1.1
22 +++ camlzip-1.03-r1.ebuild 2 Jan 2008 19:56:51 -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/camlzip/camlzip-1.03-r1.ebuild,v 1.1 2007/11/10 14:18:20 aballier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/camlzip/camlzip-1.03-r1.ebuild,v 1.2 2008/01/02 19:56:51 aballier Exp $
29
30 inherit findlib eutils
31
32 -IUSE=""
33 +EAPI="1"
34 +
35 +IUSE="+ocamlopt"
36
37 DESCRIPTION="Compressed file access ML library (ZIP, GZIP and JAR)"
38 HOMEPAGE="http://cristal.inria.fr/~xleroy/software.html#camlzip"
39 @@ -17,6 +19,15 @@
40 DEPEND=">=dev-lang/ocaml-3.04 \
41 >=sys-libs/zlib-1.1.3"
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 @@ -26,7 +37,9 @@
56
57 src_compile() {
58 emake all || die "Failed at compilation step !!!"
59 - emake allopt || die "Failed at ML compilation step !!!"
60 + if use ocamlopt; then
61 + emake allopt || die "Failed at ML compilation step !!!"
62 + fi
63 }
64
65 src_install() {
66
67
68
69 1.10 dev-ml/camlzip/ChangeLog
70
71 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/camlzip/ChangeLog?rev=1.10&view=markup
72 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/camlzip/ChangeLog?rev=1.10&content-type=text/plain
73 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/camlzip/ChangeLog?r1=1.9&r2=1.10
74
75 Index: ChangeLog
76 ===================================================================
77 RCS file: /var/cvsroot/gentoo-x86/dev-ml/camlzip/ChangeLog,v
78 retrieving revision 1.9
79 retrieving revision 1.10
80 diff -u -r1.9 -r1.10
81 --- ChangeLog 10 Nov 2007 14:35:46 -0000 1.9
82 +++ ChangeLog 2 Jan 2008 19:56:51 -0000 1.10
83 @@ -1,6 +1,9 @@
84 # ChangeLog for dev-ml/camlzip
85 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
86 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/camlzip/ChangeLog,v 1.9 2007/11/10 14:35:46 aballier Exp $
87 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
88 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/camlzip/ChangeLog,v 1.10 2008/01/02 19:56:51 aballier Exp $
89 +
90 + 02 Jan 2008; Alexis Ballier <aballier@g.o> camlzip-1.03-r1.ebuild:
91 + Add support to not build with ocamlopt
92
93 10 Nov 2007; Alexis Ballier <aballier@g.o>
94 files/camlzip-1.03-Makefile-findlib.patch:
95
96
97
98 --
99 gentoo-commits@g.o mailing list