From c09616e0847712e4567f738b6759aa0236bb25df Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 25 Apr 2020 21:56:13 -0700 Subject: sys-apps/nvme-cli: Bump to version 1.10.1 Reported-by: Christohper Harrington Closes: https://bugs.gentoo.org/718756 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Zac Medico --- sys-apps/nvme-cli/nvme-cli-1.10.1.ebuild | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 sys-apps/nvme-cli/nvme-cli-1.10.1.ebuild (limited to 'sys-apps/nvme-cli/nvme-cli-1.10.1.ebuild') 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)" +} -- cgit v1.2.3-65-gdbad