Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Thu, 28 Jan 2016 07:51:38
Message-Id: 1453967290.9afe36d5062a4cc53587e7ecb89ffa7a06652fec.jlec@gentoo
1 commit: 9afe36d5062a4cc53587e7ecb89ffa7a06652fec
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 27 14:25:45 2016 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 28 07:48:10 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9afe36d5
7
8 cuda.eclass: Only source eclass once
9
10 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
11
12 eclass/cuda.eclass | 5 +++++
13 1 file changed, 5 insertions(+)
14
15 diff --git a/eclass/cuda.eclass b/eclass/cuda.eclass
16 index d56abc8..e8d9178 100644
17 --- a/eclass/cuda.eclass
18 +++ b/eclass/cuda.eclass
19 @@ -16,6 +16,8 @@ inherit flag-o-matic toolchain-funcs versionator
20 # @EXAMPLE:
21 # inherit cuda
22
23 +if [[ -z ${_CUDA_ECLASS} ]]; then
24 +
25 # @ECLASS-VARIABLE: NVCCFLAGS
26 # @DESCRIPTION:
27 # nvcc compiler flags (see nvcc --help), which should be used like
28 @@ -132,3 +134,6 @@ case "${EAPI:-0}" in
29 EXPORT_FUNCTIONS src_prepare ;;
30 *) die "EAPI=${EAPI} is not supported" ;;
31 esac
32 +
33 +_CUDA_ECLASS=1
34 +fi