summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2022-04-09 11:05:00 -0700
committerZac Medico <zmedico@gentoo.org>2022-04-09 12:48:08 -0700
commit2a6735de39a37a54ba863d3141f709703fb463c6 (patch)
tree48ee89152c90ead9dbfb6bdb8cb4a134dbdd6629 /sys-libs/libnvme
parentdev-python/editables: Keyword 0.2 ppc, #837074 (diff)
downloadgentoo-2a6735de39a37a54ba863d3141f709703fb463c6.tar.gz
gentoo-2a6735de39a37a54ba863d3141f709703fb463c6.tar.bz2
gentoo-2a6735de39a37a54ba863d3141f709703fb463c6.zip
sys-libs/libnvme: initial import
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'sys-libs/libnvme')
-rw-r--r--sys-libs/libnvme/Manifest1
-rw-r--r--sys-libs/libnvme/libnvme-1.0.ebuild28
-rw-r--r--sys-libs/libnvme/metadata.xml12
3 files changed, 41 insertions, 0 deletions
diff --git a/sys-libs/libnvme/Manifest b/sys-libs/libnvme/Manifest
new file mode 100644
index 000000000000..bc7a3027d394
--- /dev/null
+++ b/sys-libs/libnvme/Manifest
@@ -0,0 +1 @@
+DIST libnvme-1.0.tar.gz 323956 BLAKE2B 66d8c6b32be1f07306ddfad336e11c2c34e64223344af6d8995ca691658f819c667a96ffb567d1315c19cb5e34dfc217bf6e00bcee1d86d616395d0d58718683 SHA512 119c5f0f6eef47c8922d7c40ff8b6374e211364d8d2df64f1fcc72f2f83216fd81d55e7667d126ab6304128bb58f8e491f845b5a247f64b639a1654a57580f7c
diff --git a/sys-libs/libnvme/libnvme-1.0.ebuild b/sys-libs/libnvme/libnvme-1.0.ebuild
new file mode 100644
index 000000000000..2a0a33ef7701
--- /dev/null
+++ b/sys-libs/libnvme/libnvme-1.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson
+
+DESCRIPTION="C Library for NVM Express on Linux"
+HOMEPAGE="https://github.com/linux-nvme/libnvme"
+LICENSE="LGPL-2.1+"
+SLOT="0"
+IUSE="+json ssl +uuid"
+
+SRC_URI="https://github.com/linux-nvme/libnvme/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+DEPEND="
+ json? ( dev-libs/json-c:= )
+ ssl? ( >=dev-libs/openssl-1.1:= )
+ uuid? ( sys-apps/util-linux:= )
+"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ local emesonargs=(
+ -Dpython=false
+ )
+ meson_src_configure
+}
diff --git a/sys-libs/libnvme/metadata.xml b/sys-libs/libnvme/metadata.xml
new file mode 100644
index 000000000000..d4557367c332
--- /dev/null
+++ b/sys-libs/libnvme/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ <name>Zac Medico</name>
+ </maintainer>
+ <use>
+ <flag name="json">Support JSON output via <pkg>dev-libs/json-c</pkg></flag>
+ <flag name="uuid">UUID support via <pkg>sys-apps/util-linux</pkg></flag>
+ </use>
+</pkgmetadata>