public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: dev-ml/nbd/
@ 2022-04-15 20:34 Alessandro Barbieri
  0 siblings, 0 replies; only message in thread
From: Alessandro Barbieri @ 2022-04-15 20:34 UTC (permalink / raw
  To: gentoo-commits

commit:     c1d3bdf96e7c6ba13546d9e9887180eae6aaf547
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat Apr  9 13:50:52 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Fri Apr 15 20:34:20 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c1d3bdf9

dev-ml/nbd: initial import

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 dev-ml/nbd/Manifest         |  1 +
 dev-ml/nbd/metadata.xml     | 15 ++++++++++
 dev-ml/nbd/nbd-5.0.0.ebuild | 67 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 83 insertions(+)

diff --git a/dev-ml/nbd/Manifest b/dev-ml/nbd/Manifest
new file mode 100644
index 000000000..f3c31ffc7
--- /dev/null
+++ b/dev-ml/nbd/Manifest
@@ -0,0 +1 @@
+DIST nbd-5.0.0.tar.gz 45288 BLAKE2B 783f54a633693315493d4e6edfb900aa885a41e0233514f75dde4658f9e60bfa9a076d3c314e83987f98d41ef7b632e79d2527389d6e1232c8488fb8454a6528 SHA512 33bece2c02666b39ab671ea5ae3425780deaa542ae135d01a7c5f9c4020a0e3953a4811cc1cfc2d02bed4d143d469d8425f5c9bf0b6df4bc444c3326826f129f

diff --git a/dev-ml/nbd/metadata.xml b/dev-ml/nbd/metadata.xml
new file mode 100644
index 000000000..560dfe855
--- /dev/null
+++ b/dev-ml/nbd/metadata.xml
@@ -0,0 +1,15 @@
+<?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">xapi-project/nbd</remote-id>
+  </upstream>
+  <use>
+    <flag name="tool">command line helper for serving and mirroring disks over NBD, and getting information about the disks exported by an NBD server</flag>
+    <flag name="unix">Lwt_unix implementation</flag>
+  </use>
+</pkgmetadata>

diff --git a/dev-ml/nbd/nbd-5.0.0.ebuild b/dev-ml/nbd/nbd-5.0.0.ebuild
new file mode 100644
index 000000000..688518165
--- /dev/null
+++ b/dev-ml/nbd/nbd-5.0.0.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune multiprocessing
+
+DESCRIPTION="Ocaml NBD library"
+HOMEPAGE="https://github.com/xapi-project/nbd"
+SRC_URI="https://github.com/xapi-project/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1-with-linking-exception"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test tool unix"
+
+RDEPEND="
+	dev-ml/cstruct[ppx]
+	dev-ml/io-page
+	dev-ml/mirage-block-unix
+	dev-ml/lwt
+	dev-ml/lwt_log
+	dev-ml/ppx_sexp_conv
+	dev-ml/rresult
+	dev-ml/sexplib
+	dev-ml/uri
+
+	tool? ( dev-ml/cmdliner )
+	unix? (
+		dev-ml/cstruct[lwt]
+		dev-ml/io-page[unix(-)]
+		dev-ml/lwt_ssl
+		dev-ml/ocaml-ssl
+	)
+"
+DEPEND="
+	${RDEPEND}
+	test? (
+		app-emulation/qemu
+		dev-ml/alcotest
+		dev-ml/io-page[unix(-)]
+		sys-block/nbd
+		|| ( net-analyzer/openbsd-netcat net-analyzer/nmap[ncat] )
+	)
+"
+
+RESTRICT="!test? ( test )"
+REQUIRED_USE="
+	tool? ( unix )
+	test? ( tool )
+"
+
+src_compile() {
+	local pkgs="nbd"
+	for u in tool unix ; do
+		if use ${u} ; then
+			pkgs="${pkgs},nbd-${u}"
+		fi
+	done
+	dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
+src_install() {
+	dune_src_install nbd
+	use tool && dune_src_install nbd-tool
+	use unix && dune_src_install nbd-unix
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-15 20:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-15 20:34 [gentoo-commits] repo/proj/guru:dev commit in: dev-ml/nbd/ Alessandro Barbieri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox