diff options
author | Justin Lecher <jlec@gentoo.org> | 2013-02-08 11:59:04 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2013-02-08 11:59:04 +0000 |
commit | 9c6ff688e46172aa8596c2bf273284d356e5a20c (patch) | |
tree | 4cbf7067b8ec7f9ae19ef83589a7b562593b0400 /dev-util/nvidia-cuda-toolkit | |
parent | Update live ebuild to use new --root switch from git for hwdb --update. Remov... (diff) | |
download | gentoo-2-9c6ff688e46172aa8596c2bf273284d356e5a20c.tar.gz gentoo-2-9c6ff688e46172aa8596c2bf273284d356e5a20c.tar.bz2 gentoo-2-9c6ff688e46172aa8596c2bf273284d356e5a20c.zip |
dev-util/nvidia-cuda-toolkit: Drop old
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)
Diffstat (limited to 'dev-util/nvidia-cuda-toolkit')
7 files changed, 7 insertions, 697 deletions
diff --git a/dev-util/nvidia-cuda-toolkit/ChangeLog b/dev-util/nvidia-cuda-toolkit/ChangeLog index 703efdb4e8fb..06ba5f16157e 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-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v 1.64 2013/02/08 11:10:43 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v 1.65 2013/02/08 11:59:04 jlec Exp $ + + 08 Feb 2013; Justin Lecher <jlec@gentoo.org> -nvidia-cuda-toolkit-4.0.ebuild, + -nvidia-cuda-toolkit-4.1.ebuild, -nvidia-cuda-toolkit-4.2.ebuild, + -nvidia-cuda-toolkit-4.2.9-r1.ebuild, -nvidia-cuda-toolkit-5.0.35.ebuild, + -nvidia-cuda-toolkit-5.0.35-r1.ebuild: + Drop old 08 Feb 2013; Agostino Sarubbo <ago@gentoo.org> nvidia-cuda-toolkit-4.2.9-r2.ebuild: diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.0.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.0.ebuild deleted file mode 100644 index ab93ce6f42e4..000000000000 --- a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.0.ebuild +++ /dev/null @@ -1,144 +0,0 @@ -# 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.0.ebuild,v 1.12 2012/09/24 00:44:31 vapier Exp $ - -EAPI=2 - -inherit eutils multilib unpacker - -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}/toolkit" -SRC_URI="amd64? ( ${BASE_URI}/cudatoolkit_${CUDA_V}.17_linux_64_ubuntu10.10.run ) - x86? ( ${BASE_URI}/cudatoolkit_${CUDA_V}.17_linux_32_ubuntu10.10.run )" - -LICENSE="NVIDIA" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="debugger doc profiler" - -RDEPEND="${DEPEND} - >=sys-devel/binutils-2.20 - sys-devel/gcc:4.4 - profiler? ( x86? ( - x11-libs/qt-gui:4 - x11-libs/qt-core:4 - x11-libs/qt-assistant:4[compat] - x11-libs/qt-sql:4[sqlite] ) - media-libs/libpng:1.2 - ) - debugger? ( >=sys-libs/libtermcap-compat-2.0.8-r2 ) - !<=x11-drivers/nvidia-drivers-270.41" - -S="${WORKDIR}" - -#QA_FLAGS_IGNORED_x86="opt/cuda/.*" -#QA_FLAGS_IGNORED_amd64="opt/cuda/.*" - -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" - - # 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 - - if use profiler; then - local target="computeprof" - - into ${DEST}/${target} - dobin ${target}/bin/${target} - - cat > "${T}/env" << EOF -PATH=${DEST}/${target}/bin -ROOTPATH=${DEST}/${target}/bin -EOF - if use x86 ; then - dosym /usr/bin/assistant ${DEST}/${target}/bin - - insinto ${DEST}/${target}/bin - doins ${target}/bin/cudaapitrace32.so - else - dobin ${target}/bin/assistant - insinto ${DEST}/${target}/bin - doins ${target}/bin/*.so.?.?.? - for f in ${target}/bin/*.so.?; do - dosym $(readlink ${f}) ${DEST}/${f} - done - insinto ${DEST}/${target}/bin/sqldrivers - doins ${target}/bin/sqldrivers/* - - cat >> "${T}/env" << EOF -LDPATH=${DEST}/${target}/bin -EOF - fi - - newenvd "${T}/env" 99${target} - - if use doc; then - insinto ${DEST}/${target} - doins ${target}/*.txt - insinto ${DEST}/${target}/doc - doins ${target}/doc/* - insinto ${DEST}/${target}/projects - doins ${target}/projects/* - fi - - make_desktop_entry /opt/cuda/computeprof/bin/computeprof "NVIDIA Compute Visual Profiler" - 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-260.19.21." - elog "" - elog "Run '. /etc/profile' before using the CUDA toolkit. " -} 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 deleted file mode 100644 index d7297fd20475..000000000000 --- a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.1.ebuild +++ /dev/null @@ -1,113 +0,0 @@ -# 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.8 2012/09/24 00:44:31 vapier Exp $ - -EAPI=2 - -inherit eutils multilib unpacker - -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 - >=sys-devel/gcc-4.5 - debugger? ( >=sys-libs/libtermcap-compat-2.0.8-r2 ) - !<=x11-drivers/nvidia-drivers-270.41" - -S="${WORKDIR}" - -#QA_FLAGS_IGNORED_x86="opt/cuda/.*" -#QA_FLAGS_IGNORED_amd64="opt/cuda/.*" - -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/* ${DEST}/libnvvp/*.so - - 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/* -} - -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-260.19.21." - elog "" - elog "Run '. /etc/profile' before using the CUDA toolkit. " -} diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.9-r1.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.9-r1.ebuild deleted file mode 100644 index 47b61dd1015e..000000000000 --- a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.9-r1.ebuild +++ /dev/null @@ -1,107 +0,0 @@ -# Copyright 1999-2013 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.2.9-r1.ebuild,v 1.3 2013/01/17 01:30:30 ottxor Exp $ - -EAPI=5 - -inherit cuda unpacker - -MYD=$(get_version_component_range 1)_$(get_version_component_range 2) -DISTRO=ubuntu11.04 - -DESCRIPTION="NVIDIA CUDA Toolkit (compiler and friends)" -HOMEPAGE="http://developer.nvidia.com/cuda" -CURI="http://developer.download.nvidia.com/compute/cuda/${MYD}/rel/toolkit" -SRC_URI=" - amd64? ( ${CURI}/cudatoolkit_${PV}_linux_64_${DISTRO}.run ) - x86? ( ${CURI}/cudatoolkit_${PV}_linux_32_${DISTRO}.run )" - -SLOT="0" -LICENSE="NVIDIA" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="debugger doc eclipse profiler" - -DEPEND="" -RDEPEND="${DEPEND} - || ( - sys-devel/gcc:4.4 - sys-devel/gcc:4.5 - sys-devel/gcc:4.6 - ) - !<=x11-drivers/nvidia-drivers-270.41 - debugger? ( sys-libs/libtermcap-compat ) - profiler? ( >=virtual/jre-1.6 )" - -S="${WORKDIR}" - -QA_PREBUILT="opt/cuda/*" - -pkg_setup() { - # We don't like to run cuda_pkg_setup as it depends on us - : -} - -src_prepare() { - local cuda_supported_gcc dfiles - - cuda_supported_gcc="4.4 4.5 4.6" - - sed \ - -e "s:CUDA_SUPPORTED_GCC:${cuda_supported_gcc}:g" \ - "${FILESDIR}"/cuda-config.in > "${T}"/cuda-config || die - - #452388 - x86 don't have all of these files - rm -rf install-linux.pl libnvvp/jre run_files cuda-installer.pl -} - -src_install() { - local cudadir=/opt/cuda - local ecudadir="${EPREFIX}"${cudadir} - - if use doc; then - dodoc doc/*{txt,pdf} - dohtml -r doc/html/* - fi - - find doc -delete || die - - use debugger || rm -r bin/cuda-gdb extras/Debugger - use eclipse || find libnsight -delete - - if use profiler; then - # hack found in install-linux.pl - cat > bin/nvvp <<- EOF - #!${EPREFIX}bin/sh - LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}:${ecudadir}/lib:${ecudadir}/lib64 \ - UBUNTU_MENUPROXY=0 LIBOVERLAY_SCROLLBAR=0 ${ecudadir}/libnvvp/nvvp - EOF - chmod a+x bin/nvvp - else - rm -r extras/CUPTI libnvvp - fi - - dodir ${cudadir} - mv * "${ED}"${cudadir} - - cat > "${T}"/99cuda <<- EOF - PATH=${ecudadir}/bin:${ecudadir}/libnvvp - ROOTPATH=${ecudadir}/bin - LDPATH=${ecudadir}/lib$(use amd64 && echo "64:${ecudadir}/lib") - EOF - doenvd "${T}"/99cuda - - dobin "${T}"/cuda-config -} - -pkg_postinst() { - local a - a="$(version_sort $(cuda-config -s))"; a=($a) - if [[ $(tc-getCC) == *gcc* ]] && \ - version_is_at_least "$(gcc-version)" ${a[1]}; then - ewarn "gcc >= ${a[1]} will not work with CUDA" - ewarn "Make sure you set an earlier version of gcc with gcc-config" - ewarn "or append --compiler-bindir= pointing to a gcc bindir like" - ewarn "${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/gcc${a[1]}" - ewarn "to the nvcc compiler flags" - fi -} diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.ebuild deleted file mode 100644 index 4ebd856253ef..000000000000 --- a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.ebuild +++ /dev/null @@ -1,112 +0,0 @@ -# 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.2.ebuild,v 1.1 2012/07/31 05:57:22 zerochaos Exp $ - -EAPI=2 - -inherit eutils multilib unpacker - -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}/rel/toolkit" -SRC_URI="amd64? ( ${BASE_URI}/cudatoolkit_${CUDA_V}.9_linux_64_ubuntu11.04.run ) - x86? ( ${BASE_URI}/cudatoolkit_${CUDA_V}.9_linux_32_ubuntu11.04.run )" - -LICENSE="NVIDIA" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="debugger doc profiler" - -RDEPEND="${DEPEND} - >=sys-devel/binutils-2.20 - >=sys-devel/gcc-4.5 - debugger? ( >=sys-libs/libtermcap-compat-2.0.8-r2 ) - !<=x11-drivers/nvidia-drivers-270.41" - -S="${WORKDIR}" - -QA_PREBUILT="opt/cuda/.*" -QA_EXECSTACK="opt/cuda/bin/cicc" - -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/* ${DEST}/libnvvp/*.so - - 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/* -} - -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-260.19.21." - elog "" - elog "Run '. /etc/profile' before using the CUDA toolkit. " -} diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-5.0.35-r1.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-5.0.35-r1.ebuild deleted file mode 100644 index 1145c3bdab2b..000000000000 --- a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-5.0.35-r1.ebuild +++ /dev/null @@ -1,110 +0,0 @@ -# Copyright 1999-2013 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-5.0.35-r1.ebuild,v 1.2 2013/01/17 12:01:58 jlec Exp $ - -EAPI=5 - -inherit cuda unpacker - -MYD=$(get_version_component_range 1)_$(get_version_component_range 2) -DISTRO=fedora16-1 - -DESCRIPTION="NVIDIA CUDA Toolkit (compiler and friends)" -HOMEPAGE="http://developer.nvidia.com/cuda" -CURI="http://developer.download.nvidia.com/compute/cuda/${MYD}/rel-update-1/installers/" -SRC_URI=" - amd64? ( ${CURI}/cuda_${PV}_linux_64_${DISTRO}.run ) - x86? ( ${CURI}/cuda_${PV}_linux_32_${DISTRO}.run )" - -SLOT="0" -LICENSE="NVIDIA" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="debugger doc eclipse profiler" - -DEPEND="" -RDEPEND="${DEPEND} - sys-devel/gcc:4.6[cxx] - !<=x11-drivers/nvidia-drivers-270.41 - debugger? ( - sys-libs/libtermcap-compat - sys-libs/ncurses[tinfo] - ) - profiler? ( >=virtual/jre-1.6 )" - -S="${WORKDIR}" - -QA_PREBUILT="opt/cuda/*" - -pkg_setup() { - # We don't like to run cuda_pkg_setup as it depends on us - : -} - -src_unpack() { - unpacker - unpacker run_files/cudatoolkit*run -} - -src_prepare() { - local cuda_supported_gcc - - cuda_supported_gcc="4.6" - - sed \ - -e "s:CUDA_SUPPORTED_GCC:${cuda_supported_gcc}:g" \ - "${FILESDIR}"/cuda-config.in > "${T}"/cuda-config || die - - find cuda-installer.pl install-linux.pl jre run_files -delete || die -} - -src_install() { - local cudadir=/opt/cuda - local ecudadir="${EPREFIX}"${cudadir} - - if use doc; then - dodoc doc/{*.txt,pdf/*} - dohtml -r doc/html/* - fi - - find doc -delete || die - - use debugger || rm -r bin/cuda-gdb extras/Debugger - use eclipse || find libnsight -delete - - if use profiler; then - # hack found in install-linux.pl - cat > bin/nvvp <<- EOF - #!${EPREFIX}bin/sh - LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}:${ecudadir}/lib:${ecudadir}/lib64 \ - UBUNTU_MENUPROXY=0 LIBOVERLAY_SCROLLBAR=0 ${ecudadir}/libnvvp/nvvp - EOF - chmod a+x bin/nvvp - else - rm -r extras/CUPTI libnvvp - fi - - dodir ${cudadir} - mv * "${ED}"${cudadir} - - cat > "${T}"/99cuda <<- EOF - PATH=${ecudadir}/bin:${ecudadir}/libnvvp - ROOTPATH=${ecudadir}/bin - LDPATH=${ecudadir}/lib$(use amd64 && echo "64:${ecudadir}/lib") - EOF - doenvd "${T}"/99cuda - - dobin "${T}"/cuda-config -} - -pkg_postinst() { - local a - a="$(version_sort $(cuda-config -s))"; a=($a) - if [[ $(tc-getCC) == *gcc* ]] && \ - version_is_at_least "$(gcc-version)" ${a[1]}; then - ewarn "gcc >= ${a[1]} will not work with CUDA" - ewarn "Make sure you set an earlier version of gcc with gcc-config" - ewarn "or append --compiler-bindir= pointing to a gcc bindir like" - ewarn "${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/gcc${a[1]}" - ewarn "to the nvcc compiler flags" - fi -} diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-5.0.35.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-5.0.35.ebuild deleted file mode 100644 index 96f99516620e..000000000000 --- a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-5.0.35.ebuild +++ /dev/null @@ -1,110 +0,0 @@ -# Copyright 1999-2013 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-5.0.35.ebuild,v 1.5 2013/01/17 12:01:58 jlec Exp $ - -EAPI=5 - -inherit cuda unpacker - -MYD=$(get_version_component_range 1)_$(get_version_component_range 2) -DISTRO=fedora16-1 - -DESCRIPTION="NVIDIA CUDA Toolkit (compiler and friends)" -HOMEPAGE="http://developer.nvidia.com/cuda" -CURI="http://developer.download.nvidia.com/compute/cuda/${MYD}/rel-update-1/installers/" -SRC_URI=" - amd64? ( ${CURI}/cuda_${PV}_linux_64_${DISTRO}.run ) - x86? ( ${CURI}/cuda_${PV}_linux_32_${DISTRO}.run )" - -SLOT="0" -LICENSE="NVIDIA" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="debugger doc eclipse profiler" - -DEPEND="" -RDEPEND="${DEPEND} - sys-devel/gcc:4.6[cxx] - !<=x11-drivers/nvidia-drivers-270.41 - debugger? ( - sys-libs/libtermcap-compat - sys-libs/ncurses[tinfo] - ) - profiler? ( >=virtual/jre-1.6 )" - -S="${WORKDIR}" - -QA_PREBUILT="opt/cuda/*" - -pkg_setup() { - # We don't like to run cuda_pkg_setup as it depends on us - : -} - -src_unpack() { - unpacker - unpacker run_files/cudatoolkit*run -} - -src_prepare() { - local cuda_supported_gcc - - cuda_supported_gcc="4.6" - - sed \ - -e "s:CUDA_SUPPORTED_GCC:${cuda_supported_gcc}:g" \ - "${FILESDIR}"/cuda-config.in > "${T}"/cuda-config || die - - find cuda-installer.pl install-linux.pl jre run_files -delete || die -} - -src_install() { - local cudadir=/opt/cuda - local ecudadir="${EPREFIX}"${cudadir} - - if use doc; then - dodoc doc/{*.txt,pdf/*} - dohtml -r doc/html/* - fi - - find doc -delete || die - - use debugger || rm -r bin/cuda-gdb extras/Debugger - use eclipse || find libnsight -delete - - if use profiler; then - # hack found in install-linux.pl - cat > bin/nvvp <<- EOF - #!${EPREFIX}bin/sh - LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}:${ecudadir}/lib:${ecudadir}/lib64 \ - UBUNTU_MENUPROXY=0 LIBOVERLAY_SCROLLBAR=0 ${ecudadir}/libnvvp/nvvp - EOF - chmod a+x bin/nvvp - else - rm -r extras/CUPTI libnvvp - fi - - dodir ${cudadir} - mv * "${ED}"${cudadir} - - cat > "${T}"/99cuda <<- EOF - PATH=${ecudadir}/bin:${ecudadir}/libnvvp - ROOTPATH=${ecudadir}/bin - LDPATH=${ecudadir}/lib$(use amd64 && echo "64:${ecudadir}/lib") - EOF - doenvd "${T}"/99cuda - - dobin "${T}"/cuda-config -} - -pkg_postinst() { - local a - a="$(version_sort $(cuda-config -s))"; a=($a) - if [[ $(tc-getCC) == *gcc* ]] && \ - version_is_at_least "$(gcc-version)" ${a[1]}; then - ewarn "gcc >= ${a[1]} will not work with CUDA" - ewarn "Make sure you set an earlier version of gcc with gcc-config" - ewarn "or append --compiler-bindir= pointing to a gcc bindir like" - ewarn "${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/gcc${a[1]}" - ewarn "to the nvcc compiler flags" - fi -} |