diff --git a/dev-ml/conduit/Manifest b/dev-ml/conduit/Manifest new file mode 100644 index 0000000000..a337b00fca --- /dev/null +++ b/dev-ml/conduit/Manifest @@ -0,0 +1 @@ +DIST conduit-5.1.0.tar.gz 41320 BLAKE2B 224201539d7947128c7eeb4d25b95324b8b3ec176ad13593841edd4f131aa6b4f089547d054d1280285d3554cd54c36c0654111204d7443b1f0e66d8de7a50d2 SHA512 5308803f4653d30399b1549cd4f27d0132b2f0202cc626cd1344620684bd8a7e08b8de1887cad73a0eba4c677946192aa05199bce8c0844fecf3695338156b09 diff --git a/dev-ml/conduit/conduit-5.1.0.ebuild b/dev-ml/conduit/conduit-5.1.0.ebuild new file mode 100644 index 0000000000..830c4c8a21 --- /dev/null +++ b/dev-ml/conduit/conduit-5.1.0.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit dune multiprocessing + +MYPN="ocaml-${PN}" + +DESCRIPTION="Dereference URIs into communication channels for Async or Lwt" +HOMEPAGE="https://github.com/mirage/ocaml-conduit" +SRC_URI="https://github.com/mirage/${MYPN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${MYPN}-${PV}" + +LICENSE="ISC" +SLOT="0/${PV}" +KEYWORDS="~amd64" +IUSE="async lwt lwt-unix mirage ocamlopt" + +# lwt-unix? tls lwt_ssl launchd +RDEPEND=" + dev-ml/astring + dev-ml/ipaddr[sexp] + dev-ml/logs + dev-ml/ppx_sexp_conv + dev-ml/sexplib + dev-ml/uri + + async? ( + dev-ml/async + dev-ml/async_ssl + dev-ml/core + dev-ml/ppx_here + ) + lwt? ( + dev-ml/base-unix + dev-ml/lwt + ) + lwt-unix? ( + dev-ml/base-unix + dev-ml/ca-certs + dev-ml/lwt + ) + mirage? ( + dev-ml/base + dev-ml/ca-certs-nss + dev-ml/cstruct + dev-ml/dns[client] + dev-ml/fmt + dev-ml/mirage-clock + dev-ml/mirage-flow[combinators] + dev-ml/mirage-random + dev-ml/mirage-time + dev-ml/tcpip + dev-ml/tls[mirage] + dev-ml/vchan + dev-ml/xenstore + ) +" +DEPEND="${RDEPEND}" + +REQUIRED_USE=" + lwt-unix? ( lwt ) + mirage? ( lwt ) +" + +src_compile() { + local pkgs="conduit" + for u in async lwt lwt-unix mirage ; do + if use ${u} ; then + pkgs="${pkgs},conduit-${u}" + fi + done + dune build --only-packages "${pkgs}" -j $(makeopts_jobs) --profile release || die +} + +src_install() { + dune_src_install conduit + for u in async lwt lwt-unix mirage ; do + if use ${u} ; then + dune_src_install "conduit-${u}" + fi + done +} diff --git a/dev-ml/conduit/metadata.xml b/dev-ml/conduit/metadata.xml new file mode 100644 index 0000000000..818fe748bb --- /dev/null +++ b/dev-ml/conduit/metadata.xml @@ -0,0 +1,17 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + mirage/ocaml-conduit + + + A network connection establishment library for Async + A portable network connection establishment library using Lwt + A network connection establishment library for Lwt_unix + A network connection establishment library for MirageOS + +