diff options
Diffstat (limited to 'sys-libs/libnvme')
-rw-r--r-- | sys-libs/libnvme/Manifest | 2 | ||||
-rw-r--r-- | sys-libs/libnvme/libnvme-1.3.ebuild | 71 |
2 files changed, 73 insertions, 0 deletions
diff --git a/sys-libs/libnvme/Manifest b/sys-libs/libnvme/Manifest index bbdee119ff70..f54629271ae1 100644 --- a/sys-libs/libnvme/Manifest +++ b/sys-libs/libnvme/Manifest @@ -1,3 +1,5 @@ DIST libnvme-1.2.tar.gz 484397 BLAKE2B ae6b1c3aa8f45594219470059cfc8982674433772f89faab1659811d860036f8af89bbcb383db37e96b763188935d2c1ecaa5176b8140bba50f8ea226e989a06 SHA512 f50517838cd1df3cdd123afdb67870633e9e484bf84dba70b784d7e86ecb355b96ba9d6a1cffb96b35444da7870dfe21c54b69701b5fe5b515319280db4a84e4 +DIST libnvme-1.3.tar.gz 499870 BLAKE2B 5a019c12829890a0fe0b5e6aec5fbd009fc3bd6dfe7e81f61731292f4ea8b03044e7625491479350c399cc8cd5bc023e02cc9e93f1eba38f4c747667e84cfb24 SHA512 c874b29b73e55be842f71e74a226a76fcd50dfa72e2be100f0437bc83e740cd146b6d2f2cdaa940c11c3d8c48ff2c065ac0e8a83d4d0dde743edf4179f328670 EBUILD libnvme-1.2-r1.ebuild 1192 BLAKE2B dd05f5d1fba9e50117b24d66fea37d05d1a9d1f900206e419f3f3ce76e3f0868639aa2aadf597507767f726fa5c59376e9d51d6bcd1067d62e24b12069e1baae SHA512 b56d7690c6b71d75b27436d36a0f47dee76b8c3951374aaf58cf4794b687b6fa02b2dbe5936c8fa76390a65c1463842ad2290d4fb4b37f3601644705c3d49971 +EBUILD libnvme-1.3.ebuild 1297 BLAKE2B 132ff3046fceadf990f06b9f2ea436305a2d67ceaa2dabcfe21a123c492a75992d520a093b678beafa84588c4879f58f00ee2e343c6dec24c11f1b98e585ca0c SHA512 bc8efc3097489df37a30c4b20a5d8eaaad0aa07e85134d846f690a6046c7b2ada230acfd8ecdef11426292650f0306ed5875424ef4b385ac608b01966dc9ccf7 MISC metadata.xml 509 BLAKE2B b128b0b3ca70400e116d80d860fdff08e664786346fae94bba179d366b4ef74e078f1ecfdf3dbcc00500c2d0f614a68f2fc1282eba18011ad18cdf7b1710f6a4 SHA512 bd2555619a141e44fff2aa101d7adbf0c52543dd9034149dd3b05210542bc329aa957326f42b6695d65140c19e3b791176b8b7428252ec127a0b938c790bfbd3 diff --git a/sys-libs/libnvme/libnvme-1.3.ebuild b/sys-libs/libnvme/libnvme-1.3.ebuild new file mode 100644 index 000000000000..aaed25b8d4b8 --- /dev/null +++ b/sys-libs/libnvme/libnvme-1.3.ebuild @@ -0,0 +1,71 @@ +# 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" +IUSE="dbus 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=" + dev-libs/json-c:= + 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 ssl openssl) + $(meson_feature dbus libdbus) + $(meson_use python) + ) + meson_src_configure +} + +python_compile() { + local emesonargs=( + -Dpython=true + ) + 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 +} |