From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 701841584F2 for ; Tue, 18 Mar 2025 00:49:23 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 2EEDF34321B for ; Tue, 18 Mar 2025 00:49:23 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 1860611037F; Tue, 18 Mar 2025 00:49:22 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 0DCCA11037F for ; Tue, 18 Mar 2025 00:49:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AF9F7343215 for ; Tue, 18 Mar 2025 00:49:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0287D1D72 for ; Tue, 18 Mar 2025 00:49:20 +0000 (UTC) From: "Patrick McLean" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" Message-ID: <1742258413.7c141dabae85b26581147af3551a75f606bec041.chutzpah@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libnvme/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/libnvme/Manifest sys-libs/libnvme/libnvme-1.12.ebuild sys-libs/libnvme/metadata.xml X-VCS-Directories: sys-libs/libnvme/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: 7c141dabae85b26581147af3551a75f606bec041 X-VCS-Branch: master Date: Tue, 18 Mar 2025 00:49:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 30bbdbca-b927-491a-bb75-e0eb356e0dff X-Archives-Hash: 1d58dba1a6a1c0f8cfb2be2affc89d2a commit: 7c141dabae85b26581147af3551a75f606bec041 Author: Patrick McLean gentoo org> AuthorDate: Tue Mar 18 00:40:13 2025 +0000 Commit: Patrick McLean gentoo org> CommitDate: Tue Mar 18 00:40:13 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c141dab sys-libs/libnvme: add 1.12 Signed-off-by: Patrick McLean gentoo.org> sys-libs/libnvme/Manifest | 1 + sys-libs/libnvme/libnvme-1.12.ebuild | 77 ++++++++++++++++++++++++++++++++++++ sys-libs/libnvme/metadata.xml | 1 + 3 files changed, 79 insertions(+) diff --git a/sys-libs/libnvme/Manifest b/sys-libs/libnvme/Manifest index 59fd69b7f85c..d7e7b12c1b25 100644 --- a/sys-libs/libnvme/Manifest +++ b/sys-libs/libnvme/Manifest @@ -1 +1,2 @@ DIST libnvme-1.11.1.gh.tar.gz 740327 BLAKE2B eb9a731ce4886e7a76170d4be916e850548710dbbc135bbe94c5ff0c2f3da5e2cb162a6c8ea857d6b9b609ffafba34487cd3419fc4981e9e549419c2bb757568 SHA512 8720f2907a3d13af44fb3deec883cd6eb247d5861c4459b5fe0e67ff9ecfb565462a5faf39d43e08b5284f3e8ca8e72d41b333984beaa45d3287b1a258f3e59d +DIST libnvme-1.12.gh.tar.gz 775030 BLAKE2B b6c9da012c39ec0b5ce671f498fd55b904ea9f0c34f8358eed166e08f9ef12c760707aa693a0123267cfb256812650f0afb5d017f4c8a940b61e18f9998d8b9e SHA512 6681f476c36d077d1481336ca66327cfed9b910e75309334a1eb1fa8ccfba7982d96c7b3ae5d587f306923247a716c5d70f4b71c26716e6be6020b470f9c1077 diff --git a/sys-libs/libnvme/libnvme-1.12.ebuild b/sys-libs/libnvme/libnvme-1.12.ebuild new file mode 100644 index 000000000000..ca09ee761688 --- /dev/null +++ b/sys-libs/libnvme/libnvme-1.12.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} python3_13t ) +inherit python-r1 meson + +DESCRIPTION="C Library for NVM Express on Linux" +HOMEPAGE="https://github.com/linux-nvme/libnvme" +SRC_URI="https://github.com/linux-nvme/libnvme/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="LGPL-2.1+" +SLOT="0/1" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="dbus +json keyutils python ssl test uring" +RESTRICT="!test? ( test )" + +REQUIRED_USE=" + python? ( ${PYTHON_REQUIRED_USE} ) +" + +DEPEND=" + json? ( dev-libs/json-c:= ) + keyutils? ( sys-apps/keyutils:= ) + dbus? ( sys-apps/dbus:= ) + python? ( ${PYTHON_DEPS} ) + ssl? ( >=dev-libs/openssl-1.1:= ) + uring? ( sys-libs/liburing:= ) +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + dev-lang/swig +" + +src_configure() { + local emesonargs=( + -Dpython=disabled + $(meson_use test tests) + $(meson_feature json json-c) + $(meson_feature dbus libdbus) + $(meson_feature keyutils) + $(meson_feature ssl openssl) + $(meson_feature uring liburing) + ) + meson_src_configure +} + +python_compile() { + local emesonargs=( + -Dpython=enabled + ) + meson_src_configure --reconfigure + meson_src_compile +} + +src_compile() { + meson_src_compile + + if use python; then + python_copy_sources + python_foreach_impl python_compile + fi +} + +python_install() { + meson_src_install + use python && python_optimize +} + +src_install() { + use python && python_foreach_impl python_install + + meson_src_install +} diff --git a/sys-libs/libnvme/metadata.xml b/sys-libs/libnvme/metadata.xml index b8882391c6fc..5b2185449d58 100644 --- a/sys-libs/libnvme/metadata.xml +++ b/sys-libs/libnvme/metadata.xml @@ -9,6 +9,7 @@ Support JSON output via dev-libs/json-c Add support for sys-apps/keyutils UUID support via sys-apps/util-linux + uring support via sys-libs/liburing linux-nvme/libnvme