1 |
spock 09/07/03 18:15:08 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: nvidia-cuda-sdk-2.2-r1.ebuild |
5 |
Log: |
6 |
New, more configurable ebuild. It is not possible not to install the code examples and documentation by disabling the 'examples' and 'doc' USE flags. |
7 |
(Portage version: 2.1.6.13/cvs/Linux x86_64, RepoMan options: --force) |
8 |
|
9 |
Revision Changes Path |
10 |
1.11 dev-util/nvidia-cuda-sdk/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog?rev=1.11&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog?rev=1.11&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog?r1=1.10&r2=1.11 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v |
19 |
retrieving revision 1.10 |
20 |
retrieving revision 1.11 |
21 |
diff -u -r1.10 -r1.11 |
22 |
--- ChangeLog 16 May 2009 19:55:19 -0000 1.10 |
23 |
+++ ChangeLog 3 Jul 2009 18:15:08 -0000 1.11 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for dev-util/nvidia-cuda-sdk |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v 1.10 2009/05/16 19:55:19 spock Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v 1.11 2009/07/03 18:15:08 spock Exp $ |
29 |
+ |
30 |
+*nvidia-cuda-sdk-2.2-r1 (03 Jul 2009) |
31 |
+ |
32 |
+ 03 Jul 2009; Michał Januszewski <spock@g.o> |
33 |
+ +nvidia-cuda-sdk-2.2-r1.ebuild: |
34 |
+ New, more configurable ebuild. It is not possible not to install the code |
35 |
+ examples and documentation by disabling the 'examples' and 'doc' USE |
36 |
+ flags. |
37 |
|
38 |
16 May 2009; Michał Januszewski <spock@g.o> |
39 |
nvidia-cuda-sdk-2.1.1215.2015.ebuild, nvidia-cuda-sdk-2.2.ebuild, |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.2-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.2-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.2-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: nvidia-cuda-sdk-2.2-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2009 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.2-r1.ebuild,v 1.1 2009/07/03 18:15:08 spock Exp $ |
53 |
|
54 |
EAPI=2 |
55 |
|
56 |
inherit eutils |
57 |
|
58 |
DESCRIPTION="NVIDIA CUDA Software Development Kit" |
59 |
HOMEPAGE="http://developer.nvidia.com/cuda" |
60 |
|
61 |
CUDA_V=${PV//./_} |
62 |
|
63 |
SRC_URI="http://developer.download.nvidia.com/compute/cuda/${CUDA_V}/sdk/cudasdk_${PV}_linux.run" |
64 |
LICENSE="CUDPP" |
65 |
SLOT="0" |
66 |
KEYWORDS="~amd64 ~x86" |
67 |
IUSE="debug +doc emulation +examples" |
68 |
|
69 |
RDEPEND=">=dev-util/nvidia-cuda-toolkit-2.2 |
70 |
examples? ( !emulation? ( >=x11-drivers/nvidia-drivers-180.22 ) ) |
71 |
virtual/glut" |
72 |
DEPEND="${RDEPEND}" |
73 |
|
74 |
S="${WORKDIR}" |
75 |
|
76 |
RESTRICT="binchecks" |
77 |
|
78 |
src_unpack() { |
79 |
unpack_makeself |
80 |
} |
81 |
|
82 |
src_prepare() { |
83 |
sed -i -e 's:CUDA_INSTALL_PATH ?= .*:CUDA_INSTALL_PATH ?= /opt/cuda:' sdk/common/common.mk |
84 |
} |
85 |
|
86 |
src_compile() { |
87 |
if ! use examples; then |
88 |
return |
89 |
fi |
90 |
local myopts="" |
91 |
|
92 |
if use emulation; then |
93 |
myopts="emu=1" |
94 |
fi |
95 |
|
96 |
if use debug; then |
97 |
myopts="${myopts} dbg=1" |
98 |
fi |
99 |
|
100 |
cd "${S}/sdk" |
101 |
emake cuda-install=/opt/cuda ${myopts} || die |
102 |
} |
103 |
|
104 |
src_install() { |
105 |
cd "${S}/sdk" |
106 |
|
107 |
if ! use doc; then |
108 |
rm -rf doc ReleaseNotes.htm releaseNotesData |
109 |
fi |
110 |
|
111 |
if ! use examples; then |
112 |
rm -rf projects bin tools |
113 |
fi |
114 |
|
115 |
for f in $(find .); do |
116 |
local t="$(dirname ${f})" |
117 |
if [[ "${t/obj\/}" != "${t}" || "${t##*.}" == "a" ]]; then |
118 |
continue |
119 |
fi |
120 |
|
121 |
if [[ -x "${f}" && ! -d "${f}" ]]; then |
122 |
exeinto "/opt/cuda/sdk/${t}" |
123 |
doexe "${f}" |
124 |
else |
125 |
insinto "/opt/cuda/sdk/${t}" |
126 |
doins "${f}" |
127 |
fi |
128 |
done |
129 |
} |