diff options
author | Zac Medico <zmedico@gentoo.org> | 2020-04-25 21:56:13 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2020-04-25 22:03:14 -0700 |
commit | c09616e0847712e4567f738b6759aa0236bb25df (patch) | |
tree | f7448ab049cf662cb21eac9f18b5d706a449963e /sys-apps/nvme-cli/nvme-cli-1.10.1.ebuild | |
parent | media-plugins/kodi-vfs-rar: 2.3.1 version bump (diff) | |
download | gentoo-c09616e0847712e4567f738b6759aa0236bb25df.tar.gz gentoo-c09616e0847712e4567f738b6759aa0236bb25df.tar.bz2 gentoo-c09616e0847712e4567f738b6759aa0236bb25df.zip |
sys-apps/nvme-cli: Bump to version 1.10.1
Reported-by: Christohper Harrington <ironiridis@gmail.com>
Closes: https://bugs.gentoo.org/718756
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'sys-apps/nvme-cli/nvme-cli-1.10.1.ebuild')
-rw-r--r-- | sys-apps/nvme-cli/nvme-cli-1.10.1.ebuild | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sys-apps/nvme-cli/nvme-cli-1.10.1.ebuild b/sys-apps/nvme-cli/nvme-cli-1.10.1.ebuild new file mode 100644 index 000000000000..e02310e80337 --- /dev/null +++ b/sys-apps/nvme-cli/nvme-cli-1.10.1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit systemd toolchain-funcs udev + +DESCRIPTION="NVM-Express user space tooling for Linux" +HOMEPAGE="https://github.com/linux-nvme/nvme-cli" +SRC_URI="https://github.com/linux-nvme/nvme-cli/archive/v${PV}.tar.gz -> ${P}.tar.gz" +RESTRICT="test" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +IUSE="+uuid" + +RDEPEND="uuid? ( sys-apps/util-linux:= )" +DEPEND="${RDEPEND}" + +src_prepare() { + default + sed -e 's|^LIBUUID =|LIBUUID ?=|' \ + -e 's|^install-hostparams:$|\0 install-etc|' \ + -i Makefile || die + sed -e "s|/usr/lib/udev|$(get_udevdir)|" \ + -i nvmf-autoconnect/dracut-conf/70-nvmf-autoconnect.conf || die +} + +src_configure() { + tc-export CC + export PREFIX="${EPREFIX}/usr" + local unitdir="$(systemd_get_systemunitdir)" + export SYSTEMDDIR="${unitdir%/system}" + export UDEVDIR="${EPREFIX}$(get_udevdir)" + MAKEOPTS+=" LIBUUID=$(usex uuid 0 1)" +} |