diff options
author | 2012-01-29 16:50:52 +0000 | |
---|---|---|
committer | 2012-01-29 16:50:52 +0000 | |
commit | 7a27c638c38603f3a34c12c32003983081b60c05 (patch) | |
tree | c8d251f641c02cfc5bc67db5925036b26ecda3f5 /dev-util/nvidia-cuda-toolkit | |
parent | removing vulnerable version (diff) | |
download | gentoo-2-7a27c638c38603f3a34c12c32003983081b60c05.tar.gz gentoo-2-7a27c638c38603f3a34c12c32003983081b60c05.tar.bz2 gentoo-2-7a27c638c38603f3a34c12c32003983081b60c05.zip |
Version bump.
(Portage version: 2.1.10.44/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/nvidia-cuda-toolkit')
-rw-r--r-- | dev-util/nvidia-cuda-toolkit/ChangeLog | 10 | ||||
-rw-r--r-- | dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.1.ebuild | 127 |
2 files changed, 135 insertions, 2 deletions
diff --git a/dev-util/nvidia-cuda-toolkit/ChangeLog b/dev-util/nvidia-cuda-toolkit/ChangeLog index 91a27a78b24e..63680c38c73a 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-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v 1.42 2011/09/04 10:08:12 maekke Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v 1.43 2012/01/29 16:50:52 spock Exp $ + +*nvidia-cuda-toolkit-4.1 (29 Jan 2012) + + 29 Jan 2012; Michał Januszewski <spock@gentoo.org> + +nvidia-cuda-toolkit-4.1.ebuild: + Version bump. 04 Sep 2011; Markus Meier <maekke@gentoo.org> nvidia-cuda-toolkit-4.0.ebuild: x86 stable, bug #378545 diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.1.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.1.ebuild new file mode 100644 index 000000000000..77e2bca94dd1 --- /dev/null +++ b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.1.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2012 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-4.1.ebuild,v 1.1 2012/01/29 16:50:52 spock Exp $ + +EAPI=2 + +inherit eutils multilib + +DESCRIPTION="NVIDIA CUDA Toolkit" +HOMEPAGE="http://developer.nvidia.com/cuda" +RESTRICT="binchecks" + +CUDA_V=${PV//_/-} +DIR_V=${CUDA_V//./_} +DIR_V=${DIR_V//beta/Beta} + +BASE_URI="http://developer.download.nvidia.com/compute/cuda/${DIR_V}/rel/toolkit" +SRC_URI="amd64? ( ${BASE_URI}/cudatoolkit_${CUDA_V}.28_linux_64_ubuntu11.04.run ) + x86? ( ${BASE_URI}/cudatoolkit_${CUDA_V}.28_linux_32_ubuntu11.04.run )" + +LICENSE="NVIDIA" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debugger doc profiler" + +RDEPEND="${DEPEND} + >=sys-devel/binutils-2.20 + debugger? ( >=sys-libs/libtermcap-compat-2.0.8-r2 ) + !<=x11-drivers/nvidia-drivers-270.41" + +S="${WORKDIR}" + +#QA_DT_HASH_x86="opt/cuda/.*" +#QA_DT_HASH_amd64="opt/cuda/.*" + +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/* + dobin nvvm/* + dolib $(get_libdir)/* + + if ! use debugger; then + rm -f "${D}/${DEST}/bin/cuda-gdb" + else + insinto ${DEST}/extras + doins -r extras/Debugger + fi + + if use profiler; then + # TODO: Use system JRE for the profiler? + insinto ${DEST} + doins -r libnvvp + fperms a+x ${DEST}/libnvvp/nvvp ${DEST}/libnvvp/jre/bin/* + + cat > "${T}/nvv" << EOF +#!/bin/sh +LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:${DEST}/lib:${DEST}/lib64 ${DEST}/libnvvp/nvvp +EOF + dobin ${T}/nvv + insinto ${DEST}/extras + doins -r extras/CUPTI + fi + + chmod a-x "${D}/${DEST}/bin/nvcc.profile" + chmod a-x "${D}/${DEST}/bin/ci_include.h" + + # TODO: Manuals are missing from this release. Remove the following + # commented-out lines if they are not restored in the next releases. + # 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 -r include/* + + 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 + + + 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/* + + # TODO: ideally, there would be multiple OpenCL implementations available in + # the tree and an eselect module would allow to switch between them. + into / + dosym /opt/cuda/include/CL usr/include/CL +} + +pkg_postinst() { + env-update + 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-260.19.21." + elog "" + elog "Run '. /etc/profile' before using the CUDA toolkit. " +} |