summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2016-01-27 15:25:45 +0100
committerJustin Lecher <jlec@gentoo.org>2016-01-28 08:48:10 +0100
commit9afe36d5062a4cc53587e7ecb89ffa7a06652fec (patch)
tree6469ca1af60ba704ba70943fd626fac0eb783dbb
parentcuda.eclass: Bump Copyright year (diff)
downloadgentoo-9afe36d5062a4cc53587e7ecb89ffa7a06652fec.tar.gz
gentoo-9afe36d5062a4cc53587e7ecb89ffa7a06652fec.tar.bz2
gentoo-9afe36d5062a4cc53587e7ecb89ffa7a06652fec.zip
cuda.eclass: Only source eclass once
Signed-off-by: Justin Lecher <jlec@gentoo.org>
-rw-r--r--eclass/cuda.eclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/eclass/cuda.eclass b/eclass/cuda.eclass
index d56abc8630f3..e8d9178e2c34 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