summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.02.0807.1535.ebuild')
-rw-r--r--dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.02.0807.1535.ebuild12
1 files changed, 10 insertions, 2 deletions
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.02.0807.1535.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.02.0807.1535.ebuild
index 6999cd36a834..99244f90c17d 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.02.0807.1535.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.02.0807.1535.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.02.0807.1535.ebuild,v 1.7 2009/07/08 10:58:25 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.02.0807.1535.ebuild,v 1.8 2009/07/18 21:09:03 spock Exp $
-inherit eutils
+inherit eutils toolchain-funcs
DESCRIPTION="NVIDIA CUDA Software Development Kit"
HOMEPAGE="http://developer.nvidia.com/cuda"
@@ -20,6 +20,14 @@ DEPEND="dev-util/nvidia-cuda-toolkit
S="${WORKDIR}"
RESTRICT="binchecks"
+pkg_setup() {
+ if [ "$(gcc-major-version)" == "4" -a $(gcc-minor-version) -ge 4 ]; then
+ eerror "This package requires <=sys-devel/gcc-4.3 to build sucessfully."
+ eerror "Please use gcc-config to switch to a compatible GCC version."
+ die "<=sys-devel/gcc-4.3 required"
+ fi
+}
+
src_unpack() {
unpack_makeself
cd "${S}"