1 |
commit: 08f9bfec4dccc655933a27ea07bd52879352b200 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 1 09:25:29 2014 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 1 09:25:29 2014 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=08f9bfec |
7 |
|
8 |
dev-util/nvidia-cuda-gdk: Drop empty lines, clean variable names and quoting |
9 |
|
10 |
Package-Manager: portage-2.2.14 |
11 |
|
12 |
--- |
13 |
dev-util/nvidia-cuda-gdk/ChangeLog | 3 ++ |
14 |
.../nvidia-cuda-gdk/nvidia-cuda-gdk-340.29.ebuild | 42 +++++++++++++--------- |
15 |
2 files changed, 28 insertions(+), 17 deletions(-) |
16 |
|
17 |
diff --git a/dev-util/nvidia-cuda-gdk/ChangeLog b/dev-util/nvidia-cuda-gdk/ChangeLog |
18 |
index 58f8973..2526e36 100644 |
19 |
--- a/dev-util/nvidia-cuda-gdk/ChangeLog |
20 |
+++ b/dev-util/nvidia-cuda-gdk/ChangeLog |
21 |
@@ -2,6 +2,9 @@ |
22 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
23 |
# $Header: $ |
24 |
|
25 |
+ 01 Dec 2014; Justin Lecher <jlec@g.o> nvidia-cuda-gdk-340.29.ebuild: |
26 |
+ Drop empty lines, clean variable names and quoting |
27 |
+ |
28 |
19 Nov 2014; Marius Brehler <marbre@××××××××××××××.de> |
29 |
nvidia-cuda-gdk-340.29.ebuild: |
30 |
Add ~x86 keyword |
31 |
|
32 |
diff --git a/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-340.29.ebuild b/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-340.29.ebuild |
33 |
index 54ec87a..99a4765 100644 |
34 |
--- a/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-340.29.ebuild |
35 |
+++ b/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-340.29.ebuild |
36 |
@@ -22,8 +22,9 @@ IUSE="+healthmon +nvml +doc examples" |
37 |
|
38 |
RDEPEND=" |
39 |
>=dev-util/nvidia-cuda-toolkit-6.5 |
40 |
+ media-libs/freeglut |
41 |
examples? ( >=x11-drivers/nvidia-drivers-340.32[uvm] ) |
42 |
- media-libs/freeglut" |
43 |
+ " |
44 |
DEPEND="${RDEPEND}" |
45 |
|
46 |
S="${WORKDIR}/payload" |
47 |
@@ -41,11 +42,11 @@ src_compile() { |
48 |
} |
49 |
|
50 |
src_install() { |
51 |
- local i j f t ARCH |
52 |
+ local i j f t _arch |
53 |
if use amd64; then |
54 |
- ARCH=amd64; |
55 |
+ _arch=amd64; |
56 |
elif use x86; then |
57 |
- ARCH=x86; |
58 |
+ _arch=x86; |
59 |
else |
60 |
die; |
61 |
fi |
62 |
@@ -54,9 +55,12 @@ src_install() { |
63 |
if use healthmon ; then |
64 |
ebegin "Installing healthmon docs..." |
65 |
doman nvidia-healthmon/docs/man/man8/nvidia-healthmon.8 |
66 |
- cd "${S}/nvidia-healthmon/nvidia-healthmon-${ARCH}-${PV}" || die |
67 |
- treecopy $(find -type f \( -name README.txt -name COPYING.txt -o -name "*.pdf" \)) "${ED}"/usr/share/doc/${PF}/nvidia-healthmon/ |
68 |
- docompress -x $(find "${ED}"/usr/share/doc/${PF}/nvidia-healthmon/ -type f -name readme.txt | sed -e "s:${ED}::") |
69 |
+ cd "${S}/nvidia-healthmon/nvidia-healthmon-${_arch}-${PV}" || die |
70 |
+ treecopy \ |
71 |
+ $(find -type f \( -name README.txt -name COPYING.txt -o -name "*.pdf" \)) \ |
72 |
+ "${ED}"/usr/share/doc/${PF}/nvidia-healthmon/ |
73 |
+ docompress -x \ |
74 |
+ $(find "${ED}"/usr/share/doc/${PF}/nvidia-healthmon/ -type f -name readme.txt | sed -e "s:${ED}::") |
75 |
cd "${S}/" || die |
76 |
eend |
77 |
fi |
78 |
@@ -65,25 +69,30 @@ src_install() { |
79 |
ebegin "Installing nvml docs..." |
80 |
doman nvml/doc/man/man3/*.3 |
81 |
cd "${S}/nvml/" || die |
82 |
- treecopy $(find -type f \( -name README.txt -name COPYRIGHT.txt -o -name "*.pdf" \)) "${ED}"/usr/share/doc/${PF}/nvml/ |
83 |
- docompress -x $(find "${ED}"/usr/share/doc/${PF}/nvml/ -type f -name readme.txt | sed -e "s:${ED}::") |
84 |
+ treecopy \ |
85 |
+ $(find -type f \( -name README.txt -name COPYRIGHT.txt -o -name "*.pdf" \)) \ |
86 |
+ "${ED}"/usr/share/doc/${PF}/nvml/ |
87 |
+ docompress -x \ |
88 |
+ $(find "${ED}"/usr/share/doc/${PF}/nvml/ -type f -name readme.txt | sed -e "s:${ED}::") |
89 |
cd "${S}/" || die |
90 |
eend |
91 |
fi |
92 |
fi |
93 |
|
94 |
ebegin "Cleaning before installation..." |
95 |
- find -type f \( -name "*.o" -o -name "*.pdf" -o -name "*.txt" -o -name "*.3" \) -delete || die |
96 |
+ find -type f \ |
97 |
+ \( -name "*.o" -o -name "*.pdf" -o -name "*.txt" -o -name "*.3" \) -delete \ |
98 |
+ || die |
99 |
eend |
100 |
|
101 |
if use healthmon; then |
102 |
ebegin "Installing nvidia-healthmon" |
103 |
- exeinto "/opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon-tests/" |
104 |
- doexe "nvidia-healthmon/nvidia-healthmon-${ARCH}-${PV}/bin"/{*,*.*} |
105 |
- exeinto "/opt/cuda/gdk/nvidia-healthmon/" |
106 |
- doexe "nvidia-healthmon/nvidia-healthmon-${ARCH}-${PV}"/nvidia-healthmon |
107 |
- insinto "/etc/nvidia-healthmon/" |
108 |
- doins "nvidia-healthmon/nvidia-healthmon-${ARCH}-${PV}"/nvidia-healthmon.conf |
109 |
+ exeinto /opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon-tests/ |
110 |
+ doexe "nvidia-healthmon/nvidia-healthmon-${_arch}-${PV}/bin"/{*,*.*} |
111 |
+ exeinto /opt/cuda/gdk/nvidia-healthmon/ |
112 |
+ doexe "nvidia-healthmon/nvidia-healthmon-${_arch}-${PV}"/nvidia-healthmon |
113 |
+ insinto /etc/nvidia-healthmon/ |
114 |
+ doins "nvidia-healthmon/nvidia-healthmon-${_arch}-${PV}"/nvidia-healthmon.conf |
115 |
|
116 |
# install launch script |
117 |
exeinto /opt/bin |
118 |
@@ -113,5 +122,4 @@ src_install() { |
119 |
cd "${S}/" || die |
120 |
eend |
121 |
fi |
122 |
- |
123 |
} |