summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Januszewski <spock@gentoo.org>2009-07-18 21:09:03 +0000
committerMichael Januszewski <spock@gentoo.org>2009-07-18 21:09:03 +0000
commitd3fb6fe90b32b1306a4cff0cb0e695e3fc24f255 (patch)
tree255c3dead48626c3ee08656581c3164e409ef89e /dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.02.0807.1535.ebuild
parentremoved old ebuild (diff)
downloadhistorical-d3fb6fe90b32b1306a4cff0cb0e695e3fc24f255.tar.gz
historical-d3fb6fe90b32b1306a4cff0cb0e695e3fc24f255.tar.bz2
historical-d3fb6fe90b32b1306a4cff0cb0e695e3fc24f255.zip
Add info about this package requiring <=gcc-4.3 to build (bug #278137).
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64 RepoMan-Options: --force
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}"