commit: 3ba413754a50ee23494b225a0d9298a06a5bc66c Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> AuthorDate: Sat Apr 9 13:32:11 2022 +0000 Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me> CommitDate: Fri Apr 15 20:34:20 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3ba41375
dev-ml/vhd: initial import Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> dev-ml/vhd/Manifest | 1 + dev-ml/vhd/metadata.xml | 14 ++++++++++++ dev-ml/vhd/vhd-0.12.2.ebuild | 52 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) diff --git a/dev-ml/vhd/Manifest b/dev-ml/vhd/Manifest new file mode 100644 index 000000000..d18356c4d --- /dev/null +++ b/dev-ml/vhd/Manifest @@ -0,0 +1 @@ +DIST vhd-0.12.2.tar.gz 51907 BLAKE2B 55c08d3dc7ec6f3611fe081860942f0e68eb6e1cdb284d5190baac70d5f2145ea8af3adb80ab51a388b9810b13bece8654d0c49814fecba212d0a400b9cd1662 SHA512 bea4b97492b9c5304418ed220e9303d8d94b3a7db6b7dc3566a967a9878da7dc69b655be6a66edb0ff22806de13c75693cf2dbe93e6e57a736fab0964872d99d diff --git a/dev-ml/vhd/metadata.xml b/dev-ml/vhd/metadata.xml new file mode 100644 index 000000000..909764cf1 --- /dev/null +++ b/dev-ml/vhd/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Alessandro Barbieri</name> + </maintainer> + <upstream> + <remote-id type="github">mirage/ocaml-vhd</remote-id> + </upstream> + <use> + <flag name="lwt">provide an Lwt compatible interface to the library</flag> + </use> +</pkgmetadata> diff --git a/dev-ml/vhd/vhd-0.12.2.ebuild b/dev-ml/vhd/vhd-0.12.2.ebuild new file mode 100644 index 000000000..07ba2d35f --- /dev/null +++ b/dev-ml/vhd/vhd-0.12.2.ebuild @@ -0,0 +1,52 @@ +# 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="Read and write .vhd-format format data" +HOMEPAGE="https://github.com/mirage/ocaml-vhd-format" +SRC_URI="https://github.com/mirage/${MYPN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${MYPN}-${PV}" + +LICENSE="LGPL-2.1-with-linking-exception" +SLOT="0/${PV}" +KEYWORDS="~amd64" +IUSE="lwt ocamlopt test" + +RDEPEND=" + dev-ml/cstruct + dev-ml/io-page + dev-ml/rresult + dev-ml/uuidm + dev-ml/stdlib-shims + + lwt? ( + dev-ml/mirage-block + dev-ml/lwt + ) +" +DEPEND=" + ${RDEPEND} + test? ( + dev-ml/ounit + dev-ml/io-page[unix(-)] + ) +" + +RESTRICT="!test? ( test )" +REQUIRED_USE="test? ( lwt )" + +src_compile() { + local pkgs="vhd-format" + use lwt && pkgs="${pkgs},vhd-format-lwt" + dune build -p "${pkgs}" -j $(makeopts_jobs) || die +} + +src_install() { + dune_src_install vhd-format + use lwt && dune_src_install vhd-format-lwt +}
