summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Januszewski <spock@gentoo.org>2010-01-08 19:53:01 +0000
committerMichael Januszewski <spock@gentoo.org>2010-01-08 19:53:01 +0000
commit7112b906bdcc1c9d4f5ad21ce9e2b7c334b3d152 (patch)
treebe2d1da61856c2518e96e76f47d04322ec241a26 /dev-util/nvidia-cuda-toolkit
parentTransfer Prefix keywords, make ebuild Prefix aware, fix compilation on static... (diff)
downloadgentoo-2-7112b906bdcc1c9d4f5ad21ce9e2b7c334b3d152.tar.gz
gentoo-2-7112b906bdcc1c9d4f5ad21ce9e2b7c334b3d152.tar.bz2
gentoo-2-7112b906bdcc1c9d4f5ad21ce9e2b7c334b3d152.zip
Version bump (bug #298914).
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/nvidia-cuda-toolkit')
-rw-r--r--dev-util/nvidia-cuda-toolkit/ChangeLog10
-rw-r--r--dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-3.0_beta1.ebuild137
2 files changed, 145 insertions, 2 deletions
diff --git a/dev-util/nvidia-cuda-toolkit/ChangeLog b/dev-util/nvidia-cuda-toolkit/ChangeLog
index fb78d793364a..c9ad0c5c75bd 100644
--- a/dev-util/nvidia-cuda-toolkit/ChangeLog
+++ b/dev-util/nvidia-cuda-toolkit/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-util/nvidia-cuda-toolkit
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v 1.17 2009/12/01 19:05:24 fauli Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v 1.18 2010/01/08 19:53:01 spock Exp $
+
+*nvidia-cuda-toolkit-3.0_beta1 (08 Jan 2010)
+
+ 08 Jan 2010; Michał Januszewski <spock@gentoo.org>
+ +nvidia-cuda-toolkit-3.0_beta1.ebuild:
+ Version bump (bug #298914).
01 Dec 2009; Christian Faulhammer <fauli@gentoo.org>
nvidia-cuda-toolkit-2.2-r2.ebuild:
diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-3.0_beta1.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-3.0_beta1.ebuild
new file mode 100644
index 000000000000..387d9b2abe05
--- /dev/null
+++ b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-3.0_beta1.ebuild
@@ -0,0 +1,137 @@
+# 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-toolkit/nvidia-cuda-toolkit-3.0_beta1.ebuild,v 1.1 2010/01/08 19:53:01 spock Exp $
+
+EAPI=2
+
+inherit eutils multilib
+
+DESCRIPTION="NVIDIA CUDA Toolkit"
+HOMEPAGE="http://developer.nvidia.com/cuda"
+
+CUDA_V=${PV//_/-}
+DIR_V=${CUDA_V//./_}
+DIR_V=${DIR_V//beta/Beta}
+
+BASE_URI="http://developer.download.nvidia.com/compute/cuda/${DIR_V}/toolkit"
+SRC_URI="amd64? ( ${BASE_URI}/cudatoolkit_${CUDA_V}_linux_64_rhel5.3.run )
+ x86? ( ${BASE_URI}/cudatoolkit_${CUDA_V}_linux_32_rhel5.3.run )"
+
+LICENSE="NVIDIA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debugger doc profiler"
+
+DEPEND="!dev-util/nvidia-cuda-profiler"
+RDEPEND="${DEPEND}
+ >=sys-devel/gcc-4.0
+ profiler? ( x86? (
+ x11-libs/qt-gui
+ x11-libs/qt-core
+ x11-libs/qt-assistant
+ x11-libs/qt-sql[sqlite] )
+ )
+ debugger? ( >=sys-libs/libtermcap-compat-2.0.8-r2 )"
+RESTRICT="strip binchecks"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ for f in ${A} ; do
+ if [ "${f//*.run/}" == "" ]; then
+ unpack_makeself ${f}
+ fi
+ done
+}
+
+src_install() {
+ local DEST=/opt/cuda
+
+ into ${DEST}
+ dobin bin/*
+ dolib $(get_libdir)/*
+
+ if ! use debugger; then
+ rm -f "${D}/${DEST}/bin/cuda-gdb"
+ fi
+
+ chmod a-x "${D}/${DEST}/bin/nvcc.profile"
+
+ # doman does not respect DESTTREE
+ insinto ${DEST}/man/man1
+ doins man/man1/*
+ insinto ${DEST}/man/man3
+ doins man/man3/*
+ prepman ${DEST}
+
+ insinto ${DEST}/include
+ doins include/*.h
+ insinto ${DEST}/include/crt
+ doins include/crt/*.h
+
+ insinto ${DEST}/src
+ doins src/*
+
+ if use doc ; then
+ insinto ${DEST}/doc
+ doins -r doc/*
+ fi
+
+ cat > "${T}/env" << EOF
+PATH=${DEST}/bin
+ROOTPATH=${DEST}/bin
+LDPATH=${DEST}/$(get_libdir)
+MANPATH=${DEST}/man
+EOF
+ newenvd "${T}/env" 99cuda
+
+ if use profiler; then
+ into ${DEST}/cudaprof
+ dobin cudaprof/bin/cudaprof
+
+ cat > "${T}/env" << EOF
+PATH=${DEST}/cudaprof/bin
+ROOTPATH=${DEST}/cudaprof/bin
+EOF
+ if use x86 ; then
+ dosym /usr/bin/assistant ${DEST}/cudaprof/bin
+ else
+ dobin cudaprof/bin/assistant
+ insinto ${DEST}/cudaprof/bin
+ doins cudaprof/bin/*.so*
+ insinto ${DEST}/cudaprof/bin/sqldrivers
+ doins cudaprof/bin/sqldrivers/*
+
+ cat >> "${T}/env" << EOF
+LDPATH=${DEST}/cudaprof/bin
+EOF
+ fi
+
+ newenvd "${T}/env" 99cudaprof
+
+ if use doc; then
+ insinto ${DEST}/cudaprof
+ doins cudaprof/CUDA_Visual_Profiler_Release_Notes.txt
+ insinto ${DEST}/cudaprof/doc
+ doins cudaprof/doc/*
+ insinto ${DEST}/cudaprof/projects
+ doins cudaprof/projects/*
+ fi
+ fi
+
+ export CONF_LIBDIR_OVERRIDE="lib"
+ # HACK: temporary workaround until CONF_LIBDIR_OVERRIDE is respected.
+ export LIBDIR_amd64="lib"
+
+ into ${DEST}/open64
+ dobin open64/bin/*
+ libopts -m0755
+ dolib open64/lib/*
+}
+
+pkg_postinst() {
+ elog "If you want to natively run the code generated by this version of the"
+ elog "CUDA toolkit, you will need >=x11-drivers/nvidia-drivers-190.38."
+ elog ""
+ elog "Run '. /etc/profile' before using the CUDA toolkit. "
+}