diff --git a/dev-ml/mirage-block/Manifest b/dev-ml/mirage-block/Manifest new file mode 100644 index 0000000000..e9e5cfc399 --- /dev/null +++ b/dev-ml/mirage-block/Manifest @@ -0,0 +1 @@ +DIST mirage-block-3.0.0.tar.gz 9920 BLAKE2B e35702a2a363117270c9d6f637d509c8a5f236535018907d47ea1d5a83dc5efbb8eddbb4b9562ce3b6b991197abfbd83b4c6c8679fddee034037465586842192 SHA512 e8580ac754a2d5e90dfb0fa5c0709014bdcd5c76c818ab5f471392d218e5cd8cfe4de8d5cebfdb713cedc3b1ecf50541818d9d835a99a5dd6636ba7fc15a0958 diff --git a/dev-ml/mirage-block/metadata.xml b/dev-ml/mirage-block/metadata.xml new file mode 100644 index 0000000000..f1b9cef231 --- /dev/null +++ b/dev-ml/mirage-block/metadata.xml @@ -0,0 +1,14 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + mirage/mirage-block + + + Build the package specialised to the Lwt concurrency library for IO + + diff --git a/dev-ml/mirage-block/mirage-block-3.0.0.ebuild b/dev-ml/mirage-block/mirage-block-3.0.0.ebuild new file mode 100644 index 0000000000..89393a9bd8 --- /dev/null +++ b/dev-ml/mirage-block/mirage-block-3.0.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit dune multiprocessing + +DESCRIPTION="Block implementations for mirage" +HOMEPAGE="https://github.com/mirage/mirage-block" +SRC_URI="https://github.com/mirage/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="ISC" +SLOT="0/${PV}" +KEYWORDS="~amd64" +IUSE="combinators ocamlopt" + +RDEPEND=" + dev-ml/cstruct + dev-ml/lwt + dev-ml/fmt + + combinators? ( + dev-ml/io-page + dev-ml/logs + ) +" +DEPEND="${RDEPEND}" + +src_compile() { + local pkgs="mirage-block" + use combinators && pkgs="${pkgs},mirage-block-combinators" + dune build -p "${pkgs}" -j $(makeopts_jobs) || die +} + +src_install() { + dune_src_install mirage-block + use combinators && dune_src_install mirage-block-combinators +}