summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2018-10-17 09:42:36 +0200
committerLars Wendler <polynomial-c@gentoo.org>2018-10-17 09:42:36 +0200
commit265de2bb6c7ac88e9bda8792c4b87954d1ed1b11 (patch)
treef5883d12a9744c62a1f373e6e876c2683a6ecbde /eclass/cuda.eclass
parentapp-crypt/gpa: version bump (diff)
downloadgentoo-265de2bb6c7ac88e9bda8792c4b87954d1ed1b11.tar.gz
gentoo-265de2bb6c7ac88e9bda8792c4b87954d1ed1b11.tar.bz2
gentoo-265de2bb6c7ac88e9bda8792c4b87954d1ed1b11.zip
cuda.eclass: Attempt to fix unconditional dependency
on dev-util/nvidia-cuda-toolkit Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'eclass/cuda.eclass')
-rw-r--r--eclass/cuda.eclass4
1 files 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