commit:     9afe36d5062a4cc53587e7ecb89ffa7a06652fec
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 14:25:45 2016 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Thu Jan 28 07:48:10 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9afe36d5

cuda.eclass: Only source eclass once

Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

 eclass/cuda.eclass | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/eclass/cuda.eclass b/eclass/cuda.eclass
index d56abc8..e8d9178 100644
--- a/eclass/cuda.eclass
+++ b/eclass/cuda.eclass
@@ -16,6 +16,8 @@ inherit flag-o-matic toolchain-funcs versionator
 # @EXAMPLE:
 # inherit cuda
 
+if [[ -z ${_CUDA_ECLASS} ]]; then
+
 # @ECLASS-VARIABLE: NVCCFLAGS
 # @DESCRIPTION:
 # nvcc compiler flags (see nvcc --help), which should be used like
@@ -132,3 +134,6 @@ case "${EAPI:-0}" in
                EXPORT_FUNCTIONS src_prepare ;;
        *) die "EAPI=${EAPI} is not supported" ;;
 esac
+
+_CUDA_ECLASS=1
+fi

Reply via email to