diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-31 22:06:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-31 22:06:41 +0100 |
commit | 9ab9a2c6661b7cb6bbaeeb3fbdfedd7546b0142f (patch) | |
tree | 8e2efb08866063f75d3d4927f8ac76e6554d4704 /sys-libs/libnvme/libnvme-1.4.ebuild | |
parent | 569e3558cac0a0ecdc6b80debb515b5ed8515df9 (diff) |
gentoo auto-resync : 31:03:2023 - 22:06:41
Diffstat (limited to 'sys-libs/libnvme/libnvme-1.4.ebuild')
-rw-r--r-- | sys-libs/libnvme/libnvme-1.4.ebuild | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/sys-libs/libnvme/libnvme-1.4.ebuild b/sys-libs/libnvme/libnvme-1.4.ebuild new file mode 100644 index 000000000000..eebf0dc02112 --- /dev/null +++ b/sys-libs/libnvme/libnvme-1.4.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +inherit python-r1 meson + +DESCRIPTION="C Library for NVM Express on Linux" +HOMEPAGE="https://github.com/linux-nvme/libnvme" +LICENSE="LGPL-2.1+" +SLOT="0/1" +IUSE="dbus +json keyutils 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:= ) + keyutils? ( sys-apps/keyutils:= ) + dbus? ( sys-apps/dbus:= ) + python? ( ${PYTHON_DEPS} ) + ssl? ( >=dev-libs/openssl-1.1:= ) + uuid? ( sys-apps/util-linux:= ) +" +RDEPEND="${DEPEND}" + +BDEPEND=" + dev-lang/swig +" + +REQUIRED_USE=" + python? ( ${PYTHON_REQUIRED_USE} ) +" + +src_configure() { + local emesonargs=( + -Dpython=false + $(meson_feature json json-c) + $(meson_feature dbus libdbus) + $(meson_feature ssl openssl) + $(meson_feature python) + ) + 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 +} |