diff options
author | Michael Januszewski <spock@gentoo.org> | 2010-12-01 22:00:38 +0000 |
---|---|---|
committer | Michael Januszewski <spock@gentoo.org> | 2010-12-01 22:00:38 +0000 |
commit | 8a346e7df8840ca4c74ac4f360ba76b4a1d0d07d (patch) | |
tree | 81bc8dd3b44ed09edec93ab997cf109a7862ca8d /dev-util/nvidia-cuda-sdk | |
parent | Version bump. (diff) | |
download | gentoo-2-8a346e7df8840ca4c74ac4f360ba76b4a1d0d07d.tar.gz gentoo-2-8a346e7df8840ca4c74ac4f360ba76b4a1d0d07d.tar.bz2 gentoo-2-8a346e7df8840ca4c74ac4f360ba76b4a1d0d07d.zip |
Version bump.
(Portage version: 2.1.9.25/cvs/Linux x86_64)
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-3.2.ebuild | 87 |
2 files changed, 94 insertions, 1 deletions
diff --git a/dev-util/nvidia-cuda-sdk/ChangeLog b/dev-util/nvidia-cuda-sdk/ChangeLog index 7e677b96bee0..0807a73abd6c 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-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v 1.23 2010/11/28 20:54:55 spock Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v 1.24 2010/12/01 22:00:38 spock Exp $ + +*nvidia-cuda-sdk-3.2 (01 Dec 2010) + + 01 Dec 2010; Michał Januszewski <spock@gentoo.org> + +nvidia-cuda-sdk-3.2.ebuild: + Version bump. 28 Nov 2010; Michał Januszewski <spock@gentoo.org> nvidia-cuda-sdk-3.1.ebuild: diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.2.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.2.ebuild new file mode 100644 index 000000000000..ad87cbccc268 --- /dev/null +++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.2.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2010 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-3.2.ebuild,v 1.1 2010/12/01 22:00:38 spock Exp $ + +EAPI=2 + +inherit eutils toolchain-funcs + +DESCRIPTION="NVIDIA CUDA Software Development Kit" +HOMEPAGE="http://developer.nvidia.com/cuda" + +CUDA_V=${PV//_/-} +DIR_V=${CUDA_V//./_} +DIR_V=${DIR_V//beta/Beta} + +SRC_URI="http://developer.download.nvidia.com/compute/cuda/${DIR_V}_prod/sdk/gpucomputingsdk_${CUDA_V}.16_linux.run" +LICENSE="CUDPP" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug +doc +examples opencl +cuda" + +RDEPEND=">=dev-util/nvidia-cuda-toolkit-3.2 + examples? ( >=x11-drivers/nvidia-drivers-260.19.21 ) + media-libs/freeglut" +DEPEND="${RDEPEND}" + +S="${WORKDIR}" + +RESTRICT="binchecks" + +src_unpack() { + unpack_makeself +} + +src_compile() { + if ! use examples; then + return + fi + local myopts="" + + if use debug; then + myopts="${myopts} dbg=1" + fi + + cd "${S}/sdk" + + if use cuda; then + cd C + emake cuda-install=/opt/cuda ${myopts} || die + cd .. + fi + + if use opencl; then + cd OpenCL + emake || die + cd .. + fi +} + +src_install() { + cd "${S}/sdk" + + if ! use doc; then + rm -rf *.txt doc */doc */Samples.htm */releaseNotesData + fi + + if ! use examples; then + rm -rf bin */bin */tools + fi + + for f in $(find .); do + local t="$(dirname ${f})" + if [[ "${t/obj\/}" != "${t}" || "${t##*.}" == "a" ]]; then + continue + fi + + if [[ ! -d "${f}" ]]; then + if [[ -x "${f}" ]]; then + exeinto "/opt/cuda/sdk/${t}" + doexe "${f}" + else + insinto "/opt/cuda/sdk/${t}" + doins "${f}" + fi + fi + done +} |