Gentoo Archives: gentoo-commits

From: "Michael Januszewski (spock)" <spock@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/nvidia-cuda-sdk: nvidia-cuda-sdk-3.2.ebuild ChangeLog
Date: Wed, 01 Dec 2010 22:00:47
Message-Id: 20101201220038.70EFA20054@flycatcher.gentoo.org
1 spock 10/12/01 22:00:38
2
3 Modified: ChangeLog
4 Added: nvidia-cuda-sdk-3.2.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.1.9.25/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.24 dev-util/nvidia-cuda-sdk/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog?rev=1.24&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog?rev=1.24&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog?r1=1.23&r2=1.24
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v
20 retrieving revision 1.23
21 retrieving revision 1.24
22 diff -u -r1.23 -r1.24
23 --- ChangeLog 28 Nov 2010 20:54:55 -0000 1.23
24 +++ ChangeLog 1 Dec 2010 22:00:38 -0000 1.24
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-util/nvidia-cuda-sdk
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v 1.23 2010/11/28 20:54:55 spock Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v 1.24 2010/12/01 22:00:38 spock Exp $
30 +
31 +*nvidia-cuda-sdk-3.2 (01 Dec 2010)
32 +
33 + 01 Dec 2010; Michał Januszewski <spock@g.o>
34 + +nvidia-cuda-sdk-3.2.ebuild:
35 + Version bump.
36
37 28 Nov 2010; Michał Januszewski <spock@g.o>
38 nvidia-cuda-sdk-3.1.ebuild:
39
40
41
42 1.1 dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: nvidia-cuda-sdk-3.2.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.2.ebuild,v 1.1 2010/12/01 22:00:38 spock Exp $
52
53 EAPI=2
54
55 inherit eutils toolchain-funcs
56
57 DESCRIPTION="NVIDIA CUDA Software Development Kit"
58 HOMEPAGE="http://developer.nvidia.com/cuda"
59
60 CUDA_V=${PV//_/-}
61 DIR_V=${CUDA_V//./_}
62 DIR_V=${DIR_V//beta/Beta}
63
64 SRC_URI="http://developer.download.nvidia.com/compute/cuda/${DIR_V}_prod/sdk/gpucomputingsdk_${CUDA_V}.16_linux.run"
65 LICENSE="CUDPP"
66 SLOT="0"
67 KEYWORDS="~amd64 ~x86"
68 IUSE="debug +doc +examples opencl +cuda"
69
70 RDEPEND=">=dev-util/nvidia-cuda-toolkit-3.2
71 examples? ( >=x11-drivers/nvidia-drivers-260.19.21 )
72 media-libs/freeglut"
73 DEPEND="${RDEPEND}"
74
75 S="${WORKDIR}"
76
77 RESTRICT="binchecks"
78
79 src_unpack() {
80 unpack_makeself
81 }
82
83 src_compile() {
84 if ! use examples; then
85 return
86 fi
87 local myopts=""
88
89 if use debug; then
90 myopts="${myopts} dbg=1"
91 fi
92
93 cd "${S}/sdk"
94
95 if use cuda; then
96 cd C
97 emake cuda-install=/opt/cuda ${myopts} || die
98 cd ..
99 fi
100
101 if use opencl; then
102 cd OpenCL
103 emake || die
104 cd ..
105 fi
106 }
107
108 src_install() {
109 cd "${S}/sdk"
110
111 if ! use doc; then
112 rm -rf *.txt doc */doc */Samples.htm */releaseNotesData
113 fi
114
115 if ! use examples; then
116 rm -rf bin */bin */tools
117 fi
118
119 for f in $(find .); do
120 local t="$(dirname ${f})"
121 if [[ "${t/obj\/}" != "${t}" || "${t##*.}" == "a" ]]; then
122 continue
123 fi
124
125 if [[ ! -d "${f}" ]]; then
126 if [[ -x "${f}" ]]; then
127 exeinto "/opt/cuda/sdk/${t}"
128 doexe "${f}"
129 else
130 insinto "/opt/cuda/sdk/${t}"
131 doins "${f}"
132 fi
133 fi
134 done
135 }