summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-12-19 22:55:29 +0000
committerSam James <sam@gentoo.org>2021-12-19 22:55:29 +0000
commitec65830857c1a0adee866e0b017ff56fc2fed785 (patch)
tree28028b017a2c7d6da3d3763562cdcaf56201d7e5 /sys-apps/nvme-cli
parentsys-apps/shadow: fix IndirectInherits (diff)
downloadgentoo-ec65830857c1a0adee866e0b017ff56fc2fed785.tar.gz
gentoo-ec65830857c1a0adee866e0b017ff56fc2fed785.tar.bz2
gentoo-ec65830857c1a0adee866e0b017ff56fc2fed785.zip
sys-apps/nvme-cli: add 1.16
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/nvme-cli')
-rw-r--r--sys-apps/nvme-cli/Manifest1
-rw-r--r--sys-apps/nvme-cli/nvme-cli-1.16.ebuild50
2 files changed, 51 insertions, 0 deletions
diff --git a/sys-apps/nvme-cli/Manifest b/sys-apps/nvme-cli/Manifest
index a34dba99031f..1eb09d96a97d 100644
--- a/sys-apps/nvme-cli/Manifest
+++ b/sys-apps/nvme-cli/Manifest
@@ -1,2 +1,3 @@
DIST nvme-cli-1.14.tar.gz 579561 BLAKE2B e27dade228ee47d88ef5cbab4d9d6163e75af44fb3345ed2ae566e875b973355255a5aba1b1846e53006f9676922cf7901a5e6e4867fcf04c591bf372a119bca SHA512 b5e18708233fd37069d84ee34232d737ed6d6909b0ec523d82cc2c4940172f7ce769b9bbec0d8615ebee544a5174cb4d752ad6d96ea05cfaa1177efc760f0e9e
DIST nvme-cli-1.15.tar.gz 610927 BLAKE2B 66278904d49987d92083c1bb28a98d362adee8e85ee92e44e9dee381f3efcc76ac53ddf82957495ac7b2ef82e717c570d55e1b2052224740c1bc7e5af8af137e SHA512 0614105153edf7217d4c428927423628b63f6bee034c59926370a13d433c9c3af217338fb6fe2f8bbf781fc17ebae0102e8c072371b7ea4324c18dfdffd40305
+DIST nvme-cli-1.16.tar.gz 598246 BLAKE2B 8aef6ae82ec9a2c67de6c69addd72c87ade6554e6d374c717f8e3c0585565974a2b2870eb172b3ebdc1ae307bd3a55a14a17d3feea8d437265db136b434b519f SHA512 c713eb15b979ad17791cf95717b42d5f638cb4803d646bca1f4825e6bb50f086226b44b108b61571709b2cb615ae6ba86dbad309f675b240ebd3968d1cf536ff
diff --git a/sys-apps/nvme-cli/nvme-cli-1.16.ebuild b/sys-apps/nvme-cli/nvme-cli-1.16.ebuild
new file mode 100644
index 000000000000..0debd0e006e6
--- /dev/null
+++ b/sys-apps/nvme-cli/nvme-cli-1.16.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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 ~riscv ~x86"
+IUSE="hugepages +json systemd +uuid"
+
+RDEPEND="json? ( dev-libs/json-c:= )
+ hugepages? ( sys-libs/libhugetlbfs )
+ systemd? ( sys-apps/systemd:= )
+ uuid? ( sys-apps/util-linux:= )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+ default
+
+ sed -e 's|^LIBUUID =|LIBUUID ?=|' \
+ -e 's|^LIBJSONC =|LIBJSONC ?=|' \
+ -e 's|^LIBHUGETLBFS =|LIBHUGETLBFS ?=|' \
+ -e 's|^HAVE_SYSTEMD =|HAVE_SYSTEMD ?=|' \
+ -e '/DESTDIROLD/d' \
+ -i Makefile || 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)"
+ MAKEOPTS+=" LIBJSONC=$(usex json 0 1)"
+ MAKEOPTS+=" LIBHUGETLBFS=$(usex hugepages 0 1)"
+ MAKEOPTS+=" HAVE_SYSTEMD=$(usex systemd 0 1)"
+ MAKEOPTS+=" V=1"
+}