From: Justin Lecher Date: Wed, 27 Jan 2016 14:25:45 +0000 (+0100) Subject: cuda.eclass: Only source eclass once X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=9afe36d5062a4cc53587e7ecb89ffa7a06652fec;p=gentoo.git cuda.eclass: Only source eclass once Signed-off-by: Justin Lecher --- 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