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