cuda.eclass: Only source eclass once
authorJustin Lecher <jlec@gentoo.org>
Wed, 27 Jan 2016 14:25:45 +0000 (15:25 +0100)
committerJustin Lecher <jlec@gentoo.org>
Thu, 28 Jan 2016 07:48:10 +0000 (08:48 +0100)
Signed-off-by: Justin Lecher <jlec@gentoo.org>
eclass/cuda.eclass

index d56abc8630f3574ad2f88e68cfd22d389e8f5f3a..e8d9178e2c34210c434186c9d5a71ff1d6d04b04 100644 (file)
@@ -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