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.5.1.ebuild
Date: Wed, 07 Mar 2012 09:28:27
Message-Id: 20120307092817.6C6FA2004B@flycatcher.gentoo.org
1 aballier 12/03/07 09:28:17
2
3 Modified: ChangeLog
4 Added: ocamlnet-3.5.1.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.0_alpha90/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.58 dev-ml/ocamlnet/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocamlnet/ChangeLog?rev=1.58&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocamlnet/ChangeLog?rev=1.58&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocamlnet/ChangeLog?r1=1.57&r2=1.58
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ml/ocamlnet/ChangeLog,v
20 retrieving revision 1.57
21 retrieving revision 1.58
22 diff -u -r1.57 -r1.58
23 --- ChangeLog 2 Mar 2012 15:02:44 -0000 1.57
24 +++ ChangeLog 7 Mar 2012 09:28:17 -0000 1.58
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ml/ocamlnet
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlnet/ChangeLog,v 1.57 2012/03/02 15:02:44 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlnet/ChangeLog,v 1.58 2012/03/07 09:28:17 aballier Exp $
30 +
31 +*ocamlnet-3.5.1 (07 Mar 2012)
32 +
33 + 07 Mar 2012; Alexis Ballier <aballier@g.o> +ocamlnet-3.5.1.ebuild:
34 + version bump
35
36 02 Mar 2012; Agostino Sarubbo <ago@g.o> ocamlnet-3.5.ebuild:
37 Stable for amd64, wrt bug #405959
38
39
40
41 1.1 dev-ml/ocamlnet/ocamlnet-3.5.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocamlnet/ocamlnet-3.5.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocamlnet/ocamlnet-3.5.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ocamlnet-3.5.1.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlnet/ocamlnet-3.5.1.ebuild,v 1.1 2012/03/07 09:28:17 aballier Exp $
51
52 EAPI="2"
53
54 inherit eutils findlib
55
56 MY_P=${P/_beta/test}
57 DESCRIPTION="Modules for OCaml application-level Internet protocols"
58 HOMEPAGE="http://projects.camlcity.org/projects/ocamlnet.html"
59 SRC_URI="http://download.camlcity.org/download/${MY_P}.tar.gz"
60
61 LICENSE="as-is GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86 ~x86-fbsd"
64 IUSE="cryptokit gtk ssl tk httpd +ocamlopt +pcre zip"
65 RESTRICT="installsources"
66
67 # the auth-dh compile flag has been disabled as well, since it depends on
68 # ocaml-cryptgps, which is not available.
69
70 DEPEND=">=dev-ml/findlib-1.0
71 pcre? ( >=dev-ml/pcre-ocaml-5 )
72 >=dev-lang/ocaml-3.10.2[tk?,ocamlopt?]
73 cryptokit? ( dev-ml/cryptokit )
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 cryptokit crypto) \
103 $(ocamlnet_use_enable gtk gtk2) \
104 $(ocamlnet_use_enable pcre pcre) \
105 $(ocamlnet_use_enable ssl ssl) \
106 $(ocamlnet_use_enable tk tcl) \
107 $(ocamlnet_use_enable zip zip) \
108 $(ocamlnet_use_with httpd nethttpd) \
109 || die "Error : econf failed!"
110 }
111
112 src_compile() {
113 emake -j1 all || die "make failed"
114 if use ocamlopt; then
115 emake -j1 opt || die "make failed"
116 fi
117 }
118
119 src_install() {
120 export STRIP_MASK="*/bin/*"
121 findlib_src_install
122 }