From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AB9CB158020 for ; Mon, 31 Oct 2022 17:50:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E967C2BC058; Mon, 31 Oct 2022 17:50:39 +0000 (UTC) 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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CBFAB2BC062 for ; Mon, 31 Oct 2022 17:50:39 +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 C84F9340EEB for ; Mon, 31 Oct 2022 17:50:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 07DC175 for ; Mon, 31 Oct 2022 17:50:37 +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: <1667238628.cc8879ac81709b076b714a4663ddddc1761495bf.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.2.ebuild X-VCS-Directories: sys-libs/libnvme/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: cc8879ac81709b076b714a4663ddddc1761495bf X-VCS-Branch: master Date: Mon, 31 Oct 2022 17:50:37 +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: e99cf421-4b05-4ae1-a38b-553805ec02d7 X-Archives-Hash: 00d587d9cf34cc4fd14c7db0b1996fa3 commit: cc8879ac81709b076b714a4663ddddc1761495bf Author: Patrick McLean gentoo org> AuthorDate: Mon Oct 31 17:33:46 2022 +0000 Commit: Patrick McLean gentoo org> CommitDate: Mon Oct 31 17:50:28 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc8879ac sys-libs/libnvme: add 1.2 Signed-off-by: Patrick McLean gentoo.org> sys-libs/libnvme/Manifest | 1 + sys-libs/libnvme/libnvme-1.2.ebuild | 61 +++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/sys-libs/libnvme/Manifest b/sys-libs/libnvme/Manifest index f5044c8d3907..13a38b86438d 100644 --- a/sys-libs/libnvme/Manifest +++ b/sys-libs/libnvme/Manifest @@ -1,2 +1,3 @@ DIST libnvme-1.0.tar.gz 323956 BLAKE2B 66d8c6b32be1f07306ddfad336e11c2c34e64223344af6d8995ca691658f819c667a96ffb567d1315c19cb5e34dfc217bf6e00bcee1d86d616395d0d58718683 SHA512 119c5f0f6eef47c8922d7c40ff8b6374e211364d8d2df64f1fcc72f2f83216fd81d55e7667d126ab6304128bb58f8e491f845b5a247f64b639a1654a57580f7c DIST libnvme-1.1.tar.gz 449185 BLAKE2B 8914ded0dd3bcd39bef382ebe4f5d136ae20a3ebd08004ca190e6ce6655b572aef503df2a8d4f020a4a3d44b4c3b49b46c55707e8fe24899d05fa85c2080f641 SHA512 4cff793506566ff493db0026aac6271003c21c691a459fe5e3b45fe42655b78b1e19aea4b848e4d9535f43782945738500b2f42c3615379110e9938c8b105869 +DIST libnvme-1.2.tar.gz 484397 BLAKE2B ae6b1c3aa8f45594219470059cfc8982674433772f89faab1659811d860036f8af89bbcb383db37e96b763188935d2c1ecaa5176b8140bba50f8ea226e989a06 SHA512 f50517838cd1df3cdd123afdb67870633e9e484bf84dba70b784d7e86ecb355b96ba9d6a1cffb96b35444da7870dfe21c54b69701b5fe5b515319280db4a84e4 diff --git a/sys-libs/libnvme/libnvme-1.2.ebuild b/sys-libs/libnvme/libnvme-1.2.ebuild new file mode 100644 index 000000000000..ab243c0836c3 --- /dev/null +++ b/sys-libs/libnvme/libnvme-1.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +inherit python-utils-r1 python-r1 meson + +DESCRIPTION="C Library for NVM Express on Linux" +HOMEPAGE="https://github.com/linux-nvme/libnvme" +LICENSE="LGPL-2.1+" +SLOT="0" +IUSE="+json python ssl +uuid" + +SRC_URI="https://github.com/linux-nvme/libnvme/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86" + +DEPEND=" + json? ( dev-libs/json-c:= ) + python? ( ${PYTHON_DEPS} ) + ssl? ( >=dev-libs/openssl-1.1:= ) + uuid? ( sys-apps/util-linux:= ) +" +RDEPEND="${DEPEND}" + +REQUIRED_USE=" + python? ( ${PYTHON_REQUIRED_USE} ) +" + +src_configure() { + local emesonargs=( + -Dpython=false + ) + meson_src_configure +} + +python_compile() { + local emesonargs=( + -Dpython=true + ) + meson_src_configure --reconfigure + meson_src_compile +} + +src_compile() { + meson_src_compile + python_copy_sources + + use python && python_foreach_impl python_compile +} + +python_install() { + meson_src_install + python_optimize +} + +src_install() { + use python && python_foreach_impl python_install + + meson_src_install +}