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/ocaml-mysql: ChangeLog ocaml-mysql-1.0.4.ebuild
Date: Thu, 03 Jan 2008 23:24:23
Message-Id: E1JAZQ9-0000hc-KH@stork.gentoo.org
1 aballier 08/01/03 23:24:17
2
3 Modified: ChangeLog
4 Added: ocaml-mysql-1.0.4.ebuild
5 Log:
6 version bump, make ocamlopt optional, ~amd64
7 (Portage version: 2.1.4_rc14)
8
9 Revision Changes Path
10 1.6 dev-ml/ocaml-mysql/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/ocaml-mysql/ChangeLog?rev=1.6&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/ocaml-mysql/ChangeLog?rev=1.6&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/ocaml-mysql/ChangeLog?r1=1.5&r2=1.6
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-ml/ocaml-mysql/ChangeLog,v
19 retrieving revision 1.5
20 retrieving revision 1.6
21 diff -u -r1.5 -r1.6
22 --- ChangeLog 23 Nov 2006 17:14:59 -0000 1.5
23 +++ ChangeLog 3 Jan 2008 23:24:17 -0000 1.6
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-ml/ocaml-mysql
26 -# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocaml-mysql/ChangeLog,v 1.5 2006/11/23 17:14:59 vivo Exp $
28 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocaml-mysql/ChangeLog,v 1.6 2008/01/03 23:24:17 aballier Exp $
30 +
31 +*ocaml-mysql-1.0.4 (03 Jan 2008)
32 +
33 + 03 Jan 2008; Alexis Ballier <aballier@g.o>
34 + +ocaml-mysql-1.0.4.ebuild:
35 + version bump, make ocamlopt optional, ~amd64
36
37 23 Nov 2006; Francesco Riosa <vivo@g.o>
38 ocaml-mysql-1.0.3-r1.ebuild:
39
40
41
42 1.1 dev-ml/ocaml-mysql/ocaml-mysql-1.0.4.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/ocaml-mysql/ocaml-mysql-1.0.4.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/ocaml-mysql/ocaml-mysql-1.0.4.ebuild?rev=1.1&content-type=text/plain
46
47 Index: ocaml-mysql-1.0.4.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-ml/ocaml-mysql/ocaml-mysql-1.0.4.ebuild,v 1.1 2008/01/03 23:24:17 aballier Exp $
52
53 inherit findlib eutils
54
55 EAPI="1"
56
57 IUSE="doc +ocamlopt"
58
59 DESCRIPTION="A package for ocaml that provides access to mysql databases."
60 SRC_URI="http://raevnos.pennmush.org/code/${PN}/${P}.tar.gz"
61 HOMEPAGE="http://raevnos.pennmush.org/code/ocaml-mysql/index.html"
62
63 DEPEND=">=dev-lang/ocaml-3.06
64 >=virtual/mysql-4.0"
65
66 RDEPEND="$DEPEND"
67
68 SLOT="0"
69 LICENSE="LGPL-2"
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_unpack() {
82 unpack ${A}
83 cd "${S}"
84
85 epatch "${FILESDIR}/${PN}-1.0.3-head.patch"
86 epatch "${FILESDIR}/${PN}-1.0.3-shtool-r1.patch"
87 }
88
89 src_compile()
90 {
91 econf
92 emake all || die "make failed"
93 if use ocamlopt; then
94 emake opt || die "make opt failed"
95 fi
96 }
97
98 src_install()
99 {
100 findlib_src_preinst
101 emake install || die "make install failed"
102
103 use doc && dohtml -r doc/html/*
104 dodoc CHANGES README VERSION
105 }
106
107
108
109 --
110 gentoo-commits@g.o mailing list