Version bump (bug #325833). Thanks to Clemens Rabe for the updated ebuild.
authorMichael Januszewski <spock@gentoo.org>
Sat, 3 Jul 2010 22:56:46 +0000 (22:56 +0000)
committerMichael Januszewski <spock@gentoo.org>
Sat, 3 Jul 2010 22:56:46 +0000 (22:56 +0000)
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64

dev-util/nvidia-cuda-sdk/ChangeLog
dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.1.ebuild [new file with mode: 0644]

index 5df45bb89187c929e0cfbd161792f208f54496dd..e767921bd852a3bacea8c5d1c987dbd8c2b36bda 100644 (file)
@@ -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.19 2010/03/21 13:52:56 spock Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v 1.20 2010/07/03 22:56:46 spock Exp $
+
+*nvidia-cuda-sdk-3.1 (03 Jul 2010)
+
+  03 Jul 2010; MichaƂ Januszewski <spock@gentoo.org>
+  +nvidia-cuda-sdk-3.1.ebuild:
+  Version bump (bug #325833). Thanks to Clemens Rabe for the updated ebuild.
 
 *nvidia-cuda-sdk-3.0 (21 Mar 2010)
 
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.1.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.1.ebuild
new file mode 100644 (file)
index 0000000..ec0b53e
--- /dev/null
@@ -0,0 +1,85 @@
+# 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.1.ebuild,v 1.1 2010/07/03 22:56:46 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}/sdk/gpucomputingsdk_${CUDA_V}_linux.run"
+LICENSE="CUDPP"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug +doc +examples opencl +cuda"
+
+RDEPEND=">=dev-util/nvidia-cuda-toolkit-3.1
+       examples? ( >=x11-drivers/nvidia-drivers-256.35 )
+       virtual/glut"
+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 [[ -x "${f}" && ! -d "${f}" ]]; then
+                       exeinto "/opt/cuda/sdk/${t}"
+                       doexe "${f}"
+               else
+                       insinto "/opt/cuda/sdk/${t}"
+                       doins "${f}"
+               fi
+       done
+}