summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Januszewski <spock@gentoo.org>2009-07-29 06:57:43 +0000
committerMichael Januszewski <spock@gentoo.org>2009-07-29 06:57:43 +0000
commit1c4142fa10a601416b281f32cec46e51922babd5 (patch)
tree9d62807a2ad577ed4ff8d50cfa74797e7c9bd639
parentRemove old ebuilds. (diff)
downloadgentoo-2-1c4142fa10a601416b281f32cec46e51922babd5.tar.gz
gentoo-2-1c4142fa10a601416b281f32cec46e51922babd5.tar.bz2
gentoo-2-1c4142fa10a601416b281f32cec46e51922babd5.zip
Version bump.
(Portage version: 2.2_rc33/cvs/Linux x86_64, RepoMan options: --force)
-rw-r--r--dev-util/nvidia-cuda-sdk/ChangeLog8
-rw-r--r--dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.3.ebuild91
2 files changed, 98 insertions, 1 deletions
diff --git a/dev-util/nvidia-cuda-sdk/ChangeLog b/dev-util/nvidia-cuda-sdk/ChangeLog
index f03cccb64998..9546f75f50a5 100644
--- a/dev-util/nvidia-cuda-sdk/ChangeLog
+++ b/dev-util/nvidia-cuda-sdk/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-util/nvidia-cuda-sdk
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v 1.14 2009/07/18 21:09:03 spock Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v 1.15 2009/07/29 06:57:43 spock Exp $
+
+*nvidia-cuda-sdk-2.3 (29 Jul 2009)
+
+ 29 Jul 2009; Michał Januszewski <spock@gentoo.org>
+ +nvidia-cuda-sdk-2.3.ebuild:
+ Version bump.
18 Jul 2009; Michał Januszewski <spock@gentoo.org>
nvidia-cuda-sdk-2.1.1215.2015.ebuild, nvidia-cuda-sdk-2.2.ebuild,
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.3.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.3.ebuild
new file mode 100644
index 000000000000..233f92660711
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.3.ebuild
@@ -0,0 +1,91 @@
+# 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.3.ebuild,v 1.1 2009/07/29 06:57:43 spock Exp $
+
+EAPI=2
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="http://developer.nvidia.com/cuda"
+
+CUDA_V=${PV//./_}
+
+SRC_URI="http://developer.download.nvidia.com/compute/cuda/${CUDA_V}/sdk/cudasdk_${PV}_linux.run"
+LICENSE="CUDPP"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug +doc emulation +examples"
+
+RDEPEND=">=dev-util/nvidia-cuda-toolkit-2.3
+ examples? ( !emulation? ( >=x11-drivers/nvidia-drivers-190.18 ) )
+ virtual/glut"
+DEPEND="${RDEPEND}"
+
+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
+}
+
+src_prepare() {
+ sed -i -e 's:CUDA_INSTALL_PATH ?= .*:CUDA_INSTALL_PATH ?= /opt/cuda:' sdk/shared/common.mk sdk/C/common/common.mk
+}
+
+src_compile() {
+ if ! use examples; then
+ return
+ fi
+ local myopts=""
+
+ if use emulation; then
+ myopts="emu=1"
+ fi
+
+ if use debug; then
+ myopts="${myopts} dbg=1"
+ fi
+
+ cd "${S}/sdk/C"
+ emake cuda-install=/opt/cuda ${myopts} || die
+}
+
+src_install() {
+ cd "${S}/sdk"
+
+ # This only contains object files.
+ rm -rf projects
+
+ if ! use doc; then
+ rm -rf C/doc C/ReleaseNotes.html C/releaseNotesData
+ fi
+
+ if ! use examples; then
+ rm -rf C/bin C/src
+ fi
+
+ for f in $(find .); do
+ local t="$(dirname ${f})"
+ if [[ "${t/obj\/}" != "${t}" || "${t##*.}" == "a" ]]; then
+ continue
+ fi
+
+ if [[ -x "${f}" && ! -d "${f}" ]]; then
+ exeinto "/opt/cuda/sdk/${t}"
+ doexe "${f}"
+ else
+ insinto "/opt/cuda/sdk/${t}"
+ doins "${f}"
+ fi
+ done
+}