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/ocamlnet: ChangeLog ocamlnet-3.2.1.ebuild
Date: Tue, 22 Feb 2011 14:00:04
Message-Id: 20110222135949.993322004F@flycatcher.gentoo.org
1 aballier 11/02/22 13:59:49
2
3 Modified: ChangeLog
4 Added: ocamlnet-3.2.1.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.0_alpha24/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.45 dev-ml/ocamlnet/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocamlnet/ChangeLog?rev=1.45&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocamlnet/ChangeLog?rev=1.45&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocamlnet/ChangeLog?r1=1.44&r2=1.45
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ml/ocamlnet/ChangeLog,v
20 retrieving revision 1.44
21 retrieving revision 1.45
22 diff -u -r1.44 -r1.45
23 --- ChangeLog 23 Dec 2010 15:56:11 -0000 1.44
24 +++ ChangeLog 22 Feb 2011 13:59:49 -0000 1.45
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ml/ocamlnet
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlnet/ChangeLog,v 1.44 2010/12/23 15:56:11 aballier Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlnet/ChangeLog,v 1.45 2011/02/22 13:59:49 aballier Exp $
31 +
32 +*ocamlnet-3.2.1 (22 Feb 2011)
33 +
34 + 22 Feb 2011; Alexis Ballier <aballier@g.o> +ocamlnet-3.2.1.ebuild:
35 + version bump
36
37 *ocamlnet-3.2 (23 Dec 2010)
38
39
40
41
42 1.1 dev-ml/ocamlnet/ocamlnet-3.2.1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocamlnet/ocamlnet-3.2.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocamlnet/ocamlnet-3.2.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: ocamlnet-3.2.1.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlnet/ocamlnet-3.2.1.ebuild,v 1.1 2011/02/22 13:59:49 aballier Exp $
52
53 EAPI="2"
54
55 inherit eutils findlib
56
57 MY_P=${P/_beta/test}
58 DESCRIPTION="Modules for OCaml application-level Internet protocols"
59 HOMEPAGE="http://projects.camlcity.org/projects/ocamlnet.html"
60 SRC_URI="http://download.camlcity.org/download/${MY_P}.tar.gz"
61
62 LICENSE="as-is GPL-2"
63 SLOT="0"
64 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
65 IUSE="gtk ssl tk httpd +ocamlopt zip"
66 RESTRICT="installsources"
67
68 # the auth-dh compile flag has been disabled as well, since it depends on
69 # ocaml-cryptgps, which is not available.
70
71 DEPEND=">=dev-ml/findlib-1.0
72 >=dev-ml/pcre-ocaml-5
73 >=dev-lang/ocaml-3.10.2[tk?,ocamlopt?]
74 gtk? ( >=dev-ml/lablgtk-2 )
75 ssl? ( >=dev-ml/ocaml-ssl-0.4 )
76 zip? ( dev-ml/camlzip )
77 "
78 RDEPEND="${DEPEND}"
79
80 S=${WORKDIR}/${MY_P}
81
82 ocamlnet_use_with() {
83 if use $1; then
84 echo "-with-$2"
85 else
86 echo "-without-$2"
87 fi
88 }
89
90 ocamlnet_use_enable() {
91 if use $1; then
92 echo "-enable-$2"
93 else
94 echo "-disable-$2"
95 fi
96 }
97
98 src_configure() {
99 ./configure \
100 -bindir /usr/bin \
101 -datadir /usr/share/${PN} \
102 $(ocamlnet_use_enable gtk gtk2) \
103 $(ocamlnet_use_enable ssl ssl) \
104 $(ocamlnet_use_enable tk tcl) \
105 $(ocamlnet_use_enable zip zip) \
106 $(ocamlnet_use_with httpd nethttpd) \
107 || die "Error : econf failed!"
108 }
109
110 src_compile() {
111 emake -j1 all || die "make failed"
112 if use ocamlopt; then
113 emake -j1 opt || die "make failed"
114 fi
115 }
116
117 src_install() {
118 export STRIP_MASK="*/bin/*"
119 findlib_src_install
120 }