1 |
chainsaw 08/05/07 16:33:40 |
2 |
|
3 |
Modified: nvidia-drivers-100.14.23.ebuild ChangeLog |
4 |
nvidia-drivers-96.43.01.ebuild |
5 |
nvidia-drivers-96.43.05.ebuild |
6 |
nvidia-drivers-71.86.04.ebuild |
7 |
nvidia-drivers-100.14.09.ebuild |
8 |
nvidia-drivers-100.14.11.ebuild |
9 |
nvidia-drivers-100.14.19.ebuild |
10 |
nvidia-drivers-71.86.01.ebuild |
11 |
Added: nvidia-drivers-173.08.ebuild |
12 |
Log: |
13 |
Masked beta driver 173.08 with upstream patch from Zander ( http://www.nvnews.net/vbulletin/showpost.php?p=1648357&postcount=35 ) for >=2.6.26-rc1 compatibility. Dropped keywords as this has only been tested on 2.6.26-rc1-00166-gc0a1811 SMP x86_64 so far. Now installs module control file in modprobe.d where it belongs. Upstream advises to use PAT over MTRR. Some reports of low performance and 2D corruption, tread carefully. Quoted variables for greater repoman happiness. |
14 |
(Portage version: 2.1.5_rc7) |
15 |
|
16 |
Revision Changes Path |
17 |
1.4 x11-drivers/nvidia-drivers/nvidia-drivers-100.14.23.ebuild |
18 |
|
19 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.23.ebuild?rev=1.4&view=markup |
20 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.23.ebuild?rev=1.4&content-type=text/plain |
21 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.23.ebuild?r1=1.3&r2=1.4 |
22 |
|
23 |
Index: nvidia-drivers-100.14.23.ebuild |
24 |
=================================================================== |
25 |
RCS file: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.23.ebuild,v |
26 |
retrieving revision 1.3 |
27 |
retrieving revision 1.4 |
28 |
diff -u -r1.3 -r1.4 |
29 |
--- nvidia-drivers-100.14.23.ebuild 26 Dec 2007 19:47:24 -0000 1.3 |
30 |
+++ nvidia-drivers-100.14.23.ebuild 7 May 2008 16:33:40 -0000 1.4 |
31 |
@@ -1,6 +1,6 @@ |
32 |
-# Copyright 1999-2007 Gentoo Foundation |
33 |
+# Copyright 1999-2008 Gentoo Foundation |
34 |
# Distributed under the terms of the GNU General Public License v2 |
35 |
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.23.ebuild,v 1.3 2007/12/26 19:47:24 cardoe Exp $ |
36 |
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.23.ebuild,v 1.4 2008/05/07 16:33:40 chainsaw Exp $ |
37 |
|
38 |
inherit eutils multilib versionator linux-mod flag-o-matic nvidia-driver |
39 |
|
40 |
@@ -169,7 +169,7 @@ |
41 |
|
42 |
if ! use x86-fbsd; then |
43 |
cd "${WORKDIR}" |
44 |
- bash ${DISTDIR}/${NV_PACKAGE}${PKG_V}.run --extract-only |
45 |
+ bash "${DISTDIR}/${NV_PACKAGE}${PKG_V}.run" --extract-only |
46 |
else |
47 |
unpack ${A} |
48 |
fi |
49 |
@@ -411,9 +411,9 @@ |
50 |
|
51 |
if ! has_version x11-base/xorg-server ; then |
52 |
for dir in lib lib32 lib64 ; do |
53 |
- if [[ -d ${NV_D}/usr/${dir}/xorg ]] ; then |
54 |
- mv ${NV_D}/usr/${dir}/xorg/* ${NV_D}/usr/${dir} |
55 |
- rmdir ${NV_D}/usr/${dir}/xorg |
56 |
+ if [[ -d "${NV_D}/usr/${dir}/xorg" ]] ; then |
57 |
+ mv "${NV_D}/usr/${dir}"/xorg/* "${NV_D}/usr/${dir}" |
58 |
+ rmdir "${NV_D}/usr/${dir}/xorg" |
59 |
fi |
60 |
done |
61 |
fi |
62 |
|
63 |
|
64 |
|
65 |
1.94 x11-drivers/nvidia-drivers/ChangeLog |
66 |
|
67 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/ChangeLog?rev=1.94&view=markup |
68 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/ChangeLog?rev=1.94&content-type=text/plain |
69 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/ChangeLog?r1=1.93&r2=1.94 |
70 |
|
71 |
Index: ChangeLog |
72 |
=================================================================== |
73 |
RCS file: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/ChangeLog,v |
74 |
retrieving revision 1.93 |
75 |
retrieving revision 1.94 |
76 |
diff -u -r1.93 -r1.94 |
77 |
--- ChangeLog 18 Apr 2008 19:54:04 -0000 1.93 |
78 |
+++ ChangeLog 7 May 2008 16:33:40 -0000 1.94 |
79 |
@@ -1,6 +1,26 @@ |
80 |
# ChangeLog for x11-drivers/nvidia-drivers |
81 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
82 |
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/ChangeLog,v 1.93 2008/04/18 19:54:04 vapier Exp $ |
83 |
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/ChangeLog,v 1.94 2008/05/07 16:33:40 chainsaw Exp $ |
84 |
+ |
85 |
+ 07 May 2008; <chainsaw@g.o> |
86 |
+ +files/NVIDIA_kernel-173.08-2404825.diff, nvidia-drivers-71.86.01.ebuild, |
87 |
+ nvidia-drivers-71.86.04.ebuild, nvidia-drivers-96.43.01.ebuild, |
88 |
+ nvidia-drivers-96.43.05.ebuild, nvidia-drivers-100.14.09.ebuild, |
89 |
+ nvidia-drivers-100.14.11.ebuild, nvidia-drivers-100.14.19.ebuild, |
90 |
+ nvidia-drivers-100.14.23.ebuild, +nvidia-drivers-173.08.ebuild: |
91 |
+ Quote variables where appropriate. |
92 |
+ |
93 |
+*nvidia-drivers-173.08 (07 May 2008) |
94 |
+ |
95 |
+ 07 May 2008; <chainsaw@g.o> |
96 |
+ +files/NVIDIA_kernel-173.08-2404825.diff, +nvidia-drivers-173.08.ebuild: |
97 |
+ Masked beta driver 173.08 with upstream patch from Zander ( |
98 |
+ http://www.nvnews.net/vbulletin/showpost.php?p=1648357&postcount=35 ) for |
99 |
+ >=2.6.26-rc1 compatibility. Dropped keywords as this has only been tested |
100 |
+ on 2.6.26-rc1-00166-gc0a1811 SMP x86_64 so far. Now installs module |
101 |
+ control file in modprobe.d where it belongs. Upstream advises to use PAT |
102 |
+ over MTRR. Some reports of low performance and 2D corruption, tread |
103 |
+ carefully. |
104 |
|
105 |
18 Apr 2008; Mike Frysinger <vapier@g.o> |
106 |
+files/NVIDIA_kernel-96.43.05-2290218.diff, |
107 |
|
108 |
|
109 |
|
110 |
1.6 x11-drivers/nvidia-drivers/nvidia-drivers-96.43.01.ebuild |
111 |
|
112 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-96.43.01.ebuild?rev=1.6&view=markup |
113 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-96.43.01.ebuild?rev=1.6&content-type=text/plain |
114 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-96.43.01.ebuild?r1=1.5&r2=1.6 |
115 |
|
116 |
Index: nvidia-drivers-96.43.01.ebuild |
117 |
=================================================================== |
118 |
RCS file: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-96.43.01.ebuild,v |
119 |
retrieving revision 1.5 |
120 |
retrieving revision 1.6 |
121 |
diff -u -r1.5 -r1.6 |
122 |
--- nvidia-drivers-96.43.01.ebuild 14 Nov 2007 15:03:59 -0000 1.5 |
123 |
+++ nvidia-drivers-96.43.01.ebuild 7 May 2008 16:33:40 -0000 1.6 |
124 |
@@ -1,6 +1,6 @@ |
125 |
-# Copyright 1999-2007 Gentoo Foundation |
126 |
+# Copyright 1999-2008 Gentoo Foundation |
127 |
# Distributed under the terms of the GNU General Public License v2 |
128 |
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-96.43.01.ebuild,v 1.5 2007/11/14 15:03:59 beandog Exp $ |
129 |
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-96.43.01.ebuild,v 1.6 2008/05/07 16:33:40 chainsaw Exp $ |
130 |
|
131 |
inherit eutils multilib versionator linux-mod flag-o-matic nvidia-driver |
132 |
|
133 |
@@ -169,7 +169,7 @@ |
134 |
|
135 |
if ! use x86-fbsd; then |
136 |
cd "${WORKDIR}" |
137 |
- bash ${DISTDIR}/${NV_PACKAGE}${PKG_V}.run --extract-only |
138 |
+ bash "${DISTDIR}/${NV_PACKAGE}${PKG_V}.run" --extract-only |
139 |
else |
140 |
unpack ${A} |
141 |
fi |
142 |
@@ -405,9 +405,9 @@ |
143 |
|
144 |
if ! has_version x11-base/xorg-server ; then |
145 |
for dir in lib lib32 lib64 ; do |
146 |
- if [[ -d ${NV_D}/usr/${dir}/xorg ]] ; then |
147 |
- mv ${NV_D}/usr/${dir}/xorg/* ${NV_D}/usr/${dir} |
148 |
- rmdir ${NV_D}/usr/${dir}/xorg |
149 |
+ if [[ -d "${NV_D}/usr/${dir}/xorg" ]] ; then |
150 |
+ mv "${NV_D}/usr/${dir}"/xorg/* "${NV_D}/usr/${dir}" |
151 |
+ rmdir "${NV_D}/usr/${dir}/xorg" |
152 |
fi |
153 |
done |
154 |
fi |
155 |
|
156 |
|
157 |
|
158 |
1.4 x11-drivers/nvidia-drivers/nvidia-drivers-96.43.05.ebuild |
159 |
|
160 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-96.43.05.ebuild?rev=1.4&view=markup |
161 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-96.43.05.ebuild?rev=1.4&content-type=text/plain |
162 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-96.43.05.ebuild?r1=1.3&r2=1.4 |
163 |
|
164 |
Index: nvidia-drivers-96.43.05.ebuild |
165 |
=================================================================== |
166 |
RCS file: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-96.43.05.ebuild,v |
167 |
retrieving revision 1.3 |
168 |
retrieving revision 1.4 |
169 |
diff -u -r1.3 -r1.4 |
170 |
--- nvidia-drivers-96.43.05.ebuild 18 Apr 2008 19:54:04 -0000 1.3 |
171 |
+++ nvidia-drivers-96.43.05.ebuild 7 May 2008 16:33:40 -0000 1.4 |
172 |
@@ -1,6 +1,6 @@ |
173 |
# Copyright 1999-2008 Gentoo Foundation |
174 |
# Distributed under the terms of the GNU General Public License v2 |
175 |
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-96.43.05.ebuild,v 1.3 2008/04/18 19:54:04 vapier Exp $ |
176 |
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-96.43.05.ebuild,v 1.4 2008/05/07 16:33:40 chainsaw Exp $ |
177 |
|
178 |
inherit eutils multilib versionator linux-mod flag-o-matic nvidia-driver |
179 |
|
180 |
@@ -168,7 +168,7 @@ |
181 |
|
182 |
if ! use x86-fbsd; then |
183 |
cd "${WORKDIR}" |
184 |
- bash ${DISTDIR}/${NV_PACKAGE}${PKG_V}.run --extract-only |
185 |
+ bash "${DISTDIR}/${NV_PACKAGE}${PKG_V}.run" --extract-only |
186 |
else |
187 |
unpack ${A} |
188 |
fi |
189 |
@@ -405,9 +405,9 @@ |
190 |
|
191 |
if ! has_version x11-base/xorg-server ; then |
192 |
for dir in lib lib32 lib64 ; do |
193 |
- if [[ -d ${NV_D}/usr/${dir}/xorg ]] ; then |
194 |
- mv ${NV_D}/usr/${dir}/xorg/* ${NV_D}/usr/${dir} |
195 |
- rmdir ${NV_D}/usr/${dir}/xorg |
196 |
+ if [[ -d "${NV_D}/usr/${dir}/xorg" ]] ; then |
197 |
+ mv "${NV_D}/usr/${dir}"/xorg/* "${NV_D}/usr/${dir}" |
198 |
+ rmdir "${NV_D}/usr/${dir}/xorg" |
199 |
fi |
200 |
done |
201 |
fi |
202 |
|
203 |
|
204 |
|
205 |
1.2 x11-drivers/nvidia-drivers/nvidia-drivers-71.86.04.ebuild |
206 |
|
207 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-71.86.04.ebuild?rev=1.2&view=markup |
208 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-71.86.04.ebuild?rev=1.2&content-type=text/plain |
209 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-71.86.04.ebuild?r1=1.1&r2=1.2 |
210 |
|
211 |
Index: nvidia-drivers-71.86.04.ebuild |
212 |
=================================================================== |
213 |
RCS file: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-71.86.04.ebuild,v |
214 |
retrieving revision 1.1 |
215 |
retrieving revision 1.2 |
216 |
diff -u -r1.1 -r1.2 |
217 |
--- nvidia-drivers-71.86.04.ebuild 4 Feb 2008 17:52:58 -0000 1.1 |
218 |
+++ nvidia-drivers-71.86.04.ebuild 7 May 2008 16:33:40 -0000 1.2 |
219 |
@@ -1,6 +1,6 @@ |
220 |
# Copyright 1999-2008 Gentoo Foundation |
221 |
# Distributed under the terms of the GNU General Public License v2 |
222 |
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-71.86.04.ebuild,v 1.1 2008/02/04 17:52:58 cardoe Exp $ |
223 |
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-71.86.04.ebuild,v 1.2 2008/05/07 16:33:40 chainsaw Exp $ |
224 |
|
225 |
inherit eutils multilib versionator linux-mod flag-o-matic nvidia-driver |
226 |
|
227 |
@@ -168,7 +168,7 @@ |
228 |
|
229 |
if ! use x86-fbsd; then |
230 |
cd "${WORKDIR}" |
231 |
- bash ${DISTDIR}/${NV_PACKAGE}${PKG_V}.run --extract-only |
232 |
+ bash "${DISTDIR}/${NV_PACKAGE}${PKG_V}.run" --extract-only |
233 |
else |
234 |
unpack ${A} |
235 |
fi |
236 |
@@ -396,9 +396,9 @@ |
237 |
|
238 |
if ! has_version x11-base/xorg-server ; then |
239 |
for dir in lib lib32 lib64 ; do |
240 |
- if [[ -d ${NV_D}/usr/${dir}/xorg ]] ; then |
241 |
- mv ${NV_D}/usr/${dir}/xorg/* ${NV_D}/usr/${dir} |
242 |
- rmdir ${NV_D}/usr/${dir}/xorg |
243 |
+ if [[ -d "${NV_D}/usr/${dir}/xorg" ]] ; then |
244 |
+ mv "${NV_D}/usr/${dir}"/xorg/* "${NV_D}/usr/${dir}" |
245 |
+ rmdir "${NV_D}/usr/${dir}/xorg" |
246 |
fi |
247 |
done |
248 |
fi |
249 |
|
250 |
|
251 |
|
252 |
1.12 x11-drivers/nvidia-drivers/nvidia-drivers-100.14.09.ebuild |
253 |
|
254 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.09.ebuild?rev=1.12&view=markup |
255 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.09.ebuild?rev=1.12&content-type=text/plain |
256 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.09.ebuild?r1=1.11&r2=1.12 |
257 |
|
258 |
Index: nvidia-drivers-100.14.09.ebuild |
259 |
=================================================================== |
260 |
RCS file: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.09.ebuild,v |
261 |
retrieving revision 1.11 |
262 |
retrieving revision 1.12 |
263 |
diff -u -r1.11 -r1.12 |
264 |
--- nvidia-drivers-100.14.09.ebuild 7 Oct 2007 15:38:58 -0000 1.11 |
265 |
+++ nvidia-drivers-100.14.09.ebuild 7 May 2008 16:33:40 -0000 1.12 |
266 |
@@ -1,6 +1,6 @@ |
267 |
-# Copyright 1999-2007 Gentoo Foundation |
268 |
+# Copyright 1999-2008 Gentoo Foundation |
269 |
# Distributed under the terms of the GNU General Public License v2 |
270 |
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.09.ebuild,v 1.11 2007/10/07 15:38:58 cardoe Exp $ |
271 |
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.09.ebuild,v 1.12 2008/05/07 16:33:40 chainsaw Exp $ |
272 |
|
273 |
inherit eutils multilib versionator linux-mod flag-o-matic nvidia-driver |
274 |
|
275 |
@@ -169,7 +169,7 @@ |
276 |
|
277 |
if ! use x86-fbsd; then |
278 |
cd "${WORKDIR}" |
279 |
- bash ${DISTDIR}/${NV_PACKAGE}${PKG_V}.run --extract-only |
280 |
+ bash "${DISTDIR}/${NV_PACKAGE}${PKG_V}.run" --extract-only |
281 |
else |
282 |
unpack ${A} |
283 |
fi |
284 |
@@ -405,9 +405,9 @@ |
285 |
|
286 |
if ! has_version x11-base/xorg-server ; then |
287 |
for dir in lib lib32 lib64 ; do |
288 |
- if [[ -d ${NV_D}/usr/${dir}/xorg ]] ; then |
289 |
- mv ${NV_D}/usr/${dir}/xorg/* ${NV_D}/usr/${dir} |
290 |
- rmdir ${NV_D}/usr/${dir}/xorg |
291 |
+ if [[ -d "${NV_D}/usr/${dir}/xorg" ]] ; then |
292 |
+ mv "${NV_D}/usr/${dir}"/xorg/* "${NV_D}/usr/${dir}" |
293 |
+ rmdir "${NV_D}/usr/${dir}/xorg" |
294 |
fi |
295 |
done |
296 |
fi |
297 |
|
298 |
|
299 |
|
300 |
1.13 x11-drivers/nvidia-drivers/nvidia-drivers-100.14.11.ebuild |
301 |
|
302 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.11.ebuild?rev=1.13&view=markup |
303 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.11.ebuild?rev=1.13&content-type=text/plain |
304 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.11.ebuild?r1=1.12&r2=1.13 |
305 |
|
306 |
Index: nvidia-drivers-100.14.11.ebuild |
307 |
=================================================================== |
308 |
RCS file: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.11.ebuild,v |
309 |
retrieving revision 1.12 |
310 |
retrieving revision 1.13 |
311 |
diff -u -r1.12 -r1.13 |
312 |
--- nvidia-drivers-100.14.11.ebuild 7 Oct 2007 15:38:58 -0000 1.12 |
313 |
+++ nvidia-drivers-100.14.11.ebuild 7 May 2008 16:33:40 -0000 1.13 |
314 |
@@ -1,6 +1,6 @@ |
315 |
-# Copyright 1999-2007 Gentoo Foundation |
316 |
+# Copyright 1999-2008 Gentoo Foundation |
317 |
# Distributed under the terms of the GNU General Public License v2 |
318 |
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.11.ebuild,v 1.12 2007/10/07 15:38:58 cardoe Exp $ |
319 |
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.11.ebuild,v 1.13 2008/05/07 16:33:40 chainsaw Exp $ |
320 |
|
321 |
inherit eutils multilib versionator linux-mod flag-o-matic nvidia-driver |
322 |
|
323 |
@@ -169,7 +169,7 @@ |
324 |
|
325 |
if ! use x86-fbsd; then |
326 |
cd "${WORKDIR}" |
327 |
- bash ${DISTDIR}/${NV_PACKAGE}${PKG_V}.run --extract-only |
328 |
+ bash "${DISTDIR}/${NV_PACKAGE}${PKG_V}.run" --extract-only |
329 |
else |
330 |
unpack ${A} |
331 |
fi |
332 |
@@ -405,9 +405,9 @@ |
333 |
|
334 |
if ! has_version x11-base/xorg-server ; then |
335 |
for dir in lib lib32 lib64 ; do |
336 |
- if [[ -d ${NV_D}/usr/${dir}/xorg ]] ; then |
337 |
- mv ${NV_D}/usr/${dir}/xorg/* ${NV_D}/usr/${dir} |
338 |
- rmdir ${NV_D}/usr/${dir}/xorg |
339 |
+ if [[ -d "${NV_D}/usr/${dir}/xorg" ]] ; then |
340 |
+ mv "${NV_D}/usr/${dir}"/xorg/* "${NV_D}/usr/${dir}" |
341 |
+ rmdir "${NV_D}/usr/${dir}/xorg" |
342 |
fi |
343 |
done |
344 |
fi |
345 |
|
346 |
|
347 |
|
348 |
1.12 x11-drivers/nvidia-drivers/nvidia-drivers-100.14.19.ebuild |
349 |
|
350 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.19.ebuild?rev=1.12&view=markup |
351 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.19.ebuild?rev=1.12&content-type=text/plain |
352 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.19.ebuild?r1=1.11&r2=1.12 |
353 |
|
354 |
Index: nvidia-drivers-100.14.19.ebuild |
355 |
=================================================================== |
356 |
RCS file: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.19.ebuild,v |
357 |
retrieving revision 1.11 |
358 |
retrieving revision 1.12 |
359 |
diff -u -r1.11 -r1.12 |
360 |
--- nvidia-drivers-100.14.19.ebuild 27 Dec 2007 19:43:03 -0000 1.11 |
361 |
+++ nvidia-drivers-100.14.19.ebuild 7 May 2008 16:33:40 -0000 1.12 |
362 |
@@ -1,6 +1,6 @@ |
363 |
-# Copyright 1999-2007 Gentoo Foundation |
364 |
+# Copyright 1999-2008 Gentoo Foundation |
365 |
# Distributed under the terms of the GNU General Public License v2 |
366 |
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.19.ebuild,v 1.11 2007/12/27 19:43:03 cardoe Exp $ |
367 |
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.19.ebuild,v 1.12 2008/05/07 16:33:40 chainsaw Exp $ |
368 |
|
369 |
inherit eutils multilib versionator linux-mod flag-o-matic nvidia-driver |
370 |
|
371 |
@@ -169,7 +169,7 @@ |
372 |
|
373 |
if ! use x86-fbsd; then |
374 |
cd "${WORKDIR}" |
375 |
- bash ${DISTDIR}/${NV_PACKAGE}${PKG_V}.run --extract-only |
376 |
+ bash "${DISTDIR}/${NV_PACKAGE}${PKG_V}.run" --extract-only |
377 |
else |
378 |
unpack ${A} |
379 |
fi |
380 |
@@ -411,9 +411,9 @@ |
381 |
|
382 |
if ! has_version x11-base/xorg-server ; then |
383 |
for dir in lib lib32 lib64 ; do |
384 |
- if [[ -d ${NV_D}/usr/${dir}/xorg ]] ; then |
385 |
- mv ${NV_D}/usr/${dir}/xorg/* ${NV_D}/usr/${dir} |
386 |
- rmdir ${NV_D}/usr/${dir}/xorg |
387 |
+ if [[ -d "${NV_D}/usr/${dir}/xorg" ]] ; then |
388 |
+ mv "${NV_D}/usr/${dir}"/xorg/* "${NV_D}/usr/${dir}" |
389 |
+ rmdir "${NV_D}/usr/${dir}/xorg" |
390 |
fi |
391 |
done |
392 |
fi |
393 |
|
394 |
|
395 |
|
396 |
1.6 x11-drivers/nvidia-drivers/nvidia-drivers-71.86.01.ebuild |
397 |
|
398 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-71.86.01.ebuild?rev=1.6&view=markup |
399 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-71.86.01.ebuild?rev=1.6&content-type=text/plain |
400 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-71.86.01.ebuild?r1=1.5&r2=1.6 |
401 |
|
402 |
Index: nvidia-drivers-71.86.01.ebuild |
403 |
=================================================================== |
404 |
RCS file: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-71.86.01.ebuild,v |
405 |
retrieving revision 1.5 |
406 |
retrieving revision 1.6 |
407 |
diff -u -r1.5 -r1.6 |
408 |
--- nvidia-drivers-71.86.01.ebuild 20 Nov 2007 12:05:02 -0000 1.5 |
409 |
+++ nvidia-drivers-71.86.01.ebuild 7 May 2008 16:33:40 -0000 1.6 |
410 |
@@ -1,6 +1,6 @@ |
411 |
-# Copyright 1999-2007 Gentoo Foundation |
412 |
+# Copyright 1999-2008 Gentoo Foundation |
413 |
# Distributed under the terms of the GNU General Public License v2 |
414 |
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-71.86.01.ebuild,v 1.5 2007/11/20 12:05:02 opfer Exp $ |
415 |
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-71.86.01.ebuild,v 1.6 2008/05/07 16:33:40 chainsaw Exp $ |
416 |
|
417 |
inherit eutils multilib versionator linux-mod flag-o-matic nvidia-driver |
418 |
|
419 |
@@ -169,7 +169,7 @@ |
420 |
|
421 |
if ! use x86-fbsd; then |
422 |
cd "${WORKDIR}" |
423 |
- bash ${DISTDIR}/${NV_PACKAGE}${PKG_V}.run --extract-only |
424 |
+ bash "${DISTDIR}/${NV_PACKAGE}${PKG_V}.run" --extract-only |
425 |
else |
426 |
unpack ${A} |
427 |
fi |
428 |
@@ -397,9 +397,9 @@ |
429 |
|
430 |
if ! has_version x11-base/xorg-server ; then |
431 |
for dir in lib lib32 lib64 ; do |
432 |
- if [[ -d ${NV_D}/usr/${dir}/xorg ]] ; then |
433 |
- mv ${NV_D}/usr/${dir}/xorg/* ${NV_D}/usr/${dir} |
434 |
- rmdir ${NV_D}/usr/${dir}/xorg |
435 |
+ if [[ -d "${NV_D}/usr/${dir}/xorg" ]] ; then |
436 |
+ mv "${NV_D}/usr/${dir}"/xorg/* "${NV_D}/usr/${dir}" |
437 |
+ rmdir "${NV_D}/usr/${dir}/xorg" |
438 |
fi |
439 |
done |
440 |
fi |
441 |
|
442 |
|
443 |
|
444 |
1.1 x11-drivers/nvidia-drivers/nvidia-drivers-173.08.ebuild |
445 |
|
446 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-173.08.ebuild?rev=1.1&view=markup |
447 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-173.08.ebuild?rev=1.1&content-type=text/plain |
448 |
|
449 |
Index: nvidia-drivers-173.08.ebuild |
450 |
=================================================================== |
451 |
# Copyright 1999-2008 Gentoo Foundation |
452 |
# Distributed under the terms of the GNU General Public License v2 |
453 |
# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-173.08.ebuild,v 1.1 2008/05/07 16:33:40 chainsaw Exp $ |
454 |
|
455 |
inherit eutils multilib versionator linux-mod flag-o-matic nvidia-driver |
456 |
|
457 |
X86_NV_PACKAGE="NVIDIA-Linux-x86-${PV}" |
458 |
AMD64_NV_PACKAGE="NVIDIA-Linux-x86_64-${PV}" |
459 |
X86_FBSD_NV_PACKAGE="NVIDIA-FreeBSD-x86-${PV}" |
460 |
|
461 |
DESCRIPTION="NVIDIA X11 driver and GLX libraries" |
462 |
HOMEPAGE="http://www.nvidia.com/" |
463 |
SRC_URI="x86? ( http://us.download.nvidia.com/XFree86/Linux-x86/${PV}/${X86_NV_PACKAGE}-pkg0.run ) |
464 |
amd64? ( http://us.download.nvidia.com/XFree86/Linux-x86_64/${PV}/${AMD64_NV_PACKAGE}-pkg2.run ) |
465 |
x86-fbsd? ( http://us.download.nvidia.com/freebsd/${PV}/${X86_FBSD_NV_PACKAGE}.tar.gz )" |
466 |
|
467 |
LICENSE="NVIDIA" |
468 |
SLOT="0" |
469 |
KEYWORDS="-* ~amd64" |
470 |
IUSE="acpi custom-cflags gtk multilib kernel_linux" |
471 |
RESTRICT="strip" |
472 |
EMULTILIB_PKG="true" |
473 |
|
474 |
COMMON="x11-base/xorg-server |
475 |
multilib? ( app-emulation/emul-linux-x86-xlibs ) |
476 |
kernel_FreeBSD? ( !media-video/nvidia-freebsd ) |
477 |
!app-emulation/emul-linux-x86-nvidia |
478 |
!x11-drivers/nvidia-legacy-drivers" |
479 |
DEPEND="${COMMON} |
480 |
kernel_linux? ( virtual/linux-sources ) |
481 |
app-admin/eselect-opengl" |
482 |
RDEPEND="${COMMON} |
483 |
kernel_linux? ( virtual/modutils ) |
484 |
media-libs/mesa |
485 |
acpi? ( sys-power/acpid )" |
486 |
PDEPEND="gtk? ( media-video/nvidia-settings )" |
487 |
|
488 |
QA_TEXTRELS_x86="usr/lib/libXvMCNVIDIA.so.${PV} |
489 |
usr/lib/opengl/nvidia/no-tls/libnvidia-tls.so.${PV} |
490 |
usr/lib/opengl/nvidia/tls/libnvidia-tls.so.${PV} |
491 |
usr/lib/opengl/nvidia/lib/libGL.so.${PV} |
492 |
usr/lib/opengl/nvidia/lib/libnvidia-cfg.so.${PV} |
493 |
usr/lib/opengl/nvidia/lib/libGLcore.so.${PV} |
494 |
usr/lib/opengl/nvidia/extensions/libglx.so |
495 |
usr/lib/xorg/modules/drivers/nvidia_drv.so |
496 |
usr/lib/libcuda.so.${PV}" |
497 |
|
498 |
QA_TEXTRELS_x86_fbsd="boot/modules/nvidia.ko |
499 |
usr/lib/opengl/nvidia/lib/libGL.so.1 |
500 |
usr/lib/opengl/nvidia/lib/libGLcore.so.1 |
501 |
usr/lib/opengl/nvidia/lib/libnvidia-cfg.so.1 |
502 |
usr/lib/opengl/nvidia/no-tls/libnvidia-tls.so.1 |
503 |
usr/lib/opengl/nvidia/extensions/libglx.so |
504 |
usr/lib/xorg/modules/drivers/nvidia_drv.so" |
505 |
|
506 |
QA_TEXTRELS_amd64="usr/lib32/opengl/nvidia/tls/libnvidia-tls.so.${PV} |
507 |
usr/lib32/opengl/nvidia/no-tls/libnvidia-tls.so.${PV} |
508 |
usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV} |
509 |
usr/lib32/opengl/nvidia/lib/libGL.so.${PV} |
510 |
usr/lib32/opengl/nvidia/lib/libnvidia-cfg.so.${PV} |
511 |
usr/lib32/libcuda.so.${PV}" |
512 |
|
513 |
QA_EXECSTACK_x86="usr/lib/opengl/nvidia/lib/libGL.so.${PV} |
514 |
usr/lib/opengl/nvidia/lib/libGLcore.so.${PV} |
515 |
usr/lib/opengl/nvidia/extensions/libglx.so" |
516 |
|
517 |
QA_EXECSTACK_amd64="usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV} |
518 |
usr/lib32/opengl/nvidia/lib/libGL.so.${PV} |
519 |
usr/lib64/xorg/modules/drivers/nvidia_drv.so |
520 |
usr/lib64/libXvMCNVIDIA.so.${PV} |
521 |
usr/lib64/opengl/nvidia/tls/libnvidia-tls.so.${PV} |
522 |
usr/lib64/opengl/nvidia/no-tls/libnvidia-tls.so.${PV} |
523 |
usr/lib64/opengl/nvidia/lib/libGLcore.so.${PV} |
524 |
usr/lib64/opengl/nvidia/lib/libGL.so.${PV} |
525 |
usr/lib64/opengl/nvidia/lib/libnvidia-cfg.so.${PV} |
526 |
usr/lib64/opengl/nvidia/extensions/libglx.so |
527 |
usr/bin/nvidia-xconfig" |
528 |
|
529 |
QA_WX_LOAD_x86="usr/lib/opengl/nvidia/lib/libGLcore.so.${PV} |
530 |
usr/lib/opengl/nvidia/lib/libGL.so.${PV} |
531 |
usr/lib/opengl/nvidia/extensions/libglx.so" |
532 |
|
533 |
QA_WX_LOAD_amd64="usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV} |
534 |
usr/lib32/opengl/nvidia/lib/libGL.so.${PV} |
535 |
usr/lib64/opengl/nvidia/lib/libGLcore.so.${PV} |
536 |
usr/lib64/opengl/nvidia/lib/libGL.so.${PV} |
537 |
usr/lib64/opengl/nvidia/extensions/libglx.so" |
538 |
|
539 |
if use x86; then |
540 |
PKG_V="-pkg0" |
541 |
NV_PACKAGE="${X86_NV_PACKAGE}" |
542 |
elif use amd64; then |
543 |
PKG_V="-pkg2" |
544 |
NV_PACKAGE="${AMD64_NV_PACKAGE}" |
545 |
elif use x86-fbsd; then |
546 |
PKG_V="" |
547 |
NV_PACKAGE="${X86_FBSD_NV_PACKAGE}" |
548 |
fi |
549 |
|
550 |
S="${WORKDIR}/${NV_PACKAGE}${PKG_V}" |
551 |
|
552 |
mtrr_check() { |
553 |
ebegin "Checking for MTRR support" |
554 |
linux_chkconfig_present MTRR |
555 |
eend $? |
556 |
|
557 |
if [[ $? -ne 0 ]] ; then |
558 |
eerror "Please enable MTRR support in your kernel config, found at:" |
559 |
eerror |
560 |
eerror " Processor type and features" |
561 |
eerror " [*] MTRR (Memory Type Range Register) support" |
562 |
eerror |
563 |
eerror "and recompile your kernel ..." |
564 |
die "MTRR support not detected!" |
565 |
fi |
566 |
} |
567 |
|
568 |
paravirt_check() { |
569 |
ebegin "Checking for Paravirtualized guest support" |
570 |
linux_chkconfig_present PARAVIRT |
571 |
|
572 |
if [[ $? -eq 0 ]]; then |
573 |
eerror "Please disable PARAVIRT in your kernel config, found at:" |
574 |
eerror |
575 |
eerror " Processor type and features" |
576 |
eerror " [*] Paravirtualized guest support" |
577 |
eerror |
578 |
eerror "or XEN support" |
579 |
eerror |
580 |
eerror "and recompile your kernel .." |
581 |
die "PARAVIRT support detected!" |
582 |
fi |
583 |
} |
584 |
|
585 |
pkg_setup() { |
586 |
# try to turn off distcc and ccache for people that have a problem with it |
587 |
export DISTCC_DISABLE=1 |
588 |
export CCACHE_DISABLE=1 |
589 |
|
590 |
if use amd64 && has_multilib_profile && [ "${DEFAULT_ABI}" != "amd64" ]; then |
591 |
eerror "This ebuild doesn't currently support changing your default abi." |
592 |
die "Unexpected \${DEFAULT_ABI} = ${DEFAULT_ABI}" |
593 |
fi |
594 |
|
595 |
if use kernel_linux; then |
596 |
linux-mod_pkg_setup |
597 |
MODULE_NAMES="nvidia(video:${S}/usr/src/nv)" |
598 |
BUILD_PARAMS="IGNORE_CC_MISMATCH=yes V=1 SYSSRC=${KV_DIR} \ |
599 |
SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC)" |
600 |
mtrr_check |
601 |
paravirt_check |
602 |
fi |
603 |
|
604 |
# On BSD userland it wants real make command |
605 |
use userland_BSD && MAKE="$(get_bmake)" |
606 |
|
607 |
export _POSIX2_VERSION="199209" |
608 |
|
609 |
# Since Nvidia ships 3 different series of drivers, we need to give the user |
610 |
# some kind of guidance as to what version they should install. This tries |
611 |
# to point the user in the right direction but can't be perfect. check |
612 |
# nvidia-driver.eclass |
613 |
nvidia-driver-check-warning |
614 |
|
615 |
# set variables to where files are in the package structure |
616 |
if use kernel_FreeBSD; then |
617 |
NV_DOC="${S}/doc" |
618 |
NV_EXEC="${S}/obj" |
619 |
NV_SRC="${S}/src" |
620 |
elif use kernel_linux; then |
621 |
NV_DOC="${S}/usr/share/doc" |
622 |
NV_EXEC="${S}/usr/bin" |
623 |
NV_SRC="${S}/usr/src/nv" |
624 |
else |
625 |
die "Could not determine proper NVIDIA package" |
626 |
fi |
627 |
} |
628 |
|
629 |
src_unpack() { |
630 |
if use kernel_linux && kernel_is lt 2 6 7; then |
631 |
echo |
632 |
ewarn "Your kernel version is ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}" |
633 |
ewarn "This is not officially supported for ${P}. It is likely you" |
634 |
ewarn "will not be able to compile or use the kernel module." |
635 |
ewarn "It is recommended that you upgrade your kernel to a version >= 2.6.7" |
636 |
echo |
637 |
ewarn "DO NOT file bug reports for kernel versions less than 2.6.7 as they will be ignored." |
638 |
fi |
639 |
|
640 |
if ! use x86-fbsd; then |
641 |
cd "${WORKDIR}" |
642 |
bash "${DISTDIR}"/${NV_PACKAGE}${PKG_V}.run --extract-only |
643 |
else |
644 |
unpack ${A} |
645 |
fi |
646 |
|
647 |
# Patches go below here, add brief description |
648 |
cd "${S}" |
649 |
use x86-fbsd && cd doc |
650 |
|
651 |
# Use the correct defines to make gtkglext build work |
652 |
epatch "${FILESDIR}"/NVIDIA_glx-defines.patch |
653 |
# Use some more sensible gl headers and make way for new glext.h |
654 |
epatch "${FILESDIR}"/NVIDIA_glx-glheader.patch |
655 |
|
656 |
# allow on board sensors to work with lm_sensors |
657 |
if use kernel_linux; then |
658 |
epatch "${FILESDIR}"/NVIDIA_i2c-hwmon.patch |
659 |
|
660 |
kernel_is ge 2 6 26 && epatch "${FILESDIR}"/NVIDIA_kernel-173.08-2404825.diff |
661 |
fi |
662 |
|
663 |
if use kernel_linux; then |
664 |
# Quiet down warnings the user does not need to see |
665 |
sed -i \ |
666 |
-e 's:-Wpointer-arith::g' \ |
667 |
-e 's:-Wsign-compare::g' \ |
668 |
"${NV_SRC}"/Makefile.kbuild |
669 |
|
670 |
# If you set this then it's your own fault when stuff breaks :) |
671 |
use custom-cflags && sed -i "s:-O:${CFLAGS}:" Makefile.* |
672 |
|
673 |
# If greater than 2.6.5 use M= instead of SUBDIR= |
674 |
convert_to_m "${NV_SRC}"/Makefile.kbuild |
675 |
fi |
676 |
} |
677 |
|
678 |
src_compile() { |
679 |
# This is already the default on Linux, as there's no toplevel Makefile, but |
680 |
# on FreeBSD there's one and triggers the kernel module build, as we install |
681 |
# it by itself, pass this. |
682 |
|
683 |
cd "${NV_SRC}" |
684 |
if use x86-fbsd; then |
685 |
MAKE="$(get_bmake)" CFLAGS="-Wno-sign-compare" emake CC="$(tc-getCC)" \ |
686 |
LD="$(tc-getLD)" LDFLAGS="$(raw-ldflags)" || die |
687 |
elif use kernel_linux; then |
688 |
linux-mod_src_compile |
689 |
fi |
690 |
} |
691 |
|
692 |
src_install() { |
693 |
local MLTEST=$(type dyn_unpack) |
694 |
|
695 |
cd "${S}" |
696 |
|
697 |
if use kernel_linux; then |
698 |
linux-mod_src_install |
699 |
|
700 |
VIDEOGROUP="$(egetent group video | cut -d ':' -f 3)" |
701 |
if [ -z "$VIDEOGROUP" ]; then |
702 |
eerror "Failed to determine the video group gid." |
703 |
die "Failed to determine the video group gid." |
704 |
fi |
705 |
|
706 |
# Add the aliases |
707 |
[ -f "${FILESDIR}/nvidia" ] || die "nvidia missing in FILESDIR" |
708 |
sed -e 's:PACKAGE:'${PF}':g' \ |
709 |
-e 's:VIDEOGID:'${VIDEOGROUP}':' "${FILESDIR}"/nvidia-169.07 > \ |
710 |
"${WORKDIR}"/nvidia |
711 |
insinto /etc/modprobe.d |
712 |
doins "${WORKDIR}"/nvidia || die |
713 |
elif use x86-fbsd; then |
714 |
insinto /boot/modules |
715 |
doins "${WORKDIR}/${NV_PACKAGE}/src/nvidia.kld" || die |
716 |
|
717 |
exeinto /boot/modules |
718 |
doexe "${WORKDIR}/${NV_PACKAGE}/src/nvidia.ko" || die |
719 |
fi |
720 |
|
721 |
if has_multilib_profile ; then |
722 |
local OABI=${ABI} |
723 |
for ABI in $(get_install_abis) ; do |
724 |
src_install-libs |
725 |
done |
726 |
ABI=${OABI} |
727 |
unset OABI |
728 |
elif use amd64 ; then |
729 |
src_install-libs lib32 $(get_multilibdir) |
730 |
src_install-libs lib $(get_libdir) |
731 |
|
732 |
rm -rf "${D}"/usr/$(get_multilibdir)/opengl/nvidia/include |
733 |
rm -rf "${D}"/usr/$(get_multilibdir)/opengl/nvidia/extensions |
734 |
else |
735 |
src_install-libs |
736 |
fi |
737 |
|
738 |
is_final_abi || return 0 |
739 |
|
740 |
# Documentation |
741 |
dodoc "${NV_DOC}"/{XF86Config.sample,Copyrights} |
742 |
dohtml "${NV_DOC}"/html/* |
743 |
if use x86-fbsd; then |
744 |
dodoc "${NV_DOC}/README" |
745 |
else |
746 |
# Docs |
747 |
newdoc "${NV_DOC}/README.txt" README |
748 |
dodoc "${NV_DOC}/NVIDIA_Changelog" |
749 |
fi |
750 |
|
751 |
# Helper Apps |
752 |
dobin ${NV_EXEC}/nvidia-xconfig || die |
753 |
dobin ${NV_EXEC}/nvidia-bug-report.sh || die |
754 |
} |
755 |
|
756 |
# Install nvidia library: |
757 |
# the first parameter is the place where to install it |
758 |
# the second parameter is the base name of the library |
759 |
# the third parameter is the provided soversion |
760 |
donvidia() { |
761 |
dodir $1 |
762 |
exeinto $1 |
763 |
|
764 |
libname=$(basename $2) |
765 |
|
766 |
doexe $2.$3 |
767 |
dosym ${libname}.$3 $1/${libname} |
768 |
|
769 |
[[ $3 != "1" ]] && dosym ${libname}.$3 $1/${libname}.1 |
770 |
} |
771 |
|
772 |
src_install-libs() { |
773 |
local pkglibdir=lib |
774 |
local inslibdir=$(get_libdir) |
775 |
|
776 |
if [[ ${#} -eq 2 ]] ; then |
777 |
pkglibdir=${1} |
778 |
inslibdir=${2} |
779 |
elif has_multilib_profile && [[ ${ABI} == "x86" ]] ; then |
780 |
pkglibdir=lib32 |
781 |
fi |
782 |
|
783 |
local usrpkglibdir=usr/${pkglibdir} |
784 |
local libdir=usr/X11R6/${pkglibdir} |
785 |
local drvdir=${libdir}/modules/drivers |
786 |
local extdir=${libdir}/modules/extensions |
787 |
local incdir=usr/include/GL |
788 |
local sover=${PV} |
789 |
local NV_ROOT="/usr/${inslibdir}/opengl/nvidia" |
790 |
local NO_TLS_ROOT="${NV_ROOT}/no-tls" |
791 |
local TLS_ROOT="${NV_ROOT}/tls" |
792 |
local X11_LIB_DIR="/usr/${inslibdir}/xorg" |
793 |
|
794 |
if use x86-fbsd; then |
795 |
# on FreeBSD everything is on obj/ |
796 |
pkglibdir=obj |
797 |
usrpkglibdir=obj |
798 |
x11pkglibdir=obj |
799 |
drvdir=obj |
800 |
extdir=obj |
801 |
|
802 |
# don't ask me why the headers are there.. glxext.h is missing |
803 |
incdir=doc |
804 |
|
805 |
# on FreeBSD it has just .1 suffix |
806 |
sover=1 |
807 |
fi |
808 |
|
809 |
# The GLX libraries |
810 |
donvidia ${NV_ROOT}/lib ${usrpkglibdir}/libGL.so ${sover} |
811 |
donvidia ${NV_ROOT}/lib ${usrpkglibdir}/libGLcore.so ${sover} |
812 |
|
813 |
donvidia ${NV_ROOT}/lib ${usrpkglibdir}/libnvidia-cfg.so ${sover} |
814 |
|
815 |
dodir ${NO_TLS_ROOT} |
816 |
donvidia ${NO_TLS_ROOT} ${usrpkglibdir}/libnvidia-tls.so ${sover} |
817 |
|
818 |
if ! use x86-fbsd; then |
819 |
donvidia ${TLS_ROOT} ${usrpkglibdir}/tls/libnvidia-tls.so ${sover} |
820 |
fi |
821 |
|
822 |
if want_tls ; then |
823 |
dosym ../tls/libnvidia-tls.so ${NV_ROOT}/lib |
824 |
dosym ../tls/libnvidia-tls.so.1 ${NV_ROOT}/lib |
825 |
dosym ../tls/libnvidia-tls.so.${sover} ${NV_ROOT}/lib |
826 |
else |
827 |
dosym ../no-tls/libnvidia-tls.so ${NV_ROOT}/lib |
828 |
dosym ../no-tls/libnvidia-tls.so.1 ${NV_ROOT}/lib |
829 |
dosym ../no-tls/libnvidia-tls.so.${sover} ${NV_ROOT}/lib |
830 |
fi |
831 |
|
832 |
if ! use x86-fbsd; then |
833 |
# Install the .la file for libtool, to prevent e.g. bug #176423 |
834 |
[ -f "${FILESDIR}/libGL.la-r2" ] || die "libGL.la-r2 missing in FILESDIR" |
835 |
local ver1=$(get_version_component_range 1) |
836 |
local ver2=$(get_version_component_range 2) |
837 |
local ver3=$(get_version_component_range 3) |
838 |
sed -e "s:\${PV}:${PV}:" \ |
839 |
-e "s:\${ver1}:${ver1}:" \ |
840 |
-e "s:\${ver2}:${ver2}:" \ |
841 |
-e "s:\${ver3}:${ver3}:" \ |
842 |
-e "s:\${libdir}:${inslibdir}:" \ |
843 |
"${FILESDIR}"/libGL.la-r2 > "${D}"/${NV_ROOT}/lib/libGL.la |
844 |
fi |
845 |
|
846 |
exeinto ${X11_LIB_DIR}/modules/drivers |
847 |
|
848 |
[[ -f ${drvdir}/nvidia_drv.so ]] && \ |
849 |
doexe ${drvdir}/nvidia_drv.so |
850 |
|
851 |
insinto /usr/${inslibdir} |
852 |
[[ -f ${libdir}/libXvMCNVIDIA.a ]] && \ |
853 |
doins ${libdir}/libXvMCNVIDIA.a |
854 |
exeinto /usr/${inslibdir} |
855 |
# fix Bug 131315 |
856 |
[[ -f ${libdir}/libXvMCNVIDIA.so.${PV} ]] && \ |
857 |
doexe ${libdir}/libXvMCNVIDIA.so.${PV} && \ |
858 |
dosym libXvMCNVIDIA.so.${PV} \ |
859 |
/usr/${inslibdir}/libXvMCNVIDIA.so |
860 |
|
861 |
exeinto ${NV_ROOT}/extensions |
862 |
[[ -f ${libdir}/modules/libnvidia-wfb.so.${sover} ]] && \ |
863 |
newexe ${libdir}/modules/libnvidia-wfb.so.${sover} libwfb.so |
864 |
[[ -f ${extdir}/libglx.so.${sover} ]] && \ |
865 |
newexe ${extdir}/libglx.so.${sover} libglx.so |
866 |
|
867 |
# Includes |
868 |
insinto ${NV_ROOT}/include |
869 |
doins ${incdir}/*.h |
870 |
|
871 |
#cuda |
872 |
if [[ -f usr/include/cuda/cuda.h ]]; then |
873 |
dodir /usr/include/cuda |
874 |
insinto /usr/include/cuda |
875 |
doins usr/include/cuda/*.h |
876 |
|
877 |
dolib.so usr/${pkglibdir}/libcuda.so.${PV} |
878 |
dosym libcuda.so.${PV} /usr/${inslibdir}/libcuda.so.1 |
879 |
dosym libcuda.so.1 /usr/${inslibdir}/libcuda.so |
880 |
fi |
881 |
} |
882 |
|
883 |
pkg_preinst() { |
884 |
|
885 |
# Clean the dynamic libGL stuff's home to ensure |
886 |
# we dont have stale libs floating around |
887 |
if [ -d "${ROOT}"/usr/lib/opengl/nvidia ] ; then |
888 |
rm -rf "${ROOT}"/usr/lib/opengl/nvidia/* |
889 |
fi |
890 |
# Make sure we nuke the old nvidia-glx's env.d file |
891 |
if [ -e "${ROOT}"/etc/env.d/09nvidia ] ; then |
892 |
rm -f "${ROOT}"/etc/env.d/09nvidia |
893 |
fi |
894 |
} |
895 |
|
896 |
pkg_postinst() { |
897 |
if use kernel_linux; then |
898 |
linux-mod_pkg_postinst |
899 |
fi |
900 |
|
901 |
# Switch to the nvidia implementation |
902 |
eselect opengl set --use-old nvidia |
903 |
|
904 |
echo |
905 |
elog "You must be in the video group to use the NVIDIA device" |
906 |
elog "For more info, read the docs at" |
907 |
elog "http://www.gentoo.org/doc/en/nvidia-guide.xml#doc_chap3_sect6" |
908 |
elog |
909 |
|
910 |
elog "This ebuild installs a kernel module and X driver. Both must" |
911 |
elog "match explicitly in their version. This means, if you restart" |
912 |
elog "X, you most modprobe -r nvidia before starting it back up" |
913 |
elog |
914 |
|
915 |
elog "To use the NVIDIA GLX, run \"eselect opengl set nvidia\"" |
916 |
elog |
917 |
elog "nVidia has requested that any bug reports submitted have the" |
918 |
elog "output of /usr/bin/nvidia-bug-report.sh included." |
919 |
elog |
920 |
elog "To work with compiz, you must enable the AddARGBGLXVisuals option." |
921 |
elog |
922 |
elog "If you are having resolution problems, try disabling DynamicTwinView." |
923 |
echo |
924 |
} |
925 |
|
926 |
want_tls() { |
927 |
# For uclibc or anything non glibc, return false |
928 |
has_version sys-libs/glibc || return 1 |
929 |
|
930 |
# Old versions of glibc were lt/no-tls only |
931 |
has_version '<sys-libs/glibc-2.3.2' && return 1 |
932 |
|
933 |
if use x86 ; then |
934 |
case ${CHOST/-*} in |
935 |
i486|i586|i686) ;; |
936 |
*) return 1 ;; |
937 |
esac |
938 |
fi |
939 |
|
940 |
# If we've got nptl, we've got tls |
941 |
built_with_use --missing true sys-libs/glibc nptl && return 0 |
942 |
|
943 |
# 2.3.5 turned off tls for linuxthreads glibc on i486 and i586 |
944 |
if use x86 && has_version '>=sys-libs/glibc-2.3.5' ; then |
945 |
case ${CHOST/-*} in |
946 |
i486|i586) return 1 ;; |
947 |
esac |
948 |
fi |
949 |
|
950 |
# These versions built linuxthreads version to support tls, too |
951 |
has_version '>=sys-libs/glibc-2.3.4.20040619-r2' && return 0 |
952 |
|
953 |
return 1 |
954 |
} |
955 |
|
956 |
pkg_postrm() { |
957 |
if use kernel_linux; then |
958 |
linux-mod_pkg_postrm |
959 |
fi |
960 |
eselect opengl set --use-old xorg-x11 |
961 |
} |
962 |
|
963 |
|
964 |
|
965 |
-- |
966 |
gentoo-commits@l.g.o mailing list |