cuda.eclass: Add nvidia-cuda-toolkit dep
authorJason Zaman <perfinion@gentoo.org>
Sun, 14 Oct 2018 15:44:48 +0000 (23:44 +0800)
committerJason Zaman <perfinion@gentoo.org>
Wed, 17 Oct 2018 04:45:25 +0000 (12:45 +0800)
The eclass checked for nvidia-cuda-toolkit but was missing the DEPEND.
Also for EAPI7 both DEPEND and BDEPEND are needed for the compiler and
libraries.

Closes: https://bugs.gentoo.org/654168
Signed-off-by: Jason Zaman <perfinion@gentoo.org>
eclass/cuda.eclass

index f1c09ca2e45383bfd2d879a67fd2df4f8dad1909..f8f0822d4e0dcd0fc9ac1d72c9d1890edf8ed433 100644 (file)
@@ -41,6 +41,11 @@ inherit flag-o-matic toolchain-funcs
 # Being verbose during compilation to see underlying commands
 : ${CUDA_VERBOSE:=true}
 
+DEPEND="dev-util/nvidia-cuda-toolkit"
+if [[ ${EAPI} != [56] ]]; then
+       BDEPEND="dev-util/nvidia-cuda-toolkit"
+fi
+
 # @FUNCTION: cuda_gccdir
 # @USAGE: [-f]
 # @RETURN: gcc bindir compatible with current cuda, optionally (-f) prefixed with "--compiler-bindir "