diff options
Diffstat (limited to 'sys-libs/libnvme')
-rw-r--r-- | sys-libs/libnvme/Manifest | 4 | ||||
-rw-r--r-- | sys-libs/libnvme/libnvme-1.4.ebuild | 73 | ||||
-rw-r--r-- | sys-libs/libnvme/metadata.xml | 1 |
3 files changed, 77 insertions, 1 deletions
diff --git a/sys-libs/libnvme/Manifest b/sys-libs/libnvme/Manifest index 288f8fd2fafb..fec1f2adaa45 100644 --- a/sys-libs/libnvme/Manifest +++ b/sys-libs/libnvme/Manifest @@ -1,6 +1,8 @@ AUX libnvme-1.3-configure-clang-16.patch 1332 BLAKE2B 701a941236c5fd644722086d58d7b5ce15d81f8cdc17ea4d2cb79efd743acf54990da83c81c8a8ef74822b3d1e51e70eb02a4a25a07a74404a307d564f56dc37 SHA512 a100ab3232b0a1bee74dbe0d4893d3819c4e3f4b741da740240431cabf72c4ccb411fca6a19f44ecf5e64bdbfd2f470b4c436c57b1a573dfea14e575a3dbd44f DIST libnvme-1.2.tar.gz 484397 BLAKE2B ae6b1c3aa8f45594219470059cfc8982674433772f89faab1659811d860036f8af89bbcb383db37e96b763188935d2c1ecaa5176b8140bba50f8ea226e989a06 SHA512 f50517838cd1df3cdd123afdb67870633e9e484bf84dba70b784d7e86ecb355b96ba9d6a1cffb96b35444da7870dfe21c54b69701b5fe5b515319280db4a84e4 DIST libnvme-1.3.tar.gz 499870 BLAKE2B 5a019c12829890a0fe0b5e6aec5fbd009fc3bd6dfe7e81f61731292f4ea8b03044e7625491479350c399cc8cd5bc023e02cc9e93f1eba38f4c747667e84cfb24 SHA512 c874b29b73e55be842f71e74a226a76fcd50dfa72e2be100f0437bc83e740cd146b6d2f2cdaa940c11c3d8c48ff2c065ac0e8a83d4d0dde743edf4179f328670 +DIST libnvme-1.4.tar.gz 506101 BLAKE2B c1496c6258bf20ed4109710b06671fa7f0e27c7649520ad8ccf4021df00fffc45f80fea248d62d2b85eecc8b15b6afaf4a113d96d6737ae6772346c9d0bc1002 SHA512 cc4a0a78083471e912736d76e4faaa5c285e1149029560f212ff06254863e8f21b48fcb1638599bd68efcf888312a248fb748d23776af03574b39fbd9b2a418d EBUILD libnvme-1.2-r1.ebuild 1192 BLAKE2B dd05f5d1fba9e50117b24d66fea37d05d1a9d1f900206e419f3f3ce76e3f0868639aa2aadf597507767f726fa5c59376e9d51d6bcd1067d62e24b12069e1baae SHA512 b56d7690c6b71d75b27436d36a0f47dee76b8c3951374aaf58cf4794b687b6fa02b2dbe5936c8fa76390a65c1463842ad2290d4fb4b37f3601644705c3d49971 EBUILD libnvme-1.3-r1.ebuild 1355 BLAKE2B 75d8ad6027f6f491b7e488c6814a15689d987faee3e9aab76f2809356e33ef0946faf36a8e97561f8479e29fac974d8f8086d95b6cd5511c5162a487f723ceca SHA512 4c4d3edf0bff68516f32b14af4197e137fde15b344d88a88a8bf8c51171a8dab2cdc40f1c1f65007ba64ae484b213b90fa94fdcb66b3a6753c7b78be15813d85 -MISC metadata.xml 509 BLAKE2B b128b0b3ca70400e116d80d860fdff08e664786346fae94bba179d366b4ef74e078f1ecfdf3dbcc00500c2d0f614a68f2fc1282eba18011ad18cdf7b1710f6a4 SHA512 bd2555619a141e44fff2aa101d7adbf0c52543dd9034149dd3b05210542bc329aa957326f42b6695d65140c19e3b791176b8b7428252ec127a0b938c790bfbd3 +EBUILD libnvme-1.4.ebuild 1397 BLAKE2B 20608700f022e705635032056cfc30a40549e98035ff6ffb7ffb6b5ac0b5fd2b8ad8de56396429b0ab36b60735bd8ee7300c73b75b0f1a52796cc65512c64dc4 SHA512 60fa846277fbf707d0099b15723c923eb73b27feb8edb0fc410dd3045bda89c57ac52607eb804013c418b99be64af4c32120ba757110fb3565fa73259f5f0837 +MISC metadata.xml 585 BLAKE2B 6163419190adb903fdbdef99ad53f8b14ffbc08ac3c8b56f820049468010af2a58ac204ded1b53c767759e9ac864bf85dbc3b723cd7113cb919194dd9ceaaac3 SHA512 2f5268b41676d2a61d5415de3ec62149cda53613970a1af6aface937cc635d26866c88205a6d9fcf7efd7df0c7f45308ecf5b29b6cea937966b765a222edb8f7 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 +} diff --git a/sys-libs/libnvme/metadata.xml b/sys-libs/libnvme/metadata.xml index 929132b037bd..b8882391c6fc 100644 --- a/sys-libs/libnvme/metadata.xml +++ b/sys-libs/libnvme/metadata.xml @@ -7,6 +7,7 @@ </maintainer> <use> <flag name="json">Support JSON output via <pkg>dev-libs/json-c</pkg></flag> + <flag name="keyutils">Add support for <pkg>sys-apps/keyutils</pkg></flag> <flag name="uuid">UUID support via <pkg>sys-apps/util-linux</pkg></flag> </use> <upstream> |