summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-12-15 19:03:49 -0500
committerMike Frysinger <vapier@gentoo.org>2016-12-15 19:04:22 -0500
commit3ee56b51a48d078ea70c41bf24346d2456c2e8f6 (patch)
tree1778d12f2f65ef97627a378c3e8d72ccd32b0836 /sys-apps/nvme-cli
parentsys-apps/nvme-cli: rework setting of PREFIX in build (diff)
downloadgentoo-3ee56b51a48d078ea70c41bf24346d2456c2e8f6.tar.gz
gentoo-3ee56b51a48d078ea70c41bf24346d2456c2e8f6.tar.bz2
gentoo-3ee56b51a48d078ea70c41bf24346d2456c2e8f6.zip
sys-apps/nvme-cli: add USE=udev to control automagic dep
Diffstat (limited to 'sys-apps/nvme-cli')
-rw-r--r--sys-apps/nvme-cli/nvme-cli-0.9.ebuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys-apps/nvme-cli/nvme-cli-0.9.ebuild b/sys-apps/nvme-cli/nvme-cli-0.9.ebuild
index 2cdadb3ace08..b0abbe683d93 100644
--- a/sys-apps/nvme-cli/nvme-cli-0.9.ebuild
+++ b/sys-apps/nvme-cli/nvme-cli-0.9.ebuild
@@ -13,8 +13,10 @@ SRC_URI="https://github.com/linux-nvme/nvme-cli/archive/v${PV}.tar.gz -> ${P}.ta
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
-RDEPEND="sys-libs/libcap"
+IUSE="udev"
+
+RDEPEND="sys-libs/libcap
+ udev? ( virtual/libudev:= )"
DEPEND="${RDEPEND}"
src_prepare() {
@@ -31,4 +33,5 @@ src_prepare() {
src_configure() {
tc-export CC
export PREFIX="${EPREFIX}/usr"
+ MAKEOPTS+=" LIBUDEV=$(usex udev 0 1)"
}