diff options
-rw-r--r-- | dev-util/nvidia-cuda-toolkit/ChangeLog | 14 | ||||
-rw-r--r-- | dev-util/nvidia-cuda-toolkit/Manifest | 28 | ||||
-rw-r--r-- | dev-util/nvidia-cuda-toolkit/files/cuda-config.in | 28 | ||||
-rw-r--r-- | dev-util/nvidia-cuda-toolkit/metadata.xml | 19 | ||||
-rw-r--r-- | dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-3.2.ebuild | 141 | ||||
-rw-r--r-- | dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.9-r1.ebuild | 106 | ||||
-rw-r--r-- | dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-5.0.35.ebuild | 111 |
7 files changed, 277 insertions, 170 deletions
diff --git a/dev-util/nvidia-cuda-toolkit/ChangeLog b/dev-util/nvidia-cuda-toolkit/ChangeLog index 31bfdec1e3e8..4b5019fa6ae2 100644 --- a/dev-util/nvidia-cuda-toolkit/ChangeLog +++ b/dev-util/nvidia-cuda-toolkit/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for dev-util/nvidia-cuda-toolkit -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v 1.53 2012/09/24 00:44:31 vapier Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v 1.54 2013/01/14 07:47:16 jlec Exp $ + +*nvidia-cuda-toolkit-5.0.35 (14 Jan 2013) +*nvidia-cuda-toolkit-4.2.9-r1 (14 Jan 2013) + + 14 Jan 2013; Justin Lecher <jlec@gentoo.org> -nvidia-cuda-toolkit-3.2.ebuild, + +nvidia-cuda-toolkit-4.2.9-r1.ebuild, +nvidia-cuda-toolkit-5.0.35.ebuild, + +files/cuda-config.in, metadata.xml: + Version Bump, #446072 and #451972; fine grad what msg we are showing, + #440434; support prefix installations, #405317; drop old, #351702; take the + package 24 Sep 2012; Mike Frysinger <vapier@gentoo.org> nvidia-cuda-toolkit-3.2.ebuild, nvidia-cuda-toolkit-4.0.ebuild, diff --git a/dev-util/nvidia-cuda-toolkit/Manifest b/dev-util/nvidia-cuda-toolkit/Manifest index 0694a2641103..4331322f4718 100644 --- a/dev-util/nvidia-cuda-toolkit/Manifest +++ b/dev-util/nvidia-cuda-toolkit/Manifest @@ -1,34 +1,26 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 -DIST cudatoolkit_3.2.16_linux_32_ubuntu10.04.run 88078059 SHA256 7be5e8d81fae0acaa5fd711ce623ab709f5ed44654319487f169a7d0997ab184 -DIST cudatoolkit_3.2.16_linux_64_ubuntu10.04.run 114204677 SHA256 20e9d40f5cb94f7fb42920008746eaa32afb126790c3e22c742a1435ba389cf8 +AUX cuda-config.in 406 SHA256 7271463891ff75dd83f4cb42bb3004d3204243d0e38f9cbd5b4ec4560865496a SHA512 df6d16bd2e800868bdf8401b6f82a387b701ea297ddf6e8feb0daf5222e62a33f156e5f45cf1ee4e1aa51559dfbd56b897c257dae1bb9568e839bf806bfebd5b WHIRLPOOL 4a26ee11d97676827cb01644891fdca495c3373585ddfbb5fab9f988186da384f27482c4be9e27d834036ffa87f7ee19f9ad7da2d8536babe874dda4ff991147 +DIST cuda_5.0.35_linux_32_fedora16-1.run 583244929 SHA256 11927b4c0fb23dbf98457b852914b8458ef41cc1b7ea67bce892f2cc6a77d34e SHA512 d1cda0d53fdc86ac6412c5c92a16efd761d3f15f08878e1aa1c17bdf3bad824a0cebb5c211ad89b8dd15a439eddd0f93efe82ed0850dc93adcd3dab529f6daca WHIRLPOOL 11bc905a4a63171009569d6655b40f0d49034f71c0a93a83e1b656e91a4250c813e0a16fdfda87e9fbe4d250a312beb0c9ad073bfb0420fb4e06fdd26faf3cc9 +DIST cuda_5.0.35_linux_64_fedora16-1.run 701310481 SHA256 c2889c779215eea1c3cc6d4b092eb4208b7e1063704b6e5e8d48d04e961c3c0a SHA512 83903587d1715dd3a64db6bd676c0586edb81495da1bec22aac9995de31ca0b0db2460cccf4af0845befe0cee308ab019760c3c88eb351b6db0f255f7d93e546 WHIRLPOOL 33b998c66ebfa059d77eedb6b8465183f5ef4444ed5fe55f622efe6a2eeeef8e50e2cb09b0de4e61e15b5320495123ce46e1b47fc4cbbe96f3bde0ac93ff5dbc DIST cudatoolkit_4.0.17_linux_32_ubuntu10.10.run 143474501 SHA256 e578f3e800f348005785ec17fef14fbc4c77fa975153aa4a7c89530b501ca8a3 DIST cudatoolkit_4.0.17_linux_64_ubuntu10.10.run 211915750 SHA256 613eccb8402bc9f9dc9a571c9c24a5fa2ab2d9a9e249ec62fd26c4c81a9bb1c1 DIST cudatoolkit_4.1.28_linux_32_ubuntu11.04.run 198302412 SHA256 30f8d7ddabccad7f80b01bcc3beb7590bb0f4e82944f757c21e849e9e411c309 DIST cudatoolkit_4.1.28_linux_64_ubuntu11.04.run 259109551 SHA256 073864953c0cec206254e2ceccb8745a902dc8a95d4f2ef86f5231ae729070ad DIST cudatoolkit_4.2.9_linux_32_ubuntu11.04.run 209998124 SHA256 0c91d51e49c7cabc13fafa75cbf547c6902557cb5c3e19b4cf3c83c26172a03f SHA512 f1ca065e9cbe6273f165388d3579e28868c7b1330b341cabab9fdd6695fd3450dd8c77978a5aa3063617b371c68c37661b4f2d8fcbc4e585bb508254bef064ef WHIRLPOOL 9cbb668a1fba9748c0a42ce9a93ba0e7ff592c48155b0d87c22999f90aea29fc02120febcf4b07b8bd1ded96ca057ca0450261ea30ffdf5076e0991b10474a18 DIST cudatoolkit_4.2.9_linux_64_ubuntu11.04.run 282394341 SHA256 22d857db6b3831670bc2ca7ed22ac257b6946f68f6e4b6f534ec98b69690ad38 SHA512 3a54c278f486cbc92a7e262f39183c7babca8ab6d04c5f85ff875d3b2bcdd699631049be375fde2a3ba2746bd5ea04ba0149616e245556257c470632b91b4b1c WHIRLPOOL eac55ac70ac986772b4cbd1b76940b41eaca20276ac68e59ccfb5a09eb41de7c023d78dc85392ebfb9e5d36ee7f29e31e0173aeca0b89a510e7c89c087b72f1f -EBUILD nvidia-cuda-toolkit-3.2.ebuild 3322 SHA256 af0a3ce82bb7d293dd408983ef8c53818921776e8db1bd8379ab3df749191a4b SHA512 aff78ef7459c6c3e062b4af156a81554ae4d60aee3add148c343da229ba1fd53db16b52315445db5cd72e9c3a07e1b50e84ed22999b7022b88497487cb2867f0 WHIRLPOOL a7b20866cb683841bffabb9fe789044fe22b921b31b0ff58052af07ce604302a54999921930731dfdf75cff14dae0e21119c9a39b34e5ddfe53d948adb7f67d4 EBUILD nvidia-cuda-toolkit-4.0.ebuild 3413 SHA256 228640e8c1c99d8635ad6bbbcfb065b980dfe86d70b6a45098c733ab9c6d5dcd SHA512 8db03738b5c9cdbbcc87ecfdb55449fed7dc38c0abb088240d3120962fb5ec5d135a390d9ca94f59caefd22b213a358c4dad5d6c20767a2e61e969fbad390247 WHIRLPOOL 2cc220883514821836248f3233ea8eb14b14d6f1b5ba879bdf5f49d1064f4a187c3cbec846ba6f8b5064b7c27fda027cfc5ace63b5738528359aa1b06e6b4d4a EBUILD nvidia-cuda-toolkit-4.1.ebuild 2742 SHA256 7a7b5fec5729fe3e8c4e163f4f96de9e353c354a3731b5a58a0a9aa1ba88205b SHA512 8cb55df5d86f96aade1e2e9e36005b522438b4c369d0313726915e77fae89ae2d45bbb307b8079fe665f904633b4727235d8587a5610339398561b4f6594409c WHIRLPOOL 1a2902a369aad84ff52ee0cb86b352b6390d414795ef62cdfc268f92a31546b6443a988874237017802f7c8bcc41ec6351c53e450c15d3a47ad70d50aef3f704 +EBUILD nvidia-cuda-toolkit-4.2.9-r1.ebuild 2708 SHA256 a75084ba8744463151c4973d41cb5acb1ffc7f07e97a296541fbfc664367a076 SHA512 80e651a324136b4c7edaab343eaaa13fe6ad0399486a0f8dd476a8f3db9a7067270c6a6a41749a6c95bd5c0a5b55a1ca07943ec0afa77417ed25e732f2d16367 WHIRLPOOL 42c33192a98d2c9e19e3d29c1623346e3c7154282720ab054f1e617d385c64b3844382f6c813815f3a9413de151ed471b6ff9bf90837ad9c7ed6eafbd1f9404e EBUILD nvidia-cuda-toolkit-4.2.ebuild 2707 SHA256 1fe43633a2c00718a50e1e182d2d99fa45c3c8bebbba20c66ab327d56ccf7afe SHA512 293905497d5e78212a958de38225a2dfe78599d469a6ed6376fb6c99ce8aeb7edaf00ae37e830f92751a13b981ee04f886271450e6f4548ad436e27ccb8e81a5 WHIRLPOOL 4616ffdeaca7595f685ad18fee272e440133e6a26fffcd3847d6b21e57fcebca8585bf4dc31f1b2ab4d3fdca5c5e5847062a201cf87f361ef587413e9733e255 -MISC ChangeLog 10348 SHA256 09b82f7bfa5a34f2f89e3836d6f20ed0f91ec75c21c103f306135644b1c17beb SHA512 3836c034fa15ae101c1f6af7cf39679cc94beb5b7541bf23f35016cfb7ab170b48928bae9c87c8bb08fa8715d69dc05500defe6ec0b5bb12d0b4c6bd2c191a9f WHIRLPOOL a58409c3747ada8926621643b419273d31857cad8b2bb39c5d1f80fc1bdd8dac35277aea04c7e1694942092e5025a91b8f693f7fd83f16f0a9e4f864cae999e1 -MISC metadata.xml 399 SHA256 f62c9f0a1b7b207409756c245bcfc66e19439a3071af34a9fc55586dd50f6400 SHA512 4f1295080a316ac23be01685fb27e2e1bbd75f6f1a00d5e626d072c8d4a37765362da6c2d41aacbc04be23ca30291daa5ecbda8d71305524c61483f954f76732 WHIRLPOOL e03d2a61134a1c61df23e99dbc17ec65f4d4e9bf3a39f98d6f6e2755f6fba90b3a826a0d3f637cd0300bced6abc13e38af56155938dfaadeafb433ab351ca40f +EBUILD nvidia-cuda-toolkit-5.0.35.ebuild 2763 SHA256 4ce387340898752d2b3373970a6763035b0d13a719f73c715e551bba118a380d SHA512 ded541a06f1aaaff5571cd05429bfc6d4e53152450c5e2465ce47343381b74eeb969572d6edfb995d701a8ee2bb1e3032d4e58588bcce73fe044690a6044db42 WHIRLPOOL 8eda241280d9cf54a6631258cc2627b7cc319847e5929f7a1346c2a99fbca4bff547d36d5ec16c2ece402a5c2e97d42aac5ae2c5016eb86b81d32cbf0c5021e5 +MISC ChangeLog 10789 SHA256 9577debf928f893f8a566436847966398cfc29510aa785757548685fa9a5cd13 SHA512 c9b9eaf75aa0223eac13de4dbd5cd367babd7b57764adc549229e21b2b937f9cca383ec70d764bed7b28e4011b1a2473999e8ad8841a8d1736960ce53f95a9df WHIRLPOOL 79ad70c588dd80f089256a60c9ceb8cc7671cade00eac657ad446a72de70b85ab1a24444506816ad7232163d246539968f2426d296022d8c4b9448e644357267 +MISC metadata.xml 506 SHA256 16d98da28f74ec82ae271f04e456547db8da2a9c576bf262ad897f4a3259fb56 SHA512 c1be2bc00a75ee9db0339938964d80214648df5a6cc16f3d1250f80d3142a1e511750dba34b54794227457db0d1a0f5ca4f692f34b9566ac3f58fef43196626e WHIRLPOOL 02f0c08cb4ab40b543e23c51ae81a7f04e452f3949808bd29a2790c565c2739d131d4d19fc3d4d279381a5ed05ad0623ba560aba82f7a3b510e44f8cf35c6473 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iQIcBAEBCAAGBQJQX6z3AAoJELEHsLL7fEFWukwP/0qSP9kFf9u94+i+ZRiZcc3Y -w2rUz5h8gjt89ZqYN+2zaPmduEupq1cMbZkYHO6j7y8E+L9ngcLsITpcuZ+dnfGY -bmkbknNDqjx7fkC4GDBtKCu07ijEGwmJ+/3vHb7h98zRGYlN+NMNjHtffPVW4Yya -swIeuBUQ52+HiozI3Dg/bGrCoc69nt4UMO/Iv8cAZzG2C8tIxEfnCCyjKnAcbqCB -YJymGRJK7uK0uNXD0Yg1aZiSxIoTJ/P8VXQvru9/wHaxQuf5aiblS8LfdEobI4+z -40JBlf6BGI/qGykpdtlE4NlFcrx92r4FcP+lecY0jECvV5xvoVTwO/qpmL6buyy4 -hxoGggvbouOsGm2XPcP6aB/TKgQXHqa2StvweTiuiiaahBsZqhGlg8kZDdITYJpM -xnHNEw8bGy0CgV6RB2yBlqm5mDJ3hxNPgLwWeG+TAK+yIyBZ8V7OyGtSd0TnAfWE -n07s7gc3Zdw2jhPBVJNnne3tyUK8kejzAogi2/YeVCiMCaMESdMA+tgvgMgbDXsb -vrUjyJUkmWmlH3I48p1nVQ6cXDWKabBOxnn/jsmGGiwHSYimb5u9kUBvJK1Oj1vX -gp0MOBkQJcdYgVdl9xmMO+0YbTd9pA6XzM6YrgV5f7bZbUE/5c+dtChmKJZTq/IA -fQ2GCOghaVYX4kBZNO3D -=IHr/ +iEYEAREIAAYFAlDzuAMACgkQgAnW8HDreRZ4awCgwdHckeB7sGXrqzuT7VyfBB+1 +aioAoML8DVCF0EDM1zKUBmqTZx8ih/U8 +=alY5 -----END PGP SIGNATURE----- diff --git a/dev-util/nvidia-cuda-toolkit/files/cuda-config.in b/dev-util/nvidia-cuda-toolkit/files/cuda-config.in new file mode 100644 index 000000000000..ca0d1d77e107 --- /dev/null +++ b/dev-util/nvidia-cuda-toolkit/files/cuda-config.in @@ -0,0 +1,28 @@ +#!/bin/bash + +SUPPORT_GCC_VERSIONS_BY_CUDA="CUDA_SUPPORTED_GCC" + +_print_help() { + cat <<- EOF + Usage: + $(basename $0) [options] + + -s | --supported Returns by current CUDA supported gcc versions + -h | --help Shows this help + EOF +} + +case ${1} in + -s|--supported) + echo "${SUPPORT_GCC_VERSIONS_BY_CUDA}" + exit 0 + ;; + -h|--help) + _print_help + exit -1 + ;; + *) + _print_help + exit 1 + ;; +esac diff --git a/dev-util/nvidia-cuda-toolkit/metadata.xml b/dev-util/nvidia-cuda-toolkit/metadata.xml index 676cbf61007c..5e09419f5bfa 100644 --- a/dev-util/nvidia-cuda-toolkit/metadata.xml +++ b/dev-util/nvidia-cuda-toolkit/metadata.xml @@ -1,17 +1,18 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <maintainer> - <email>spock@gentoo.org</email> - <name>Michał Januszewski</name> - </maintainer> - <use> - <flag name='profiler'> + <herd>sci</herd> + <maintainer> + <email>jlec@gentoo.org</email> + <name>Justin Lecher</name> + </maintainer> + <use> + <flag name="profiler"> Installs the NVIDIA CUDA visual profiler. </flag> - <flag name='debugger'> + <flag name="debugger"> Installs the CUDA debugger. </flag> - </use> + <flag name="eclipse">Install the <pkg>dev-util/eclipse-sdk</pkg> plugins</flag> + </use> </pkgmetadata> - diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-3.2.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-3.2.ebuild deleted file mode 100644 index e6d79e172ea5..000000000000 --- a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-3.2.ebuild +++ /dev/null @@ -1,141 +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-3.2.ebuild,v 1.11 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}_prod/toolkit" -SRC_URI="amd64? ( ${BASE_URI}/cudatoolkit_${CUDA_V}.16_linux_64_ubuntu10.04.run ) - x86? ( ${BASE_URI}/cudatoolkit_${CUDA_V}.16_linux_32_ubuntu10.04.run )" - -LICENSE="NVIDIA" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="debugger doc profiler" - -RDEPEND="${DEPEND} - >=sys-devel/binutils-2.20 - >=sys-devel/gcc-4.0 - profiler? ( x86? ( - x11-libs/qt-gui:4 - x11-libs/qt-core:4 - x11-libs/qt-assistant:4 - x11-libs/qt-sql:4[sqlite] ) - media-libs/libpng:1.2 - ) - debugger? ( >=sys-libs/libtermcap-compat-2.0.8-r2 ) - !<=x11-drivers/nvidia-drivers-256.53" - -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/cudaapitrace.so - else - dobin ${target}/bin/assistant - insinto ${DEST}/${target}/bin - doins ${target}/bin/*.so* - 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.2.9-r1.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.9-r1.ebuild new file mode 100644 index 000000000000..713420ae4733 --- /dev/null +++ b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.9-r1.ebuild @@ -0,0 +1,106 @@ +# 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.1 2013/01/14 07:47:16 jlec 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 + + 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 + + find cuda-installer.pl install-linux.pl libnvvp/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 new file mode 100644 index 000000000000..9b1edbc9fde2 --- /dev/null +++ b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-5.0.35.ebuild @@ -0,0 +1,111 @@ +# 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.1 2013/01/14 07:47:16 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.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_unpack() { + unpacker + unpacker run_files/cudatoolkit*run +} + +src_prepare() { + local cuda_supported_gcc + + 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 + + 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 +} |