mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 20:13:01 -04:00
dev-ml/conduit: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
1
dev-ml/conduit/Manifest
Normal file
1
dev-ml/conduit/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST conduit-5.1.0.tar.gz 41320 BLAKE2B 224201539d7947128c7eeb4d25b95324b8b3ec176ad13593841edd4f131aa6b4f089547d054d1280285d3554cd54c36c0654111204d7443b1f0e66d8de7a50d2 SHA512 5308803f4653d30399b1549cd4f27d0132b2f0202cc626cd1344620684bd8a7e08b8de1887cad73a0eba4c677946192aa05199bce8c0844fecf3695338156b09
|
||||
84
dev-ml/conduit/conduit-5.1.0.ebuild
Normal file
84
dev-ml/conduit/conduit-5.1.0.ebuild
Normal file
@@ -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
|
||||
}
|
||||
17
dev-ml/conduit/metadata.xml
Normal file
17
dev-ml/conduit/metadata.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">mirage/ocaml-conduit</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="async">A network connection establishment library for Async</flag>
|
||||
<flag name="lwt">A portable network connection establishment library using Lwt</flag>
|
||||
<flag name="lwt-unix">A network connection establishment library for Lwt_unix</flag>
|
||||
<flag name="mirage">A network connection establishment library for MirageOS</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user