summaryrefslogtreecommitdiff
path: root/dev-util/nvidia-cuda-sdk
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/nvidia-cuda-sdk')
-rw-r--r--dev-util/nvidia-cuda-sdk/Manifest13
-rw-r--r--dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild141
-rw-r--r--dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild156
-rw-r--r--dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild143
-rw-r--r--dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44-r1.ebuild143
-rw-r--r--dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.0.176.ebuild144
-rw-r--r--dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.1.85.ebuild144
7 files changed, 0 insertions, 884 deletions
diff --git a/dev-util/nvidia-cuda-sdk/Manifest b/dev-util/nvidia-cuda-sdk/Manifest
index 569290502358..425b82d93288 100644
--- a/dev-util/nvidia-cuda-sdk/Manifest
+++ b/dev-util/nvidia-cuda-sdk/Manifest
@@ -1,20 +1,7 @@
-DIST cuda_10.1.243_418.87.00_linux.run 2572375299 BLAKE2B df9cb4faeeeeecc536e72697c6c73d544219f1b23cacb7fed646b0908fc7e573e85920861d56f76776ba637d84964cd1c789a0fe0d6541a4e0adf618b6c74d3c SHA512 f92b19d0242969a65a6e6db43bc293e442abc07a9e168c9e995692e1a401679504598c782e511be3879e1650b90f71a50bbc63c9ee45654c26b5007cdf33c4fe
DIST cuda_10.2.89_440.33.01_linux.run 2645419389 BLAKE2B 236aa70a7b45e3636c2c229fffa7d1ca0699ab4365865a73edab607a209c42c2899133dd6a83c61c5929fa754668ad15aec4d847639af1c00a8e6657c8487c77 SHA512 ad8da539ff5df7caf411d1e497ff3d6978cfa8a1fd9150fa4846089e92a604ea56be8631f3efdfe7229a655b8d2d28e6edb32f5731530a77d6f00241cc7aab6e
-DIST cuda_6.5.19_linux_32.run 81882112 BLAKE2B cf55ef7c969503c156431fc56301ed4e9a1234ae0cb867f12649636069f35e56bf6fc9df7482b6baade45d78c8baa2d98c41a28696da59294e0f575c4a0344ce SHA512 1ce9bd6b472b7e4f1fb181eb340dfcb757714d59a89aaa02146cfe1a97c8ccb7eb7699b4ec823276f277eb4d82d95050eaba17e7ed5fd2e47b9b5d78531c5d4e
-DIST cuda_6.5.19_linux_64.run 982446238 BLAKE2B 517ac07d4717f4f5d9427616a387dbe01fe35b7b6845b5d9e29aad18814243d38cc9a3cd0ff9042c027fcb056618e9a8535d560c16a6ac7998ff39fcf3ada654 SHA512 06854f020a5f72cf4bd714859e6966248ac2f589284113674e869fdaa1254cae27d4101940758ecda5df4724ad3e448a1f6d0c053b6cbc28107750872b6a5797
-DIST cuda_7.5.18_linux.run 1195424633 BLAKE2B 35933c3c3355231cd59e579e6ac6a30cca57ed0e3de26ce5cac368ff22595f39cb041c9696415d4d76a49e772b7828eacab24a3e581c1e9a8ef7981e1b044eee SHA512 97459dfd124060200f1c43f763e5bce0bea53e35ed4bef72bee6c8ba1c04ecffb8695af11755443513316f91fdb5cb4d35662f7b87bca7e3de85d562d4e49363
-DIST cuda_8.0.44_linux.run 1457082926 BLAKE2B a6408ddf8984dc4b0725cc4f53549c4d4fc4b3bd4de2771896953dbe023aa6d04ad38f5d6bf1ab3ff5752d2c18b400f478c9dbb263755267836c5de79e4f8f51 SHA512 1bf9d8e6b853c2a971b8d908a043adc5b11ec7033faed04a773c42680882753f98bc33b46f6b301c24c0f780f74bc237dce5766fc857f1a905e6c1f200728d86
DIST cuda_8.0.61_375.26_linux.run 1465528129 BLAKE2B d52ddf1dcf5246f230f210d10d1f6e7b540c892dea5a8cd770f0d062b30b01f5c8467d930430b383464d40a9b4a14eaaf22a365e081955e4452ec4f55e08da0b SHA512 d22303719a9feff64f95bf6a966f1caa2bf0cf8c955e475ce08ce54faa5e098d336c2db223ef0185c1f23b9c52b7d2f81a63515485219cfc016d72bda979248b
-DIST cuda_9.0.176_384.81_linux.run 1643293725 BLAKE2B 4155de544f877f6c420c2463bc68679cc89774f0516d1885d5c3f483ad86e7f25ecf6042b8240431b814230136f3026196a013bb18184fa2ec9af555bb7ea723 SHA512 00e24638c02d049c575732dee5237db21f7c451b606f37cf95e44e89d47d0cb055255e9f70dc013298c9e0d224147f239488558904556b68572e3f31935489a9
-DIST cuda_9.1.85_387.26_linux.run 1639829845 BLAKE2B c9f6544893b8e4d0b4c51d66f1cf17a593e65af6e7748e2994abda8ffcb839a7bb19cb0eebfbc52347293296025f000241d1c9842af0c41d31928770c4639b79 SHA512 492a5fa58fc93ac718ca093f24bb5e74dd2586338c42f2e11e328c7f16756e3511a1c555b12cb1990bb782d0d1600976f4c9e5b3d4857e371b0431daf06b2827
DIST cuda_9.2.88_396.26_linux.run 1758421686 BLAKE2B 5068b2dfae87e43c124a6a72ac98b7c562aebc7161e7c977cfba68342127e99705228be531aa5bb8af0318e17c4ef8fe36257452d0f507fc3b82e3fbd0184bdc SHA512 2d0d87926e11a1b21d6d3377138753df458a53ba9539d8399f9f252e0784cb41e2c63a5c724ca81ded82b9657b97fda51d812b467b0827e7d361aa2ad73b2dba
-EBUILD nvidia-cuda-sdk-10.1.243.ebuild 3855 BLAKE2B 38641a5f691355ddaf84b7e24800e4758245fb2237ca6589c0e589a674f1d0dbdf2ca4396cb61f0d6572374833c9756a751d7b79edb693bd14b1cbdf42d53f44 SHA512 6ec429c1d57814d98050040644aa407247ef0e47c2634fe7e4dd68d8e6c33fc0975ea4688418c07efbee109c3b16f69c08ef16a1812169bacef38307a41f32ee
EBUILD nvidia-cuda-sdk-10.2.89.ebuild 3848 BLAKE2B 54e6e210099b41a583c7410a856a21a0f32a816f7282dae5361480e53fa0bbf61489dafe0ed5082992d8ac0e6a0f836ce5d0deaa6a9c6b2a0c20ffcc6a491eeb SHA512 c786a2001fc28583eb0c38290bef6b7a9167dd8b406e940f77f67a2c4a34ecb98849fa1e65e6d13cd540bcbad218a64a4ee64e3b67acde5949771f5fb90e5cee
-EBUILD nvidia-cuda-sdk-6.5.19.ebuild 3992 BLAKE2B 3cd45f806009b7ef888c59c566af037109d20a6a4f5306ff6a6187266cfba019575f94c35df3780377a437074d630edcc88e3c4c3510a2511a27808f4d7d1012 SHA512 367460c2bc89549774ead4cde22c875ed3df9f8002fdd6666289649c6749295389204a11cd0cd6ab201cb2eed1e43d1cda45aea42b9864c9a7fb5ba813aaa04e
-EBUILD nvidia-cuda-sdk-7.5.18.ebuild 3568 BLAKE2B 45c89d2ea4116aa687ea797997cdf03bd7f14626ef49e505144ef9864aa88c7130878dee1896e0b0fbffec5b7815a4f753c1b5a71e4582676efb03aa62c0663a SHA512 199004e748db588de447c71ac2bddb08fdfbbc099a335ecbcd7e57978cc3cbb9cfdd6a87765c6b315cfac067248c133eeff1a98fc2e9d331a138ccb5266a1f7e
-EBUILD nvidia-cuda-sdk-8.0.44-r1.ebuild 3757 BLAKE2B 2a63de4062e746841c0e975aa68a5e40b358267b7682ca54bcad4c4b97ca3a1ac463c98ce081138d56013945cd22e9ff818d9b4391f8f6e15c1ddb8f4813aa70 SHA512 b2270c56dc77e85db6963c01965afb4a85b7acf3790630d955adf0d64d2ca09203c9423285684c99432037c8378dd5856c5ccf4b91a0b364f54c282765c149d9
EBUILD nvidia-cuda-sdk-8.0.61.ebuild 3803 BLAKE2B bb1f549d41e64984e8b3ae629461f3bc616bb776324fd2d29e529a66453bb2304c8ad6d397e7c5b790d759455869b88f9796bf12f760a2816e651caa85226480 SHA512 91ed589b1841b6069e24ea8fd12fc55d73c7bca0b33cd6b7b37746fbd3c896ce8224a5622b7750720595d1f36a7daecc3661612148f58e6e6e79028b2a0333fa
-EBUILD nvidia-cuda-sdk-9.0.176.ebuild 3802 BLAKE2B 721ae934544eec47b19fb1eaee6109fb9bd1ad8ee79a38ee4d9d28a6a00891badf8b2c24c11160c4803c0aa9ff375348fd897d3fb396355853013e03290b35c9 SHA512 ce2afcc297f62e9ef965ec0ad3344286a9df85ec84bc512872e5e7897c07993431ff21eb36e34aa2b5aed05f4a3f107f869e979bfa09cffda035de77c8d89983
-EBUILD nvidia-cuda-sdk-9.1.85.ebuild 3798 BLAKE2B c10c6cd7aaef1b99089f36d319f7f5375fb117c3f8840fc367c44368a7cac7366d54f377c9d775207dec61d0ca67885ef2ba61a70daee4d5326453dc7e831f71 SHA512 e5c37b2319ffd7d91b4d24721ffbd4617aec28924ebef86ffd44d7a3de2eeebf726a6bf518cad195261e485f7fc8d4850565ba83186026962ca9d49e49bfdddb
EBUILD nvidia-cuda-sdk-9.2.88.ebuild 3791 BLAKE2B bd1fb4d0c9cc42767ac113097f768fc0e944eab1fa4ee8384bb5925abdad0d29b878abdf205c68216b3612451f6e627c40722013be4749c3ac9cc33314290860 SHA512 4ad0d53e6a7c33f578e5e5daef71f3bed147bf2083ee641f72baf62718655b54066088c2c371eb493924d996edbfd522feea3b8497adccdcef50a845c4c8b77a
MISC metadata.xml 366 BLAKE2B 379204c3535fb9e98e2026ae695a62618006c42a590b13803db1990c07119a3a40e7bb4474c73f3717340987fc3ed2829dc9d6b0774103a2b4f6c0726bdf58d2 SHA512 174f0718320ba2b8c7b427d43ed2b35f781313cc97397958c5c4c49163ef6d02eae5658071238d764392905c403d13094c898f95f22e1a0360a24ae2a7d08459
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild
deleted file mode 100644
index e63a0c26df91..000000000000
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild
+++ /dev/null
@@ -1,141 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit cuda flag-o-matic portability toolchain-funcs unpacker
-
-MYD=$(ver_cut 1-2 ${PV})
-DRIVER_PV="418.87.00"
-
-DESCRIPTION="NVIDIA CUDA Software Development Kit"
-HOMEPAGE="https://developer.nvidia.com/cuda-zone"
-SRC_URI="https://developer.download.nvidia.com/compute/cuda/${MYD}/Prod/local_installers/cuda_${PV}_${DRIVER_PV}_linux.run -> cuda_${PV}_${DRIVER_PV}_linux.run"
-
-LICENSE="CUDPP"
-SLOT="0/${PV}"
-KEYWORDS="~amd64 ~amd64-linux"
-IUSE="+cuda debug +doc +examples opencl mpi"
-
-RDEPEND="
- ~dev-util/nvidia-cuda-toolkit-${PV}
- media-libs/freeglut
- examples? (
- media-libs/freeimage
- media-libs/glew:0=
- !prefix? ( >=x11-drivers/nvidia-drivers-${DRIVER_PV}[uvm] )
- mpi? ( virtual/mpi )
- )"
-DEPEND="${RDEPEND}"
-
-RESTRICT="test"
-
-S=${WORKDIR}/builds/cuda-samples
-
-QA_EXECSTACK=(
- opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
- opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
- )
-
-src_prepare() {
- cuda_src_prepare
-
- export RAWLDFLAGS="$(raw-ldflags)"
-# epatch "${FILESDIR}"/${P}-asneeded.patch
-
- local file
- while IFS="" read -d $'\0' -r file; do
- sed \
- -e 's:-O[23]::g' \
- -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
- -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
- -e "/CC/s:gcc:$(tc-getCC):g" \
- -e "/GCC/s:g++:$(tc-getCXX):g" \
- -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
- -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
- -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
- -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
- -e 's:-Wimplicit::g' \
- -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -i "${file}" || die
- # -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
- done < <(find . -type f -name 'Makefile' -print0)
-
- rm -rf common/inc/GL || die
- find . -type f -name '*.a' -delete || die
-
- eapply_user
-}
-
-src_compile() {
- use examples || return
- local myopts=("verbose=1")
- use debug && myopts+=("dbg=1")
- export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
- emake \
- cuda-install="${EPREFIX}/opt/cuda" \
- CUDA_PATH="${EPREFIX}/opt/cuda/" \
- MPI_GCC=10 \
- "${myopts[@]}"
-}
-
-src_test() {
- addwrite /dev/nvidiactl
- addwrite /dev/nvidia0
-
- local i
- for i in {0..9}*/*; do
- emake -C "${i}" run
- done
-}
-
-src_install() {
- local f t crap=( *.txt Samples.htm* )
-
- if use doc; then
- ebegin "Installing docs ..."
- while IFS="" read -d $'\0' -r f; do
- treecopy "${f}" "${ED}"/usr/share/doc/${PF}/
- done < <(find -type f \( -name 'readme.txt' -o -name '*.pdf' \) -print0)
-
- while IFS="" read -d $'\0' -r f; do
- docompress -x "${f#${ED}}"
- done < <(find "${ED}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
- eend
- fi
-
- ebegin "Cleaning before installation..."
- for f in "${crap[@]}"; do
- rm -f "${f}" || die
- done
- find -type f \( -name '*.o' -o -name '*.pdf' -o -name 'readme.txt' \) -delete || die
- eend
-
- ebegin "Moving files..."
- while IFS="" read -d $'\0' -r f; do
- t="$(dirname ${f})"
- if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
- continue
- fi
- if [[ -x ${f} ]]; then
- exeinto /opt/cuda/sdk/"${t}"
- doexe "${f}"
- else
- insinto /opt/cuda/sdk/"${t}"
- doins "${f}"
- fi
- done < <(find . -type f -print0)
- eend
-}
-
-pkg_postinst() {
- if use examples && use prefix; then
- ewarn "Gentoo Prefix does not manage kernel modules. You need to make certain"
- ewarn "the function counterpart to >=x11-drivers/nvidia-drivers-${DRIVER_PV}[uvm]"
- ewarn "is available from the host"
- fi
-}
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild
deleted file mode 100644
index f48ac080ba5f..000000000000
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild
+++ /dev/null
@@ -1,156 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
-
-MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
-
-DESCRIPTION="NVIDIA CUDA Software Development Kit"
-HOMEPAGE="http://developer.nvidia.com/cuda"
-CURI="http://developer.download.nvidia.com/compute/cuda/${MYD}/rel/installers"
-SRC_URI="
- amd64? ( ${CURI}/cuda_${PV}_linux_64.run )
- x86? ( ${CURI}/cuda_${PV}_linux_32.run )"
-
-LICENSE="CUDPP"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="debug +doc +examples opencl +cuda"
-
-RDEPEND="
- ~dev-util/nvidia-cuda-toolkit-${PV}
- media-libs/freeglut
- examples? (
- media-libs/freeimage
- media-libs/glew:0=
- virtual/mpi
- >=x11-drivers/nvidia-drivers-340.32[uvm]
- x86? ( <x11-drivers/nvidia-drivers-346.35[uvm] )
- )"
-DEPEND="${RDEPEND}"
-
-RESTRICT="test"
-
-S=${WORKDIR}/cuda-samples
-
-QA_EXECSTACK=(
- opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
- opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
- )
-
-src_unpack() {
- unpacker
- unpacker run_files/cuda-samples*run
-}
-
-pkg_setup() {
- if use cuda || use opencl; then
- cuda_pkg_setup
- fi
-
- if use x86; then
- ewarn "Starting with version 6.5 NVIDIA dropped more and more"
- ewarn "the support for 32bit linux."
- ewarn "Be aware that bugfixes and new features may not be available."
- ewarn "https://dev.gentoo.org/~jlec/distfiles/CUDA_Toolkit_Release_Notes.pdf"
- fi
-}
-
-src_prepare() {
- export RAWLDFLAGS="$(raw-ldflags)"
-# epatch "${FILESDIR}"/${P}-asneeded.patch
-
- sed \
- -e 's:-O2::g' \
- -e 's:-O3::g' \
- -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
- -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
- -e "/CC/s:gcc:$(tc-getCC):g" \
- -e "/GCC/s:g++:$(tc-getCXX):g" \
- -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
- -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
- -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
- -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
- -e 's:-Wimplicit::g' \
- -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$(pkg-config --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
- -i $(find . -type f -name "Makefile") || die
-
-# -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
- find common/inc/GL -delete || die
- find . -type f -name "*\.a" -delete || die
-
- eapply_user
-}
-
-src_compile() {
- use examples || return
- local myopts verbose="verbose=1"
- use debug && myopts+=" dbg=1"
- export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
- emake \
- cuda-install="${EPREFIX}/opt/cuda" \
- CUDA_PATH="${EPREFIX}/opt/cuda/" \
- MPI_GCC=10 \
- ${myopts} ${verbose}
-}
-
-src_test() {
- local _dir _subdir
-
- addwrite /dev/nvidiactl
- addwrite /dev/nvidia0
-
- for _dir in {0..9}*; do
- pushd ${_dir} > /dev/null
- for _subdir in *; do
- emake -C ${_subdir} run
- done
- popd > /dev/null
- done
-}
-
-src_install() {
- local i j f t crap=""
-
- if use doc; then
- ebegin "Installing docs ..."
- treecopy $(find -type f \( -name readme.txt -o -name "*.pdf" \)) "${ED}"/usr/share/doc/${PF}/
- docompress -x $(find "${ED}"/usr/share/doc/${PF}/ -type f -name readme.txt | sed -e "s:${ED}::")
- eend
- fi
-
- crap+=" *.txt Samples.htm*"
-
- ebegin "Cleaning before installation..."
- for i in ${crap}; do
- if [[ -e ${i} ]]; then
- find ${i} -delete || die
- fi
- done
- find -type f \( -name "*.o" -o -name "*.pdf" -o -name "readme.txt" \) -delete || die
- eend
-
- ebegin "Moving files..."
- for f in $(find .); do
- local t="$(dirname ${f})"
- if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
- continue
- fi
- if [[ ! -d ${f} ]]; then
- if [[ -x ${f} ]]; then
- exeinto /opt/cuda/sdk/${t}
- doexe ${f}
- else
- insinto /opt/cuda/sdk/${t}
- doins ${f}
- fi
- fi
- done
- eend
-}
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild
deleted file mode 100644
index f3d256ec6cd5..000000000000
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild
+++ /dev/null
@@ -1,143 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
-
-MYD=$(get_version_component_range 1-2)
-
-DESCRIPTION="NVIDIA CUDA Software Development Kit"
-HOMEPAGE="https://developer.nvidia.com/cuda-downloads"
-SRC_URI="http://developer.download.nvidia.com/compute/cuda/${MYD}/Prod/local_installers/cuda_${PV}_linux.run"
-
-LICENSE="CUDPP"
-SLOT="0"
-KEYWORDS="~amd64 ~amd64-linux"
-IUSE="debug +doc +examples opencl +cuda"
-
-RDEPEND="
- ~dev-util/nvidia-cuda-toolkit-${PV}
- media-libs/freeglut
- examples? (
- media-libs/freeimage
- media-libs/glew:0=
- virtual/mpi
- >=x11-drivers/nvidia-drivers-352.39[uvm]
- )"
-DEPEND="${RDEPEND}"
-
-RESTRICT="test"
-
-S=${WORKDIR}/samples
-
-QA_EXECSTACK=(
- opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
- opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
- )
-
-src_unpack() {
- unpacker
- unpacker run_files/cuda-samples*run
-}
-
-pkg_setup() {
- if use cuda || use opencl; then
- cuda_pkg_setup
- fi
-}
-
-src_prepare() {
- export RAWLDFLAGS="$(raw-ldflags)"
-# epatch "${FILESDIR}"/${P}-asneeded.patch
-
- sed \
- -e 's:-O2::g' \
- -e 's:-O3::g' \
- -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
- -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
- -e "/CC/s:gcc:$(tc-getCC):g" \
- -e "/GCC/s:g++:$(tc-getCXX):g" \
- -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
- -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
- -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
- -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
- -e 's:-Wimplicit::g' \
- -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -i $(find . -type f -name "Makefile") || die
-
-# -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
- find common/inc/GL -delete || die
- find . -type f -name "*\.a" -delete || die
-}
-
-src_compile() {
- use examples || return
- local myopts verbose="verbose=1"
- use debug && myopts+=" dbg=1"
- export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
- emake \
- cuda-install="${EPREFIX}/opt/cuda" \
- CUDA_PATH="${EPREFIX}/opt/cuda/" \
- MPI_GCC=10 \
- ${myopts} ${verbose}
-}
-
-src_test() {
- local _dir _subdir
-
- addwrite /dev/nvidiactl
- addwrite /dev/nvidia0
-
- for _dir in {0..9}*; do
- pushd ${_dir} > /dev/null
- for _subdir in *; do
- emake -C ${_subdir} run
- done
- popd > /dev/null
- done
-}
-
-src_install() {
- local i j f t crap=""
-
- if use doc; then
- ebegin "Installing docs ..."
- treecopy $(find -type f \( -name readme.txt -o -name "*.pdf" \)) "${ED}"/usr/share/doc/${PF}/
- docompress -x $(find "${ED}"/usr/share/doc/${PF}/ -type f -name readme.txt | sed -e "s:${ED}::")
- eend
- fi
-
- crap+=" *.txt Samples.htm*"
-
- ebegin "Cleaning before installation..."
- for i in ${crap}; do
- if [[ -e ${i} ]]; then
- find ${i} -delete || die
- fi
- done
- find -type f \( -name "*.o" -o -name "*.pdf" -o -name "readme.txt" \) -delete || die
- eend
-
- ebegin "Moving files..."
- for f in $(find .); do
- local t="$(dirname ${f})"
- if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
- continue
- fi
- if [[ ! -d ${f} ]]; then
- if [[ -x ${f} ]]; then
- exeinto /opt/cuda/sdk/${t}
- doexe ${f}
- else
- insinto /opt/cuda/sdk/${t}
- doins ${f}
- fi
- fi
- done
- eend
-}
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44-r1.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44-r1.ebuild
deleted file mode 100644
index 4015cff5dca8..000000000000
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44-r1.ebuild
+++ /dev/null
@@ -1,143 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
-
-MYD=$(get_version_component_range 1-2)
-
-DESCRIPTION="NVIDIA CUDA Software Development Kit"
-HOMEPAGE="https://developer.nvidia.com/cuda-zone"
-SRC_URI="https://developer.nvidia.com/compute/cuda/${MYD}/prod/local_installers/cuda_${PV}_linux-run -> cuda_${PV}_linux.run"
-
-LICENSE="CUDPP"
-SLOT="0"
-KEYWORDS="~amd64 ~amd64-linux"
-IUSE="+cuda debug +doc +examples opencl mpi"
-
-RDEPEND="
- ~dev-util/nvidia-cuda-toolkit-${PV}
- media-libs/freeglut
- examples? (
- media-libs/freeimage
- media-libs/glew:0=
- >=x11-drivers/nvidia-drivers-367.44[uvm]
- mpi? ( virtual/mpi )
- )"
-DEPEND="${RDEPEND}"
-
-RESTRICT="test"
-
-S=${WORKDIR}/samples
-
-QA_EXECSTACK=(
- opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
- opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
- )
-
-src_unpack() {
- # We first need to unpack the cuda_${PV}_linux.run file
- # which includes the cuda-samples*run file.
- unpacker
- unpacker run_files/cuda-samples*run
-}
-
-pkg_setup() {
- if use cuda || use opencl; then
- cuda_pkg_setup
- fi
-}
-
-src_prepare() {
- export RAWLDFLAGS="$(raw-ldflags)"
-# epatch "${FILESDIR}"/${P}-asneeded.patch
-
- local file
- while IFS="" read -d $'\0' -r file; do
- sed \
- -e 's:-O[23]::g' \
- -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
- -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
- -e "/CC/s:gcc:$(tc-getCC):g" \
- -e "/GCC/s:g++:$(tc-getCXX):g" \
- -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
- -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
- -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
- -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
- -e 's:-Wimplicit::g' \
- -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -i "${file}" || die
- # -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
- done < <(find . -type f -name 'Makefile' -print0)
-
- rm -rf common/inc/GL || die
- find . -type f -name '*.a' -delete || die
-
- eapply_user
-}
-
-src_compile() {
- use examples || return
- local myopts=("verbose=1")
- use debug && myopts+=("dbg=1")
- export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
- emake \
- cuda-install="${EPREFIX}/opt/cuda" \
- CUDA_PATH="${EPREFIX}/opt/cuda/" \
- MPI_GCC=10 \
- "${myopts[@]}"
-}
-
-src_test() {
- addwrite /dev/nvidiactl
- addwrite /dev/nvidia0
-
- local i
- for i in {0..9}*/*; do
- emake -C "${i}" run
- done
-}
-
-src_install() {
- local f t crap=( *.txt Samples.htm* )
-
- if use doc; then
- ebegin "Installing docs ..."
- while IFS="" read -d $'\0' -r f; do
- treecopy "${f}" "${ED%/}"/usr/share/doc/${PF}/
- done < <(find -type f \( -name 'readme.txt' -o -name '*.pdf' \) -print0)
-
- while IFS="" read -d $'\0' -r f; do
- docompress -x "${f#${ED%/}}"
- done < <(find "${ED%/}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
- eend
- fi
-
- ebegin "Cleaning before installation..."
- for f in "${crap[@]}"; do
- rm -f "${f}" || die
- done
- find -type f \( -name '*.o' -o -name '*.pdf' -o -name 'readme.txt' \) -delete || die
- eend
-
- ebegin "Moving files..."
- while IFS="" read -d $'\0' -r f; do
- t="$(dirname ${f})"
- if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
- continue
- fi
- if [[ -x ${f} ]]; then
- exeinto /opt/cuda/sdk/"${t}"
- doexe "${f}"
- else
- insinto /opt/cuda/sdk/"${t}"
- doins "${f}"
- fi
- done < <(find . -type f -print0)
- eend
-}
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.0.176.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.0.176.ebuild
deleted file mode 100644
index d70ad3f42d8f..000000000000
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.0.176.ebuild
+++ /dev/null
@@ -1,144 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
-
-MYD=$(get_version_component_range 1-2)
-DRIVER_PV="384.81"
-
-DESCRIPTION="NVIDIA CUDA Software Development Kit"
-HOMEPAGE="https://developer.nvidia.com/cuda-zone"
-SRC_URI="https://developer.nvidia.com/compute/cuda/${MYD}/Prod/local_installers/cuda_${PV}_${DRIVER_PV}_linux-run -> cuda_${PV}_${DRIVER_PV}_linux.run"
-
-LICENSE="CUDPP"
-SLOT="0"
-KEYWORDS="~amd64 ~amd64-linux"
-IUSE="+cuda debug +doc +examples opencl mpi"
-
-RDEPEND="
- ~dev-util/nvidia-cuda-toolkit-${PV}
- media-libs/freeglut
- examples? (
- media-libs/freeimage
- media-libs/glew:0=
- >=x11-drivers/nvidia-drivers-384.81[uvm]
- mpi? ( virtual/mpi )
- )"
-DEPEND="${RDEPEND}"
-
-RESTRICT="test"
-
-S=${WORKDIR}/samples
-
-QA_EXECSTACK=(
- opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
- opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
- )
-
-src_unpack() {
- # We first need to unpack the cuda_${PV}_linux.run file
- # which includes the cuda-samples*run file.
- unpacker
- unpacker run_files/cuda-samples*run
-}
-
-pkg_setup() {
- if use cuda || use opencl; then
- cuda_pkg_setup
- fi
-}
-
-src_prepare() {
- export RAWLDFLAGS="$(raw-ldflags)"
-# epatch "${FILESDIR}"/${P}-asneeded.patch
-
- local file
- while IFS="" read -d $'\0' -r file; do
- sed \
- -e 's:-O[23]::g' \
- -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
- -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
- -e "/CC/s:gcc:$(tc-getCC):g" \
- -e "/GCC/s:g++:$(tc-getCXX):g" \
- -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
- -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
- -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
- -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
- -e 's:-Wimplicit::g' \
- -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -i "${file}" || die
- # -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
- done < <(find . -type f -name 'Makefile' -print0)
-
- rm -rf common/inc/GL || die
- find . -type f -name '*.a' -delete || die
-
- eapply_user
-}
-
-src_compile() {
- use examples || return
- local myopts=("verbose=1")
- use debug && myopts+=("dbg=1")
- export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
- emake \
- cuda-install="${EPREFIX}/opt/cuda" \
- CUDA_PATH="${EPREFIX}/opt/cuda/" \
- MPI_GCC=10 \
- "${myopts[@]}"
-}
-
-src_test() {
- addwrite /dev/nvidiactl
- addwrite /dev/nvidia0
-
- local i
- for i in {0..9}*/*; do
- emake -C "${i}" run
- done
-}
-
-src_install() {
- local f t crap=( *.txt Samples.htm* )
-
- if use doc; then
- ebegin "Installing docs ..."
- while IFS="" read -d $'\0' -r f; do
- treecopy "${f}" "${ED%/}"/usr/share/doc/${PF}/
- done < <(find -type f \( -name 'readme.txt' -o -name '*.pdf' \) -print0)
-
- while IFS="" read -d $'\0' -r f; do
- docompress -x "${f#${ED%/}}"
- done < <(find "${ED%/}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
- eend
- fi
-
- ebegin "Cleaning before installation..."
- for f in "${crap[@]}"; do
- rm -f "${f}" || die
- done
- find -type f \( -name '*.o' -o -name '*.pdf' -o -name 'readme.txt' \) -delete || die
- eend
-
- ebegin "Moving files..."
- while IFS="" read -d $'\0' -r f; do
- t="$(dirname ${f})"
- if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
- continue
- fi
- if [[ -x ${f} ]]; then
- exeinto /opt/cuda/sdk/"${t}"
- doexe "${f}"
- else
- insinto /opt/cuda/sdk/"${t}"
- doins "${f}"
- fi
- done < <(find . -type f -print0)
- eend
-}
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.1.85.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.1.85.ebuild
deleted file mode 100644
index 1f648f706dc4..000000000000
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.1.85.ebuild
+++ /dev/null
@@ -1,144 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit cuda flag-o-matic portability toolchain-funcs unpacker versionator
-
-MYD=$(get_version_component_range 1-2)
-DRIVER_PV="387.26"
-
-DESCRIPTION="NVIDIA CUDA Software Development Kit"
-HOMEPAGE="https://developer.nvidia.com/cuda-zone"
-SRC_URI="https://developer.nvidia.com/compute/cuda/${MYD}/Prod2/local_installers/cuda_${PV}_${DRIVER_PV}_linux -> cuda_${PV}_${DRIVER_PV}_linux.run"
-
-LICENSE="CUDPP"
-SLOT="0"
-KEYWORDS="~amd64 ~amd64-linux"
-IUSE="+cuda debug +doc +examples opencl mpi"
-
-RDEPEND="
- ~dev-util/nvidia-cuda-toolkit-${PV}
- media-libs/freeglut
- examples? (
- media-libs/freeimage
- media-libs/glew:0=
- >=x11-drivers/nvidia-drivers-${DRIVER_PV}[uvm]
- mpi? ( virtual/mpi )
- )"
-DEPEND="${RDEPEND}"
-
-RESTRICT="test"
-
-S=${WORKDIR}/samples
-
-QA_EXECSTACK=(
- opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
- opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
- )
-
-src_unpack() {
- # We first need to unpack the cuda_${PV}_linux.run file
- # which includes the cuda-samples*run file.
- unpacker
- unpacker run_files/cuda-samples*run
-}
-
-pkg_setup() {
- if use cuda || use opencl; then
- cuda_pkg_setup
- fi
-}
-
-src_prepare() {
- export RAWLDFLAGS="$(raw-ldflags)"
-# epatch "${FILESDIR}"/${P}-asneeded.patch
-
- local file
- while IFS="" read -d $'\0' -r file; do
- sed \
- -e 's:-O[23]::g' \
- -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
- -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
- -e "/CC/s:gcc:$(tc-getCC):g" \
- -e "/GCC/s:g++:$(tc-getCXX):g" \
- -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
- -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
- -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
- -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
- -e 's:-Wimplicit::g' \
- -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -i "${file}" || die
- # -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
- done < <(find . -type f -name 'Makefile' -print0)
-
- rm -rf common/inc/GL || die
- find . -type f -name '*.a' -delete || die
-
- eapply_user
-}
-
-src_compile() {
- use examples || return
- local myopts=("verbose=1")
- use debug && myopts+=("dbg=1")
- export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
- emake \
- cuda-install="${EPREFIX}/opt/cuda" \
- CUDA_PATH="${EPREFIX}/opt/cuda/" \
- MPI_GCC=10 \
- "${myopts[@]}"
-}
-
-src_test() {
- addwrite /dev/nvidiactl
- addwrite /dev/nvidia0
-
- local i
- for i in {0..9}*/*; do
- emake -C "${i}" run
- done
-}
-
-src_install() {
- local f t crap=( *.txt Samples.htm* )
-
- if use doc; then
- ebegin "Installing docs ..."
- while IFS="" read -d $'\0' -r f; do
- treecopy "${f}" "${ED%/}"/usr/share/doc/${PF}/
- done < <(find -type f \( -name 'readme.txt' -o -name '*.pdf' \) -print0)
-
- while IFS="" read -d $'\0' -r f; do
- docompress -x "${f#${ED%/}}"
- done < <(find "${ED%/}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
- eend
- fi
-
- ebegin "Cleaning before installation..."
- for f in "${crap[@]}"; do
- rm -f "${f}" || die
- done
- find -type f \( -name '*.o' -o -name '*.pdf' -o -name 'readme.txt' \) -delete || die
- eend
-
- ebegin "Moving files..."
- while IFS="" read -d $'\0' -r f; do
- t="$(dirname ${f})"
- if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
- continue
- fi
- if [[ -x ${f} ]]; then
- exeinto /opt/cuda/sdk/"${t}"
- doexe "${f}"
- else
- insinto /opt/cuda/sdk/"${t}"
- doins "${f}"
- fi
- done < <(find . -type f -print0)
- eend
-}