diff options
author | Michael Januszewski <spock@gentoo.org> | 2010-02-08 12:10:19 +0000 |
---|---|---|
committer | Michael Januszewski <spock@gentoo.org> | 2010-02-08 12:10:19 +0000 |
commit | f53f06ee05ae7dbda0062c4a85cf42e30a1182e3 (patch) | |
tree | e13227c19bcddb352167b91cbcca57ba77026ff0 /dev-util/nvidia-cuda-sdk | |
parent | Mask NVIDIA CUDA SDK v3.0. (diff) | |
download | historical-f53f06ee05ae7dbda0062c4a85cf42e30a1182e3.tar.gz historical-f53f06ee05ae7dbda0062c4a85cf42e30a1182e3.tar.bz2 historical-f53f06ee05ae7dbda0062c4a85cf42e30a1182e3.zip |
Add the 3.0 beta SDK.
Package-Manager: portage-2.2_rc62/cvs/Linux x86_64
Diffstat (limited to 'dev-util/nvidia-cuda-sdk')
-rw-r--r-- | dev-util/nvidia-cuda-sdk/ChangeLog | 10 | ||||
-rw-r--r-- | dev-util/nvidia-cuda-sdk/Manifest | 14 | ||||
-rw-r--r-- | dev-util/nvidia-cuda-sdk/metadata.xml | 6 | ||||
-rw-r--r-- | dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.0_beta1.ebuild | 97 |
4 files changed, 119 insertions, 8 deletions
diff --git a/dev-util/nvidia-cuda-sdk/ChangeLog b/dev-util/nvidia-cuda-sdk/ChangeLog index b7537aef77d8..f1796701f555 100644 --- a/dev-util/nvidia-cuda-sdk/ChangeLog +++ b/dev-util/nvidia-cuda-sdk/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-util/nvidia-cuda-sdk -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v 1.17 2009/12/01 19:09:52 fauli Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v 1.18 2010/02/08 12:10:19 spock Exp $ + +*nvidia-cuda-sdk-3.0_beta1 (08 Feb 2010) + + 08 Feb 2010; Michał Januszewski <spock@gentoo.org> + +nvidia-cuda-sdk-3.0_beta1.ebuild, metadata.xml: + Add the 3.0 beta SDK. 01 Dec 2009; Christian Faulhammer <fauli@gentoo.org> nvidia-cuda-sdk-2.2-r1.ebuild: diff --git a/dev-util/nvidia-cuda-sdk/Manifest b/dev-util/nvidia-cuda-sdk/Manifest index cc1c4ab9f05b..88466d57230a 100644 --- a/dev-util/nvidia-cuda-sdk/Manifest +++ b/dev-util/nvidia-cuda-sdk/Manifest @@ -7,17 +7,19 @@ DIST NVIDIA_CUDA_SDK_2.02.0807.1535_linux.run 41918865 RMD160 0ec9bda0e077660540 DIST cuda-sdk-linux-2.10.1215.2015-3233425.run 46618139 RMD160 bfbadee2b669d72e038abf34cb200343a3826465 SHA1 3ef64ffd9d1bc0afe351c80f07d5c2a87e7e044a SHA256 5d9521f049312fc00fef9e9ed6fa2bd8475e0d309dab109da4b663461d9855bb DIST cudasdk_2.2_linux.run 55951278 RMD160 68c05b95b2a1f9230b9a076f1d9cf150d877d8b6 SHA1 72a6877c649a7444a853260d21387ed8a80b98c8 SHA256 1962a0a0795a8d2aef7c4e113319bd0bb376a7bb553405d94d731e594ef316fb DIST cudasdk_2.3_linux.run 66005555 RMD160 e6995f190663ec5826f986420f2c02920a484444 SHA1 6411d962d251cede1fac0eb6eaee001e00c053f4 SHA256 26ec80755b124a8484c93a6481a3c19f4fa7fdae96b087fd889346981c463873 +DIST gpucomputingsdk_3.0-beta1_linux.run 108531376 RMD160 f474240b59f3f14924b12134e7c3a75754ade330 SHA1 27a77b8304198814f5ea3c4a158108e3e5d0b0cc SHA256 43b1ffe2a069f5e509efcd476d47a2595bad0db8a6967d91375e706445b9b016 EBUILD nvidia-cuda-sdk-2.02.0807.1535.ebuild 1681 RMD160 a5f2b051c5ebf2b9d87df734e8ad2eea22f77d9d SHA1 9cda10985b669195bb0e04ca1dab4152b7f5476c SHA256 502a34cbed280a8e37c1299d296832461e533ebe052cf5f379153f9c2cc445e6 EBUILD nvidia-cuda-sdk-2.1.1215.2015.ebuild 1769 RMD160 83432d9aa10b827d453db6d9c134305a302636f7 SHA1 8eedf3ffdafdd85d1e8ed731cb611089fa3074f2 SHA256 9c944000245302a8033b82388d5e289d70a535a51f47fb9fe7e5c4b60f82ea35 EBUILD nvidia-cuda-sdk-2.2-r1.ebuild 1871 RMD160 9140bf49b2813a9f3c2a5a9710e8136cda5596d0 SHA1 cce9e070e541cc4b8db61932a838d1b8a5687fb3 SHA256 05120cc8d9f6d3e28d33d4803db69aa3270b0efe653624d651f3d6b47d6c23ed EBUILD nvidia-cuda-sdk-2.2.ebuild 1662 RMD160 a5093207a54e4686be5cee0419e3849ed9241577 SHA1 defe4401704fa26037d7f5110d07badef1a16ef5 SHA256 e4d3a616663aa37ca0bdd0ed0f5dc3cef4fd91f483e5266bbb4ca21094936e4c EBUILD nvidia-cuda-sdk-2.3.ebuild 1948 RMD160 45d7899e1cb42d15c360a71320dd1510336b3959 SHA1 b73f2c72ba7a862e73b7115d2c272882b7c5f578 SHA256 7be6125b5162c740d4d6e085265ce5465fde0fe603fa48f61840dc447c978055 -MISC ChangeLog 3811 RMD160 2b301d5a63b6cc8376c7bd595df1dcaa4025acc3 SHA1 8bb74b1ac2e0871f01b77a8769d5fcb9868cf6fb SHA256 2f86f8dbfe9e38cde9cc26dcdd26a9f24b371a4dc647eeb9aa206b8cf31c5af5 -MISC metadata.xml 419 RMD160 182c9ce57a04ae41c2cf85f6f9ec4536d661c759 SHA1 7a1a99d443b61ab8b6256c1f241b78e40c09faf3 SHA256 b690630cd28888964717a3c5aa733889b0dae3434559d1e3b66be8c09f7de912 +EBUILD nvidia-cuda-sdk-3.0_beta1.ebuild 1933 RMD160 f9e898d4b786b5e11bf0cc438472200b81de40ff SHA1 cb6da93ec36a23b8d6dc4b8995bb25cf6ee2cf14 SHA256 f5e40f453cfcb2a81f65f79ad7fac7abf19ce431e62c5eabff43d6490e0f9bbe +MISC ChangeLog 3983 RMD160 8054e455a7449c9784481c283cb3e0d6b5b75717 SHA1 1e3329b7e151db3b1e5a8fc5b000fe74caf58977 SHA256 940cd78d7e83944d21f005e4a1ec6be6049346f9af963622bbf720b6a6bb66cb +MISC metadata.xml 533 RMD160 e687824960583f9189283c95ad2630ba4bc34e12 SHA1 d0aa73f3b64351649b72867df05cb2a6785539fc SHA256 f41f0deb837dab23cf452542fb338fca84cec8665c78a08eaeaa7919b61e673f -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.11 (GNU/Linux) +Version: GnuPG v2.0.14 (GNU/Linux) -iEYEARECAAYFAksVagkACgkQNQqtfCuFneM6iwCfQvYKOlNPXs1ONVBpUKC1SqoO -Z/wAnjL8GPWZNJzmD3VLuxFM4evzl1qP -=Ag1w +iEYEARECAAYFAktv/w4ACgkQchej4aZK9/eQagCePJrTWM40KMj7NPVEnkClooCO +YcwAn0ZBADYnrg9whLCBAHg+hgHtvmh2 +=+U2B -----END PGP SIGNATURE----- diff --git a/dev-util/nvidia-cuda-sdk/metadata.xml b/dev-util/nvidia-cuda-sdk/metadata.xml index 79cc15cbb95d..a6522c26b7be 100644 --- a/dev-util/nvidia-cuda-sdk/metadata.xml +++ b/dev-util/nvidia-cuda-sdk/metadata.xml @@ -11,6 +11,12 @@ Build binaries for device emulation mode. These binaries will not require a CUDA-capable GPU to run. </flag> + <flag name='opencl'> + Build OpenCL binaries. + </flag> + <flag name='cuda'> + Build CUDA binaries. + </flag> </use> </pkgmetadata> diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.0_beta1.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.0_beta1.ebuild new file mode 100644 index 000000000000..51ed335029a7 --- /dev/null +++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.0_beta1.ebuild @@ -0,0 +1,97 @@ +# 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-sdk/nvidia-cuda-sdk-3.0_beta1.ebuild,v 1.1 2010/02/08 12:10:19 spock Exp $ + +EAPI=2 + +inherit eutils toolchain-funcs + +DESCRIPTION="NVIDIA CUDA Software Development Kit" +HOMEPAGE="http://developer.nvidia.com/cuda" + +CUDA_V=${PV//_/-} +DIR_V=${CUDA_V//./_} +DIR_V=${DIR_V//beta/Beta} + +SRC_URI="http://developer.download.nvidia.com/compute/cuda/${DIR_V}/sdk/gpucomputingsdk_${CUDA_V}_linux.run" +LICENSE="CUDPP" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug +doc emulation +examples opencl +cuda" + +RDEPEND=">=dev-util/nvidia-cuda-toolkit-3.0_beta1 + examples? ( !emulation? ( >=x11-drivers/nvidia-drivers-195.30 ) ) + virtual/glut" +DEPEND="${RDEPEND}" + +S="${WORKDIR}" + +RESTRICT="binchecks" + +pkg_setup() { + if [ "$(gcc-major-version)" == "4" -a $(gcc-minor-version) -ge 4 ]; then + eerror "This package requires <=sys-devel/gcc-4.3 to build sucessfully." + eerror "Please use gcc-config to switch to a compatible GCC version." + die "<=sys-devel/gcc-4.3 required" + fi +} + +src_unpack() { + unpack_makeself +} + +src_compile() { + if ! use examples; then + return + fi + local myopts="" + + if use emulation; then + myopts="emu=1" + fi + + if use debug; then + myopts="${myopts} dbg=1" + fi + + cd "${S}/sdk" + + if use cuda; then + cd C + emake cuda-install=/opt/cuda ${myopts} || die + cd .. + fi + + if use opencl; then + cd OpenCL + emake || die + cd .. + fi +} + +src_install() { + cd "${S}/sdk" + + if ! use doc; then + rm -rf doc ReleaseNotes.htm releaseNotesData + fi + + if ! use examples; then + rm -rf bin tools + fi + + for f in $(find .); do + local t="$(dirname ${f})" + if [[ "${t/obj\/}" != "${t}" || "${t##*.}" == "a" ]]; then + continue + fi + + if [[ -x "${f}" && ! -d "${f}" ]]; then + exeinto "/opt/cuda/sdk/${t}" + doexe "${f}" + else + insinto "/opt/cuda/sdk/${t}" + doins "${f}" + fi + done +} |