From 265de2bb6c7ac88e9bda8792c4b87954d1ed1b11 Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Wed, 17 Oct 2018 09:42:36 +0200 Subject: [PATCH] cuda.eclass: Attempt to fix unconditional dependency on dev-util/nvidia-cuda-toolkit Signed-off-by: Lars Wendler --- eclass/cuda.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/cuda.eclass b/eclass/cuda.eclass index b78e6514d966..4c15c2bb0560 100644 --- a/eclass/cuda.eclass +++ b/eclass/cuda.eclass @@ -42,9 +42,9 @@ inherit flag-o-matic toolchain-funcs : ${CUDA_VERBOSE:=true} if [[ ${PN} != "nvidia-cuda-toolkit" ]]; then -DEPEND="dev-util/nvidia-cuda-toolkit" +DEPEND="cuda? ( dev-util/nvidia-cuda-toolkit )" if [[ ${EAPI} != [56] ]]; then - BDEPEND="dev-util/nvidia-cuda-toolkit" + BDEPEND="cuda? ( dev-util/nvidia-cuda-toolkit )" fi fi -- 2.26.2