1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="Modules for OCaml application-level Internet protocols"
10 HOMEPAGE="http://projects.camlcity.org/projects/ocamlnet.html"
11 SRC_URI="http://download.camlcity.org/download/${MY_P}.tar.gz"
15 KEYWORDS="~amd64 ~ppc ~x86"
16 IUSE="gtk kerberos tk httpd +ocamlopt +pcre ssl zip"
17 RESTRICT="installsources strip"
19 # the auth-dh compile flag has been disabled as well, since it depends on
20 # ocaml-cryptgps, which is not available.
22 RDEPEND=">=dev-ml/findlib-1.0
23 pcre? ( >=dev-ml/pcre-ocaml-5:= )
24 >=dev-lang/ocaml-3.10.2:=[ocamlopt?]
25 tk? ( dev-ml/labltk:= )
26 ssl? ( net-libs/gnutls:= )
27 gtk? ( >=dev-ml/lablgtk-2:= )
28 kerberos? ( virtual/krb5 )
29 zip? ( dev-ml/camlzip:= )
45 ocamlnet_use_enable() {
56 -datadir /usr/share/${PN} \
57 $(ocamlnet_use_enable ssl gnutls) \
58 $(ocamlnet_use_enable gtk gtk2) \
59 $(ocamlnet_use_enable kerberos gssapi) \
60 $(ocamlnet_use_enable pcre pcre) \
61 $(ocamlnet_use_enable tk tcl) \
62 $(ocamlnet_use_enable zip zip) \
63 $(ocamlnet_use_with httpd nethttpd) \
64 || die "Error : econf failed!"