diff options
author | Michael Januszewski <spock@gentoo.org> | 2009-05-16 15:50:19 +0000 |
---|---|---|
committer | Michael Januszewski <spock@gentoo.org> | 2009-05-16 15:50:19 +0000 |
commit | 4ba5ffd57a7eecc6e30afc43b17c9a8f1f6dde02 (patch) | |
tree | f0da6fd2140aaf63e61dea53dd8e2b496fbb5480 /dev-util/nvidia-cuda-sdk | |
parent | Fixed hplip-2.8.7 for bug #270055. (diff) | |
download | gentoo-2-4ba5ffd57a7eecc6e30afc43b17c9a8f1f6dde02.tar.gz gentoo-2-4ba5ffd57a7eecc6e30afc43b17c9a8f1f6dde02.tar.bz2 gentoo-2-4ba5ffd57a7eecc6e30afc43b17c9a8f1f6dde02.zip |
Version bump (bug #269893).
(Portage version: 2.1.6.13/cvs/Linux x86_64, RepoMan options: --force)
Diffstat (limited to 'dev-util/nvidia-cuda-sdk')
-rw-r--r-- | dev-util/nvidia-cuda-sdk/ChangeLog | 8 | ||||
-rw-r--r-- | dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.2.ebuild | 63 |
2 files changed, 70 insertions, 1 deletions
diff --git a/dev-util/nvidia-cuda-sdk/ChangeLog b/dev-util/nvidia-cuda-sdk/ChangeLog index 715cb6b5c22a..e2f41d341ab3 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.7 2009/05/16 15:40:59 spock Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v 1.8 2009/05/16 15:50:19 spock Exp $ + +*nvidia-cuda-sdk-2.2 (16 May 2009) + + 16 May 2009; Michał Januszewski <spock@gentoo.org> + +nvidia-cuda-sdk-2.2.ebuild: + Version bump (bug #269893). *nvidia-cuda-sdk-2.1.1215.2015 (16 May 2009) diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.2.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.2.ebuild new file mode 100644 index 000000000000..60350ee29a38 --- /dev/null +++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.2.ebuild @@ -0,0 +1,63 @@ +# 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.2.ebuild,v 1.1 2009/05/16 15:50:19 spock Exp $ + +inherit eutils + +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 emulation" + +RDEPEND=">=dev-util/nvidia-cuda-toolkit-2.2 + >=x11-drivers/nvidia-drivers-180.22 + virtual/glut" +DEPEND="${RDEPEND}" + +S="${WORKDIR}" + +src_unpack() { + unpack_makeself + cd "${S}" + sed -i -e 's:CUDA_INSTALL_PATH ?= .*:CUDA_INSTALL_PATH ?= /opt/cuda:' sdk/common/common.mk +} + +src_compile() { + local myopts="" + + if use emulation; then + myopts="emu=1" + fi + + if use debug; then + myopts="${myopts} dbg=1" + fi + + cd "${S}/sdk" + emake cuda-install=/opt/cuda ${myopts} || die +} + +src_install() { + cd "${S}/sdk" + + 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/$(dirname ${f})" + doexe "${f}" + else + insinto "/opt/cuda/sdk/$(dirname ${f})" + doins "${f}" + fi + done +} |