Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libnvme/
Date: Mon, 31 Oct 2022 17:50:40
Message-Id: 1667238628.cc8879ac81709b076b714a4663ddddc1761495bf.chutzpah@gentoo
1 commit: cc8879ac81709b076b714a4663ddddc1761495bf
2 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 31 17:33:46 2022 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 31 17:50:28 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc8879ac
7
8 sys-libs/libnvme: add 1.2
9
10 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
11
12 sys-libs/libnvme/Manifest | 1 +
13 sys-libs/libnvme/libnvme-1.2.ebuild | 61 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 62 insertions(+)
15
16 diff --git a/sys-libs/libnvme/Manifest b/sys-libs/libnvme/Manifest
17 index f5044c8d3907..13a38b86438d 100644
18 --- a/sys-libs/libnvme/Manifest
19 +++ b/sys-libs/libnvme/Manifest
20 @@ -1,2 +1,3 @@
21 DIST libnvme-1.0.tar.gz 323956 BLAKE2B 66d8c6b32be1f07306ddfad336e11c2c34e64223344af6d8995ca691658f819c667a96ffb567d1315c19cb5e34dfc217bf6e00bcee1d86d616395d0d58718683 SHA512 119c5f0f6eef47c8922d7c40ff8b6374e211364d8d2df64f1fcc72f2f83216fd81d55e7667d126ab6304128bb58f8e491f845b5a247f64b639a1654a57580f7c
22 DIST libnvme-1.1.tar.gz 449185 BLAKE2B 8914ded0dd3bcd39bef382ebe4f5d136ae20a3ebd08004ca190e6ce6655b572aef503df2a8d4f020a4a3d44b4c3b49b46c55707e8fe24899d05fa85c2080f641 SHA512 4cff793506566ff493db0026aac6271003c21c691a459fe5e3b45fe42655b78b1e19aea4b848e4d9535f43782945738500b2f42c3615379110e9938c8b105869
23 +DIST libnvme-1.2.tar.gz 484397 BLAKE2B ae6b1c3aa8f45594219470059cfc8982674433772f89faab1659811d860036f8af89bbcb383db37e96b763188935d2c1ecaa5176b8140bba50f8ea226e989a06 SHA512 f50517838cd1df3cdd123afdb67870633e9e484bf84dba70b784d7e86ecb355b96ba9d6a1cffb96b35444da7870dfe21c54b69701b5fe5b515319280db4a84e4
24
25 diff --git a/sys-libs/libnvme/libnvme-1.2.ebuild b/sys-libs/libnvme/libnvme-1.2.ebuild
26 new file mode 100644
27 index 000000000000..ab243c0836c3
28 --- /dev/null
29 +++ b/sys-libs/libnvme/libnvme-1.2.ebuild
30 @@ -0,0 +1,61 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..11} )
37 +inherit python-utils-r1 python-r1 meson
38 +
39 +DESCRIPTION="C Library for NVM Express on Linux"
40 +HOMEPAGE="https://github.com/linux-nvme/libnvme"
41 +LICENSE="LGPL-2.1+"
42 +SLOT="0"
43 +IUSE="+json python ssl +uuid"
44 +
45 +SRC_URI="https://github.com/linux-nvme/libnvme/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
46 +KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86"
47 +
48 +DEPEND="
49 + json? ( dev-libs/json-c:= )
50 + python? ( ${PYTHON_DEPS} )
51 + ssl? ( >=dev-libs/openssl-1.1:= )
52 + uuid? ( sys-apps/util-linux:= )
53 +"
54 +RDEPEND="${DEPEND}"
55 +
56 +REQUIRED_USE="
57 + python? ( ${PYTHON_REQUIRED_USE} )
58 +"
59 +
60 +src_configure() {
61 + local emesonargs=(
62 + -Dpython=false
63 + )
64 + meson_src_configure
65 +}
66 +
67 +python_compile() {
68 + local emesonargs=(
69 + -Dpython=true
70 + )
71 + meson_src_configure --reconfigure
72 + meson_src_compile
73 +}
74 +
75 +src_compile() {
76 + meson_src_compile
77 + python_copy_sources
78 +
79 + use python && python_foreach_impl python_compile
80 +}
81 +
82 +python_install() {
83 + meson_src_install
84 + python_optimize
85 +}
86 +
87 +src_install() {
88 + use python && python_foreach_impl python_install
89 +
90 + meson_src_install
91 +}