1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="nanomsg bindings for OCaml"
9 HOMEPAGE="https://github.com/rgrinberg/onanomsg"
10 SRC_URI="https://github.com/rgrinberg/onanomsg/archive/${PV}.tar.gz -> ${P}.tar.gz"
13 SLOT="0/${PV}-bigstring"
15 IUSE="+lwt +ocamlopt test"
16 RESTRICT="!test? ( test )"
20 dev-lang/ocaml:=[ocamlopt?]
22 dev-ml/ocaml-ipaddr:=[ocamlopt?]
24 dev-ml/ppx_deriving:=[ocamlopt?]
25 dev-ml/ocaml-containers:=[ocamlopt?]
26 dev-ml/ocaml-bigstring:=
27 lwt? ( dev-ml/lwt:=[ocamlopt(+)?] )
30 test? ( dev-ml/ounit )
34 epatch "${FILESDIR}/bigstring.patch" \
35 "${FILESDIR}/tests.patch" \
36 "${FILESDIR}/testrun.patch"
42 native=$(usex ocamlopt true false) \
43 native-dynlink=$(usex ocamlopt true false) \
44 lwt=$(usex lwt true false) \
45 ounit=$(usex test true false) \
50 opam_src_install nanomsg
51 dodoc CHANGES README.md