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