1 |
commit: 8c24be3239906196b973ff14197650e7702e953c |
2 |
Author: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 22 00:12:40 2017 +0000 |
4 |
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 3 05:17:11 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=8c24be32 |
7 |
|
8 |
Change the indentation for ebuild <codesample/> snippets from spaces to tabs |
9 |
|
10 |
archs/amd64/text.xml | 6 +- |
11 |
ebuild-writing/error-handling/text.xml | 2 +- |
12 |
ebuild-writing/functions/pkg_config/text.xml | 26 ++--- |
13 |
ebuild-writing/functions/pkg_info/text.xml | 2 +- |
14 |
ebuild-writing/functions/pkg_nofetch/text.xml | 20 ++-- |
15 |
ebuild-writing/functions/pkg_postinst/text.xml | 18 ++-- |
16 |
ebuild-writing/functions/pkg_postrm/text.xml | 4 +- |
17 |
ebuild-writing/functions/pkg_preinst/text.xml | 6 +- |
18 |
ebuild-writing/functions/pkg_prerm/text.xml | 6 +- |
19 |
ebuild-writing/functions/pkg_pretend/text.xml | 2 +- |
20 |
ebuild-writing/functions/pkg_setup/text.xml | 28 ++--- |
21 |
.../src_compile/build-environment/text.xml | 26 ++--- |
22 |
.../functions/src_compile/building/text.xml | 14 +-- |
23 |
.../functions/src_compile/no-build-system/text.xml | 48 ++++----- |
24 |
ebuild-writing/functions/src_compile/text.xml | 30 +++--- |
25 |
.../functions/src_configure/configuring/text.xml | 30 +++--- |
26 |
ebuild-writing/functions/src_configure/text.xml | 14 +-- |
27 |
ebuild-writing/functions/src_install/text.xml | 116 ++++++++++----------- |
28 |
.../functions/src_prepare/epatch/text.xml | 24 ++--- |
29 |
ebuild-writing/functions/src_prepare/text.xml | 6 +- |
30 |
ebuild-writing/functions/src_test/text.xml | 12 +-- |
31 |
.../functions/src_unpack/cvs-sources/text.xml | 22 ++-- |
32 |
.../functions/src_unpack/rpm-sources/text.xml | 14 +-- |
33 |
ebuild-writing/functions/src_unpack/text.xml | 16 +-- |
34 |
ebuild-writing/messages/text.xml | 12 +-- |
35 |
ebuild-writing/use-conditional-code/text.xml | 32 +++--- |
36 |
ebuild-writing/using-eclasses/text.xml | 2 +- |
37 |
ebuild-writing/variables/text.xml | 22 ++-- |
38 |
eclass-writing/text.xml | 30 +++--- |
39 |
general-concepts/autotools/text.xml | 16 +-- |
40 |
general-concepts/dependencies/text.xml | 44 ++++---- |
41 |
general-concepts/portage-cache/text.xml | 28 ++--- |
42 |
general-concepts/use-flags/text.xml | 24 ++--- |
43 |
general-concepts/user-environment/text.xml | 6 +- |
44 |
quickstart/text.xml | 84 +++++++-------- |
45 |
tasks-reference/completion/text.xml | 30 +++--- |
46 |
tools-reference/bash/text.xml | 36 +++---- |
47 |
tools-reference/cat/text.xml | 12 +-- |
48 |
tools-reference/find/text.xml | 4 +- |
49 |
tools-reference/sed/text.xml | 26 ++--- |
50 |
40 files changed, 450 insertions(+), 450 deletions(-) |
51 |
|
52 |
diff --git a/archs/amd64/text.xml b/archs/amd64/text.xml |
53 |
index f75e29d..366959d 100644 |
54 |
--- a/archs/amd64/text.xml |
55 |
+++ b/archs/amd64/text.xml |
56 |
@@ -336,10 +336,10 @@ In most cases, it's sufficient to use the <c>$(get_libdir)</c> function from |
57 |
inherit multilib |
58 |
|
59 |
src_compile() { |
60 |
- econf \ |
61 |
- --libdir=/usr/$(get_libdir) |
62 |
+ econf \ |
63 |
+ --libdir=/usr/$(get_libdir) |
64 |
|
65 |
- emake || die |
66 |
+ emake || die |
67 |
} |
68 |
|
69 |
src_install() { |
70 |
|
71 |
diff --git a/ebuild-writing/error-handling/text.xml b/ebuild-writing/error-handling/text.xml |
72 |
index da9e88d..96dc962 100644 |
73 |
--- a/ebuild-writing/error-handling/text.xml |
74 |
+++ b/ebuild-writing/error-handling/text.xml |
75 |
@@ -87,7 +87,7 @@ The correct way to rewrite this is to use an <c>if</c> block: |
76 |
|
77 |
<codesample lang="ebuild"> |
78 |
if [[ -f foorc ]] ; then |
79 |
- update_foorc || die "Couldn't update foorc!" |
80 |
+ update_foorc || die "Couldn't update foorc!" |
81 |
fi |
82 |
</codesample> |
83 |
|
84 |
|
85 |
diff --git a/ebuild-writing/functions/pkg_config/text.xml b/ebuild-writing/functions/pkg_config/text.xml |
86 |
index 422089f..ce97bd8 100644 |
87 |
--- a/ebuild-writing/functions/pkg_config/text.xml |
88 |
+++ b/ebuild-writing/functions/pkg_config/text.xml |
89 |
@@ -34,7 +34,7 @@ |
90 |
<codesample lang="ebuild"> |
91 |
pkg_config() |
92 |
{ |
93 |
- eerror "This ebuild does not have a config function." |
94 |
+ eerror "This ebuild does not have a config function." |
95 |
} |
96 |
</codesample> |
97 |
</body> |
98 |
@@ -49,18 +49,18 @@ Taken from the <c>mysql</c> ebuilds. Note the use of <c>${ROOT}</c>. |
99 |
|
100 |
<codesample lang="ebuild"> |
101 |
pkg_config() { |
102 |
- if [ ! -d "${ROOT}"/var/lib/mysql/mysql ] ; then |
103 |
- einfo "Press ENTER to create the mysql database and set proper" |
104 |
- einfo "permissions on it, or Control-C to abort now..." |
105 |
- read |
106 |
- "${ROOT}"/usr/bin/mysql_install_db |
107 |
- else |
108 |
- einfo "Hmm, it appears as though you already have the mysql" |
109 |
- einfo "database in place. If you are having problems trying" |
110 |
- einfo "to start mysqld, perhaps you need to manually run" |
111 |
- einfo "/usr/bin/mysql_install_db and/or check your config" |
112 |
- einfo "file(s) and/or database(s) and/or logfile(s)." |
113 |
- fi |
114 |
+ if [ ! -d "${ROOT}"/var/lib/mysql/mysql ] ; then |
115 |
+ einfo "Press ENTER to create the mysql database and set proper" |
116 |
+ einfo "permissions on it, or Control-C to abort now..." |
117 |
+ read |
118 |
+ "${ROOT}"/usr/bin/mysql_install_db |
119 |
+ else |
120 |
+ einfo "Hmm, it appears as though you already have the mysql" |
121 |
+ einfo "database in place. If you are having problems trying" |
122 |
+ einfo "to start mysqld, perhaps you need to manually run" |
123 |
+ einfo "/usr/bin/mysql_install_db and/or check your config" |
124 |
+ einfo "file(s) and/or database(s) and/or logfile(s)." |
125 |
+ fi |
126 |
} |
127 |
</codesample> |
128 |
</body> |
129 |
|
130 |
diff --git a/ebuild-writing/functions/pkg_info/text.xml b/ebuild-writing/functions/pkg_info/text.xml |
131 |
index 44f3c77..8cb3dbb 100644 |
132 |
--- a/ebuild-writing/functions/pkg_info/text.xml |
133 |
+++ b/ebuild-writing/functions/pkg_info/text.xml |
134 |
@@ -34,7 +34,7 @@ |
135 |
<codesample lang="ebuild"> |
136 |
pkg_info() |
137 |
{ |
138 |
- return |
139 |
+ return |
140 |
} |
141 |
</codesample> |
142 |
</body> |
143 |
|
144 |
diff --git a/ebuild-writing/functions/pkg_nofetch/text.xml b/ebuild-writing/functions/pkg_nofetch/text.xml |
145 |
index a03d552..036ad62 100644 |
146 |
--- a/ebuild-writing/functions/pkg_nofetch/text.xml |
147 |
+++ b/ebuild-writing/functions/pkg_nofetch/text.xml |
148 |
@@ -34,13 +34,13 @@ |
149 |
<codesample lang="ebuild"> |
150 |
pkg_nofetch() |
151 |
{ |
152 |
- [ -z "${SRC_URI}" ] && return |
153 |
+ [ -z "${SRC_URI}" ] && return |
154 |
|
155 |
- echo "!!! The following are listed in SRC_URI for ${PN}:" |
156 |
- for MYFILE in `echo ${SRC_URI}`; do |
157 |
- echo "!!! $MYFILE" |
158 |
- done |
159 |
- return |
160 |
+ echo "!!! The following are listed in SRC_URI for ${PN}:" |
161 |
+ for MYFILE in `echo ${SRC_URI}`; do |
162 |
+ echo "!!! $MYFILE" |
163 |
+ done |
164 |
+ return |
165 |
} |
166 |
</codesample> |
167 |
</body> |
168 |
@@ -51,10 +51,10 @@ pkg_nofetch() |
169 |
<body> |
170 |
<codesample lang="ebuild"> |
171 |
pkg_nofetch() { |
172 |
- einfo "Please download" |
173 |
- einfo " - ${P}-main.tar.bz2" |
174 |
- einfo " - ${P}-extras.tar.bz2" |
175 |
- einfo "from ${HOMEPAGE} and place them in your DISTDIR directory." |
176 |
+ einfo "Please download" |
177 |
+ einfo " - ${P}-main.tar.bz2" |
178 |
+ einfo " - ${P}-extras.tar.bz2" |
179 |
+ einfo "from ${HOMEPAGE} and place them in your DISTDIR directory." |
180 |
} |
181 |
</codesample> |
182 |
<note> |
183 |
|
184 |
diff --git a/ebuild-writing/functions/pkg_postinst/text.xml b/ebuild-writing/functions/pkg_postinst/text.xml |
185 |
index 8b86c4c..833dfe4 100644 |
186 |
--- a/ebuild-writing/functions/pkg_postinst/text.xml |
187 |
+++ b/ebuild-writing/functions/pkg_postinst/text.xml |
188 |
@@ -34,7 +34,7 @@ |
189 |
<codesample lang="ebuild"> |
190 |
pkg_postinst() |
191 |
{ |
192 |
- return |
193 |
+ return |
194 |
} |
195 |
</codesample> |
196 |
</body> |
197 |
@@ -45,14 +45,14 @@ pkg_postinst() |
198 |
<body> |
199 |
<codesample lang="ebuild"> |
200 |
pkg_postinst() { |
201 |
- if $OLD_FLUXBOX_VERSION ; then |
202 |
- ewarn "You must restart fluxbox before using the [include] /directory/" |
203 |
- ewarn "feature if you are upgrading from an older fluxbox!" |
204 |
- ewarn " " |
205 |
- fi |
206 |
- elog "If you experience font problems, or if fluxbox takes a very" |
207 |
- elog "long time to start up, please try the 'disablexmb' USE flag." |
208 |
- elog "If that fails, please report bugs upstream." |
209 |
+ if $OLD_FLUXBOX_VERSION ; then |
210 |
+ ewarn "You must restart fluxbox before using the [include] /directory/" |
211 |
+ ewarn "feature if you are upgrading from an older fluxbox!" |
212 |
+ ewarn " " |
213 |
+ fi |
214 |
+ elog "If you experience font problems, or if fluxbox takes a very" |
215 |
+ elog "long time to start up, please try the 'disablexmb' USE flag." |
216 |
+ elog "If that fails, please report bugs upstream." |
217 |
} |
218 |
</codesample> |
219 |
</body> |
220 |
|
221 |
diff --git a/ebuild-writing/functions/pkg_postrm/text.xml b/ebuild-writing/functions/pkg_postrm/text.xml |
222 |
index fa2a21d..af9e435 100644 |
223 |
--- a/ebuild-writing/functions/pkg_postrm/text.xml |
224 |
+++ b/ebuild-writing/functions/pkg_postrm/text.xml |
225 |
@@ -34,7 +34,7 @@ |
226 |
<codesample lang="ebuild"> |
227 |
pkg_postrm() |
228 |
{ |
229 |
- return |
230 |
+ return |
231 |
} |
232 |
</codesample> |
233 |
</body> |
234 |
@@ -45,7 +45,7 @@ pkg_postrm() |
235 |
<body> |
236 |
<codesample lang="ebuild"> |
237 |
pkg_postrm() { |
238 |
- fdo-mime_mime_database_update |
239 |
+ fdo-mime_mime_database_update |
240 |
} |
241 |
</codesample> |
242 |
</body> |
243 |
|
244 |
diff --git a/ebuild-writing/functions/pkg_preinst/text.xml b/ebuild-writing/functions/pkg_preinst/text.xml |
245 |
index 9cdeb4a..a68950f 100644 |
246 |
--- a/ebuild-writing/functions/pkg_preinst/text.xml |
247 |
+++ b/ebuild-writing/functions/pkg_preinst/text.xml |
248 |
@@ -34,7 +34,7 @@ |
249 |
<codesample lang="ebuild"> |
250 |
pkg_preinst() |
251 |
{ |
252 |
- return |
253 |
+ return |
254 |
} |
255 |
</codesample> |
256 |
</body> |
257 |
@@ -45,8 +45,8 @@ pkg_preinst() |
258 |
<body> |
259 |
<codesample lang="ebuild"> |
260 |
pkg_preinst() { |
261 |
- enewgroup foo |
262 |
- enewuser foo -1 /bin/false /dev/null foo |
263 |
+ enewgroup foo |
264 |
+ enewuser foo -1 /bin/false /dev/null foo |
265 |
} |
266 |
</codesample> |
267 |
</body> |
268 |
|
269 |
diff --git a/ebuild-writing/functions/pkg_prerm/text.xml b/ebuild-writing/functions/pkg_prerm/text.xml |
270 |
index d9f8a6f..7e05b0e 100644 |
271 |
--- a/ebuild-writing/functions/pkg_prerm/text.xml |
272 |
+++ b/ebuild-writing/functions/pkg_prerm/text.xml |
273 |
@@ -34,7 +34,7 @@ |
274 |
<codesample lang="ebuild"> |
275 |
pkg_prerm() |
276 |
{ |
277 |
- return |
278 |
+ return |
279 |
} |
280 |
</codesample> |
281 |
</body> |
282 |
@@ -45,8 +45,8 @@ pkg_prerm() |
283 |
<body> |
284 |
<codesample lang="ebuild"> |
285 |
pkg_prerm() { |
286 |
- # clean up temp files |
287 |
- [[ -d "${ROOT}/var/tmp/foo" ]] && rm -rf "${ROOT}/var/tmp/foo" |
288 |
+ # clean up temp files |
289 |
+ [[ -d "${ROOT}/var/tmp/foo" ]] && rm -rf "${ROOT}/var/tmp/foo" |
290 |
} |
291 |
</codesample> |
292 |
</body> |
293 |
|
294 |
diff --git a/ebuild-writing/functions/pkg_pretend/text.xml b/ebuild-writing/functions/pkg_pretend/text.xml |
295 |
index f3a78f6..e0c454c 100644 |
296 |
--- a/ebuild-writing/functions/pkg_pretend/text.xml |
297 |
+++ b/ebuild-writing/functions/pkg_pretend/text.xml |
298 |
@@ -38,7 +38,7 @@ |
299 |
<codesample lang="ebuild"> |
300 |
pkg_pretend() |
301 |
{ |
302 |
- return |
303 |
+ return |
304 |
} |
305 |
</codesample> |
306 |
</body> |
307 |
|
308 |
diff --git a/ebuild-writing/functions/pkg_setup/text.xml b/ebuild-writing/functions/pkg_setup/text.xml |
309 |
index a7fe9d2..0304d3a 100644 |
310 |
--- a/ebuild-writing/functions/pkg_setup/text.xml |
311 |
+++ b/ebuild-writing/functions/pkg_setup/text.xml |
312 |
@@ -34,7 +34,7 @@ |
313 |
<codesample lang="ebuild"> |
314 |
pkg_setup() |
315 |
{ |
316 |
- return |
317 |
+ return |
318 |
} |
319 |
</codesample> |
320 |
</body> |
321 |
@@ -45,19 +45,19 @@ pkg_setup() |
322 |
<body> |
323 |
<codesample lang="ebuild"> |
324 |
pkg_setup() { |
325 |
- # We need to know which GUI we're building in several |
326 |
- # different places, so work it out here. |
327 |
- if use gtk ; then |
328 |
- if use gtk2 ; then |
329 |
- export mypkg_gui="gtk2" |
330 |
- else |
331 |
- export mypkg_gui="gtk1" |
332 |
- fi |
333 |
- elif use motif then |
334 |
- export mypkg_gui="motif" |
335 |
- else |
336 |
- export mypkg_gui="athena" |
337 |
- fi |
338 |
+ # We need to know which GUI we're building in several |
339 |
+ # different places, so work it out here. |
340 |
+ if use gtk ; then |
341 |
+ if use gtk2 ; then |
342 |
+ export mypkg_gui="gtk2" |
343 |
+ else |
344 |
+ export mypkg_gui="gtk1" |
345 |
+ fi |
346 |
+ elif use motif then |
347 |
+ export mypkg_gui="motif" |
348 |
+ else |
349 |
+ export mypkg_gui="athena" |
350 |
+ fi |
351 |
} |
352 |
</codesample> |
353 |
</body> |
354 |
|
355 |
diff --git a/ebuild-writing/functions/src_compile/build-environment/text.xml b/ebuild-writing/functions/src_compile/build-environment/text.xml |
356 |
index 8c16587..9d2122e 100644 |
357 |
--- a/ebuild-writing/functions/src_compile/build-environment/text.xml |
358 |
+++ b/ebuild-writing/functions/src_compile/build-environment/text.xml |
359 |
@@ -69,9 +69,9 @@ remove. |
360 |
</p> |
361 |
|
362 |
<codesample lang="ebuild"> |
363 |
- # -fomit-frame-pointer leads to nasty broken code on sparc thanks to a |
364 |
- # rather icky asm function |
365 |
- use sparc && filter-flags -fomit-frame-pointer |
366 |
+ # -fomit-frame-pointer leads to nasty broken code on sparc thanks to a |
367 |
+ # rather icky asm function |
368 |
+ use sparc && filter-flags -fomit-frame-pointer |
369 |
</codesample> |
370 |
|
371 |
<p> |
372 |
@@ -86,8 +86,8 @@ conservative set of flags. |
373 |
</p> |
374 |
|
375 |
<codesample lang="ebuild"> |
376 |
- # Our app hates screwy flags |
377 |
- strip-flags |
378 |
+ # Our app hates screwy flags |
379 |
+ strip-flags |
380 |
</codesample> |
381 |
|
382 |
</body> |
383 |
@@ -104,8 +104,8 @@ is most commonly used to replace <c>-Os</c> with <c>-O2</c> |
384 |
</p> |
385 |
|
386 |
<codesample lang="ebuild"> |
387 |
- # Seems to have issues with -Os, switch to -O2 |
388 |
- replace-flags -Os -O2 |
389 |
+ # Seems to have issues with -Os, switch to -O2 |
390 |
+ replace-flags -Os -O2 |
391 |
</codesample> |
392 |
|
393 |
<p> |
394 |
@@ -116,8 +116,8 @@ the flags to be replaced. |
395 |
</p> |
396 |
|
397 |
<codesample lang="ebuild"> |
398 |
- # Can't use ultrasparc or ultrasparc3 code, drop to v9 |
399 |
- replace-cpu-flags ultrasparc ultrasparc3 v9 |
400 |
+ # Can't use ultrasparc or ultrasparc3 code, drop to v9 |
401 |
+ replace-cpu-flags ultrasparc ultrasparc3 v9 |
402 |
</codesample> |
403 |
|
404 |
</body> |
405 |
@@ -133,11 +133,11 @@ functions can be used here. |
406 |
</p> |
407 |
|
408 |
<codesample lang="ebuild"> |
409 |
- # If we're using selinux, we need to add a -D |
410 |
- use selinux && append-flags "-DWITH_SELINUX" |
411 |
+ # If we're using selinux, we need to add a -D |
412 |
+ use selinux && append-flags "-DWITH_SELINUX" |
413 |
|
414 |
- # Secure linking needed, since we're setuid root |
415 |
- append-ldflags -Wl,-z,now |
416 |
+ # Secure linking needed, since we're setuid root |
417 |
+ append-ldflags -Wl,-z,now |
418 |
</codesample> |
419 |
|
420 |
<p> |
421 |
|
422 |
diff --git a/ebuild-writing/functions/src_compile/building/text.xml b/ebuild-writing/functions/src_compile/building/text.xml |
423 |
index bed3dd7..679879a 100644 |
424 |
--- a/ebuild-writing/functions/src_compile/building/text.xml |
425 |
+++ b/ebuild-writing/functions/src_compile/building/text.xml |
426 |
@@ -53,14 +53,14 @@ example, with <c>sed</c>) to use <c>${CFLAGS}</c> or <c>${LDFLAGS}</c> correctly |
427 |
inherit flag-o-matic toolchain-funcs |
428 |
|
429 |
src_compile() { |
430 |
- # -Os not happy |
431 |
- replace-flags -Os -O2 |
432 |
+ # -Os not happy |
433 |
+ replace-flags -Os -O2 |
434 |
|
435 |
- # We have a weird build.sh to work with which ignores our |
436 |
- # compiler preferences. yay! |
437 |
- sed -i -e "s:cc -O2:$(tc-getCC) ${CFLAGS} ${LDFLAGS}:" build.sh \ |
438 |
- || die "sed fix failed. Uh-oh..." |
439 |
- ./build.sh || die "Build failed!" |
440 |
+ # We have a weird build.sh to work with which ignores our |
441 |
+ # compiler preferences. yay! |
442 |
+ sed -i -e "s:cc -O2:$(tc-getCC) ${CFLAGS} ${LDFLAGS}:" build.sh \ |
443 |
+ || die "sed fix failed. Uh-oh..." |
444 |
+ ./build.sh || die "Build failed!" |
445 |
} |
446 |
</codesample> |
447 |
|
448 |
|
449 |
diff --git a/ebuild-writing/functions/src_compile/no-build-system/text.xml b/ebuild-writing/functions/src_compile/no-build-system/text.xml |
450 |
index d1ecef6..aef02ac 100644 |
451 |
--- a/ebuild-writing/functions/src_compile/no-build-system/text.xml |
452 |
+++ b/ebuild-writing/functions/src_compile/no-build-system/text.xml |
453 |
@@ -14,7 +14,7 @@ Here's an example, from <c>app-misc/hilite</c>: |
454 |
|
455 |
<codesample lang="ebuild"> |
456 |
src_compile() { |
457 |
- $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o ${PN} ${P}.c || die |
458 |
+ $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o ${PN} ${P}.c || die |
459 |
} |
460 |
</codesample> |
461 |
|
462 |
@@ -25,29 +25,29 @@ broken build system that doesn't actually work: |
463 |
|
464 |
<codesample lang="ebuild"> |
465 |
src_compile() { |
466 |
- local x |
467 |
- for x in asclock parser symbols config |
468 |
- do |
469 |
- $(tc-getCC) \ |
470 |
- ${CFLAGS} ${CPPFLAGS} \ |
471 |
- -I/usr/include \ |
472 |
- -Dlinux \ |
473 |
- -D_POSIX_C_SOURCE=199309L \ |
474 |
- -D_POSIX_SOURCE \ |
475 |
- -D_XOPEN_SOURCE \ |
476 |
- -D_BSD_SOURCE \ |
477 |
- -D_SVID_SOURCE \ |
478 |
- -DFUNCPROTO=15 \ |
479 |
- -DNARROWPROTO \ |
480 |
- -c -o ${x}.o ${x}.c || die "compile asclock failed" |
481 |
- done |
482 |
- $(tc-getCC) \ |
483 |
- ${LDFLAGS} \ |
484 |
- -o asclock \ |
485 |
- asclock.o parser.o symbols.o config.o \ |
486 |
- -L/usr/lib \ |
487 |
- -L/usr/lib/X11 \ |
488 |
- -lXpm -lXext -lX11 || die "link asclock failed" |
489 |
+ local x |
490 |
+ for x in asclock parser symbols config |
491 |
+ do |
492 |
+ $(tc-getCC) \ |
493 |
+ ${CFLAGS} ${CPPFLAGS} \ |
494 |
+ -I/usr/include \ |
495 |
+ -Dlinux \ |
496 |
+ -D_POSIX_C_SOURCE=199309L \ |
497 |
+ -D_POSIX_SOURCE \ |
498 |
+ -D_XOPEN_SOURCE \ |
499 |
+ -D_BSD_SOURCE \ |
500 |
+ -D_SVID_SOURCE \ |
501 |
+ -DFUNCPROTO=15 \ |
502 |
+ -DNARROWPROTO \ |
503 |
+ -c -o ${x}.o ${x}.c || die "compile asclock failed" |
504 |
+ done |
505 |
+ $(tc-getCC) \ |
506 |
+ ${LDFLAGS} \ |
507 |
+ -o asclock \ |
508 |
+ asclock.o parser.o symbols.o config.o \ |
509 |
+ -L/usr/lib \ |
510 |
+ -L/usr/lib/X11 \ |
511 |
+ -lXpm -lXext -lX11 || die "link asclock failed" |
512 |
} |
513 |
</codesample> |
514 |
|
515 |
|
516 |
diff --git a/ebuild-writing/functions/src_compile/text.xml b/ebuild-writing/functions/src_compile/text.xml |
517 |
index 89350cb..ef713aa 100644 |
518 |
--- a/ebuild-writing/functions/src_compile/text.xml |
519 |
+++ b/ebuild-writing/functions/src_compile/text.xml |
520 |
@@ -36,12 +36,12 @@ |
521 |
<body> |
522 |
<codesample lang="ebuild"> |
523 |
src_compile() { |
524 |
- if [ -x ./configure ]; then |
525 |
- econf |
526 |
- fi |
527 |
- if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then |
528 |
- emake || die "emake failed" |
529 |
- fi |
530 |
+ if [ -x ./configure ]; then |
531 |
+ econf |
532 |
+ fi |
533 |
+ if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then |
534 |
+ emake || die "emake failed" |
535 |
+ fi |
536 |
} |
537 |
</codesample> |
538 |
</body> |
539 |
@@ -51,9 +51,9 @@ src_compile() { |
540 |
<body> |
541 |
<codesample lang="ebuild"> |
542 |
src_compile() { |
543 |
- if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then |
544 |
- emake || die "emake failed" |
545 |
- fi |
546 |
+ if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then |
547 |
+ emake || die "emake failed" |
548 |
+ fi |
549 |
} |
550 |
</codesample> |
551 |
</body> |
552 |
@@ -69,14 +69,14 @@ src_compile() { |
553 |
<body> |
554 |
<codesample lang="ebuild"> |
555 |
src_compile() { |
556 |
- use sparc && filter-flags -fomit-frame-pointer |
557 |
- append-ldflags -Wl,-z,now |
558 |
+ use sparc && filter-flags -fomit-frame-pointer |
559 |
+ append-ldflags -Wl,-z,now |
560 |
|
561 |
- econf \ |
562 |
- $(use_enable ssl ) \ |
563 |
- $(use_enable perl perlinterp ) |
564 |
+ econf \ |
565 |
+ $(use_enable ssl ) \ |
566 |
+ $(use_enable perl perlinterp ) |
567 |
|
568 |
- emake || die "Make failed!" |
569 |
+ emake || die "Make failed!" |
570 |
} |
571 |
</codesample> |
572 |
<note> |
573 |
|
574 |
diff --git a/ebuild-writing/functions/src_configure/configuring/text.xml b/ebuild-writing/functions/src_configure/configuring/text.xml |
575 |
index 4ae1101..a31dc4e 100644 |
576 |
--- a/ebuild-writing/functions/src_configure/configuring/text.xml |
577 |
+++ b/ebuild-writing/functions/src_configure/configuring/text.xml |
578 |
@@ -30,18 +30,18 @@ where appropriate, be used to generate these switches. |
579 |
|
580 |
<codesample lang="ebuild"> |
581 |
src_configure() { |
582 |
- # We have optional perl, python and ruby support |
583 |
- econf \ |
584 |
- $(use_enable perl ) \ |
585 |
- $(use_enable python ) \ |
586 |
- $(use_enable ruby ) |
587 |
+ # We have optional perl, python and ruby support |
588 |
+ econf \ |
589 |
+ $(use_enable perl ) \ |
590 |
+ $(use_enable python ) \ |
591 |
+ $(use_enable ruby ) |
592 |
} |
593 |
|
594 |
src_configure() { |
595 |
- # Our package optional IPv6 support which uses --with rather than |
596 |
- # --enable / --disable |
597 |
+ # Our package optional IPv6 support which uses --with rather than |
598 |
+ # --enable / --disable |
599 |
|
600 |
- econf $(use_with ipv6 ) |
601 |
+ econf $(use_with ipv6 ) |
602 |
} |
603 |
</codesample> |
604 |
|
605 |
@@ -54,17 +54,17 @@ argument forms: |
606 |
|
607 |
<codesample lang="ebuild"> |
608 |
src_configure() { |
609 |
- # Our package has optional perl, python and ruby support |
610 |
- econf \ |
611 |
- $(use_enable perl perlinterp ) \ |
612 |
- $(use_enable python pythoninterp ) \ |
613 |
- $(use_enable ruby rubyinterp ) |
614 |
+ # Our package has optional perl, python and ruby support |
615 |
+ econf \ |
616 |
+ $(use_enable perl perlinterp ) \ |
617 |
+ $(use_enable python pythoninterp ) \ |
618 |
+ $(use_enable ruby rubyinterp ) |
619 |
|
620 |
- # ... |
621 |
+ # ... |
622 |
} |
623 |
|
624 |
src_configure() { |
625 |
- econf $(use_with X x11 ) |
626 |
+ econf $(use_with X x11 ) |
627 |
} |
628 |
</codesample> |
629 |
|
630 |
|
631 |
diff --git a/ebuild-writing/functions/src_configure/text.xml b/ebuild-writing/functions/src_configure/text.xml |
632 |
index 0740309..5bc5803 100644 |
633 |
--- a/ebuild-writing/functions/src_configure/text.xml |
634 |
+++ b/ebuild-writing/functions/src_configure/text.xml |
635 |
@@ -38,8 +38,8 @@ |
636 |
<codesample lang="ebuild"> |
637 |
src_configure() { |
638 |
if [[ -x ${ECONF_SOURCE:-.}/configure ]] ; then |
639 |
- econf |
640 |
- fi |
641 |
+ econf |
642 |
+ fi |
643 |
} |
644 |
</codesample> |
645 |
</body> |
646 |
@@ -50,12 +50,12 @@ src_configure() { |
647 |
<body> |
648 |
<codesample lang="ebuild"> |
649 |
src_configure() { |
650 |
- use sparc && filter-flags -fomit-frame-pointer |
651 |
- append-ldflags -Wl,-z,now |
652 |
+ use sparc && filter-flags -fomit-frame-pointer |
653 |
+ append-ldflags -Wl,-z,now |
654 |
|
655 |
- econf \ |
656 |
- $(use_enable ssl ) \ |
657 |
- $(use_enable perl perlinterp ) |
658 |
+ econf \ |
659 |
+ $(use_enable ssl ) \ |
660 |
+ $(use_enable perl perlinterp ) |
661 |
} |
662 |
</codesample> |
663 |
</body> |
664 |
|
665 |
diff --git a/ebuild-writing/functions/src_install/text.xml b/ebuild-writing/functions/src_install/text.xml |
666 |
index a1746d9..308c718 100644 |
667 |
--- a/ebuild-writing/functions/src_install/text.xml |
668 |
+++ b/ebuild-writing/functions/src_install/text.xml |
669 |
@@ -38,7 +38,7 @@ following: |
670 |
<codesample lang="ebuild"> |
671 |
src_install() |
672 |
{ |
673 |
- return |
674 |
+ return |
675 |
} |
676 |
</codesample> |
677 |
<p> |
678 |
@@ -68,10 +68,10 @@ For EAPIs 6 and later, the default <c>src_install</c> function is the following: |
679 |
</p> |
680 |
<codesample lang="ebuild"> |
681 |
src_install() { |
682 |
- if [[ -f Makefile ]] || [[ -f GNUmakefile ]] || [[ -f makefile ]] ; then |
683 |
- emake DESTDIR="${D}" install |
684 |
- fi |
685 |
- einstalldocs |
686 |
+ if [[ -f Makefile ]] || [[ -f GNUmakefile ]] || [[ -f makefile ]] ; then |
687 |
+ emake DESTDIR="${D}" install |
688 |
+ fi |
689 |
+ einstalldocs |
690 |
} |
691 |
</codesample> |
692 |
<important>The following examples assume EAPI 4 or later</important> |
693 |
@@ -84,8 +84,8 @@ src_install() { |
694 |
|
695 |
<codesample lang="ebuild"> |
696 |
src_install() { |
697 |
- emake DESTDIR="${D}" install |
698 |
- dodoc README CHANGES |
699 |
+ emake DESTDIR="${D}" install |
700 |
+ dodoc README CHANGES |
701 |
} |
702 |
</codesample> |
703 |
|
704 |
@@ -102,7 +102,7 @@ install to a non-root location. If possible, this should be used: |
705 |
</p> |
706 |
|
707 |
<codesample lang="ebuild"> |
708 |
- emake DESTDIR="${D}" install |
709 |
+ emake DESTDIR="${D}" install |
710 |
</codesample> |
711 |
|
712 |
<note> |
713 |
@@ -120,8 +120,8 @@ if you hit an error. |
714 |
</p> |
715 |
|
716 |
<codesample lang="ebuild"> |
717 |
- einstall |
718 |
- dodoc README CHANGES |
719 |
+ einstall |
720 |
+ dodoc README CHANGES |
721 |
</codesample> |
722 |
|
723 |
<note> |
724 |
@@ -146,8 +146,8 @@ compilation required) themes: |
725 |
</p> |
726 |
|
727 |
<codesample lang="ebuild"> |
728 |
- dodir /usr/share/foo-styles/ |
729 |
- cp -R "${S}/" "${D}/" || die "Install failed!" |
730 |
+ dodir /usr/share/foo-styles/ |
731 |
+ cp -R "${S}/" "${D}/" || die "Install failed!" |
732 |
</codesample> |
733 |
|
734 |
<p> |
735 |
@@ -158,52 +158,52 @@ upon the <c>sys-fs/udev</c> install: |
736 |
|
737 |
<codesample lang="ebuild"> |
738 |
src_install() { |
739 |
- dobin udevinfo |
740 |
- dobin udevtest |
741 |
- into / |
742 |
- dosbin udev |
743 |
- dosbin udevd |
744 |
- dosbin udevsend |
745 |
- dosbin udevstart |
746 |
- dosbin extras/scsi_id/scsi_id |
747 |
- dosbin extras/volume_id/udev_volume_id |
748 |
- |
749 |
- exeinto /etc/udev/scripts |
750 |
- doexe extras/ide-devfs.sh |
751 |
- doexe extras/scsi-devfs.sh |
752 |
- doexe extras/cdsymlinks.sh |
753 |
- doexe extras/dvb.sh |
754 |
- |
755 |
- insinto /etc/udev |
756 |
- newins "${FILESDIR}/udev.conf.post_050" udev.conf |
757 |
- doins extras/cdsymlinks.conf |
758 |
- |
759 |
- # For devfs style layout |
760 |
- insinto /etc/udev/rules.d/ |
761 |
- newins etc/udev/gentoo/udev.rules 50-udev.rules |
762 |
- |
763 |
- # scsi_id configuration |
764 |
- insinto /etc |
765 |
- doins extras/scsi_id/scsi_id.config |
766 |
- |
767 |
- # set up symlinks in /etc/hotplug.d/default |
768 |
- dodir /etc/hotplug.d/default |
769 |
- dosym ../../../sbin/udevsend /etc/hotplug.d/default/10-udev.hotplug |
770 |
- |
771 |
- # set up the /etc/dev.d directory tree |
772 |
- dodir /etc/dev.d/default |
773 |
- dodir /etc/dev.d/net |
774 |
- exeinto /etc/dev.d/net |
775 |
- doexe etc/dev.d/net/hotplug.dev |
776 |
- |
777 |
- doman *.8 |
778 |
- doman extras/scsi_id/scsi_id.8 |
779 |
- |
780 |
- dodoc ChangeLog FAQ HOWTO-udev_for_dev README TODO |
781 |
- dodoc docs/{overview,udev-OLS2003.pdf,udev_vs_devfs,RFC-dev.d,libsysfs.txt} |
782 |
- dodoc docs/persistent_naming/* docs/writing_udev_rules/* |
783 |
- |
784 |
- newdoc extras/volume_id/README README_volume_id |
785 |
+ dobin udevinfo |
786 |
+ dobin udevtest |
787 |
+ into / |
788 |
+ dosbin udev |
789 |
+ dosbin udevd |
790 |
+ dosbin udevsend |
791 |
+ dosbin udevstart |
792 |
+ dosbin extras/scsi_id/scsi_id |
793 |
+ dosbin extras/volume_id/udev_volume_id |
794 |
+ |
795 |
+ exeinto /etc/udev/scripts |
796 |
+ doexe extras/ide-devfs.sh |
797 |
+ doexe extras/scsi-devfs.sh |
798 |
+ doexe extras/cdsymlinks.sh |
799 |
+ doexe extras/dvb.sh |
800 |
+ |
801 |
+ insinto /etc/udev |
802 |
+ newins "${FILESDIR}/udev.conf.post_050" udev.conf |
803 |
+ doins extras/cdsymlinks.conf |
804 |
+ |
805 |
+ # For devfs style layout |
806 |
+ insinto /etc/udev/rules.d/ |
807 |
+ newins etc/udev/gentoo/udev.rules 50-udev.rules |
808 |
+ |
809 |
+ # scsi_id configuration |
810 |
+ insinto /etc |
811 |
+ doins extras/scsi_id/scsi_id.config |
812 |
+ |
813 |
+ # set up symlinks in /etc/hotplug.d/default |
814 |
+ dodir /etc/hotplug.d/default |
815 |
+ dosym ../../../sbin/udevsend /etc/hotplug.d/default/10-udev.hotplug |
816 |
+ |
817 |
+ # set up the /etc/dev.d directory tree |
818 |
+ dodir /etc/dev.d/default |
819 |
+ dodir /etc/dev.d/net |
820 |
+ exeinto /etc/dev.d/net |
821 |
+ doexe etc/dev.d/net/hotplug.dev |
822 |
+ |
823 |
+ doman *.8 |
824 |
+ doman extras/scsi_id/scsi_id.8 |
825 |
+ |
826 |
+ dodoc ChangeLog FAQ HOWTO-udev_for_dev README TODO |
827 |
+ dodoc docs/{overview,udev-OLS2003.pdf,udev_vs_devfs,RFC-dev.d,libsysfs.txt} |
828 |
+ dodoc docs/persistent_naming/* docs/writing_udev_rules/* |
829 |
+ |
830 |
+ newdoc extras/volume_id/README README_volume_id |
831 |
} |
832 |
</codesample> |
833 |
|
834 |
|
835 |
diff --git a/ebuild-writing/functions/src_prepare/epatch/text.xml b/ebuild-writing/functions/src_prepare/epatch/text.xml |
836 |
index b873661..65386dd 100644 |
837 |
--- a/ebuild-writing/functions/src_prepare/epatch/text.xml |
838 |
+++ b/ebuild-writing/functions/src_prepare/epatch/text.xml |
839 |
@@ -29,10 +29,10 @@ fails. The following is taken from <c>app-misc/detox</c>: |
840 |
|
841 |
<codesample lang="ebuild"> |
842 |
src_unpack() { |
843 |
- unpack ${A} |
844 |
- cd "${S}" |
845 |
- epatch "${FILESDIR}/${P}-destdir.patch" |
846 |
- epatch "${FILESDIR}/${P}-parallel_build.patch" |
847 |
+ unpack ${A} |
848 |
+ cd "${S}" |
849 |
+ epatch "${FILESDIR}/${P}-destdir.patch" |
850 |
+ epatch "${FILESDIR}/${P}-parallel_build.patch" |
851 |
} |
852 |
</codesample> |
853 |
|
854 |
@@ -49,10 +49,10 @@ be compressed). For example, from <c>app-admin/showconsole</c>: |
855 |
|
856 |
<codesample lang="ebuild"> |
857 |
src_unpack() { |
858 |
- unpack ${A} |
859 |
- cd "${S}" |
860 |
- epatch "${WORKDIR}/${P}-suse-update.patch.bz2" |
861 |
- epatch "${FILESDIR}/${PV}-no-TIOCGDEV.patch" |
862 |
+ unpack ${A} |
863 |
+ cd "${S}" |
864 |
+ epatch "${WORKDIR}/${P}-suse-update.patch.bz2" |
865 |
+ epatch "${FILESDIR}/${PV}-no-TIOCGDEV.patch" |
866 |
} |
867 |
</codesample> |
868 |
<p>As stated before, if you are using EAPI >=2, you should apply the patches in the <uri link="::ebuild-writing/functions/src_prepare">src_prepare</uri> function</p> |
869 |
@@ -85,10 +85,10 @@ A simple example: |
870 |
|
871 |
<codesample lang="ebuild"> |
872 |
src_unpack() { |
873 |
- unpack ${A} |
874 |
- cd "${S}" |
875 |
- EPATCH_SOURCE="${WORKDIR}/patches" EPATCH_SUFFIX="patch" \ |
876 |
- EPATCH_FORCE="yes" epatch |
877 |
+ unpack ${A} |
878 |
+ cd "${S}" |
879 |
+ EPATCH_SOURCE="${WORKDIR}/patches" EPATCH_SUFFIX="patch" \ |
880 |
+ EPATCH_FORCE="yes" epatch |
881 |
} |
882 |
</codesample> |
883 |
|
884 |
|
885 |
diff --git a/ebuild-writing/functions/src_prepare/text.xml b/ebuild-writing/functions/src_prepare/text.xml |
886 |
index 932190e..2a30581 100644 |
887 |
--- a/ebuild-writing/functions/src_prepare/text.xml |
888 |
+++ b/ebuild-writing/functions/src_prepare/text.xml |
889 |
@@ -48,10 +48,10 @@ src_prepare() { |
890 |
<body> |
891 |
<codesample lang="ebuild"> |
892 |
src_prepare() { |
893 |
- epatch "${FILESDIR}/${PV}/${P}-fix-bogosity.patch" |
894 |
- use pam && epatch "${FILESDIR}/${PV}/${P}-pam.patch" |
895 |
+ epatch "${FILESDIR}/${PV}/${P}-fix-bogosity.patch" |
896 |
+ use pam && epatch "${FILESDIR}/${PV}/${P}-pam.patch" |
897 |
|
898 |
- sed -i -e 's/"ispell"/"aspell"/' src/defaults.h || die "Sed failed!" |
899 |
+ sed -i -e 's/"ispell"/"aspell"/' src/defaults.h || die "Sed failed!" |
900 |
} |
901 |
</codesample> |
902 |
</body> |
903 |
|
904 |
diff --git a/ebuild-writing/functions/src_test/text.xml b/ebuild-writing/functions/src_test/text.xml |
905 |
index 56dd113..135eb39 100644 |
906 |
--- a/ebuild-writing/functions/src_test/text.xml |
907 |
+++ b/ebuild-writing/functions/src_test/text.xml |
908 |
@@ -49,14 +49,14 @@ src_test() { |
909 |
<body> |
910 |
<codesample lang="ebuild"> |
911 |
src_test() { |
912 |
- cd "${S}"/src/testdir || die |
913 |
+ cd "${S}"/src/testdir || die |
914 |
|
915 |
- # Test 49 won't work inside a portage environment |
916 |
- sed -i -e 's~test49.out~~g' Makefile || die |
917 |
+ # Test 49 won't work inside a portage environment |
918 |
+ sed -i -e 's~test49.out~~g' Makefile || die |
919 |
|
920 |
- # Try to run the non-gui tests only |
921 |
- # pass -j1 if tests do not support being run in parallel |
922 |
- emake -j1 test-nongui |
923 |
+ # Try to run the non-gui tests only |
924 |
+ # pass -j1 if tests do not support being run in parallel |
925 |
+ emake -j1 test-nongui |
926 |
} |
927 |
</codesample> |
928 |
</body> |
929 |
|
930 |
diff --git a/ebuild-writing/functions/src_unpack/cvs-sources/text.xml b/ebuild-writing/functions/src_unpack/cvs-sources/text.xml |
931 |
index b8ee2a4..6f00270 100644 |
932 |
--- a/ebuild-writing/functions/src_unpack/cvs-sources/text.xml |
933 |
+++ b/ebuild-writing/functions/src_unpack/cvs-sources/text.xml |
934 |
@@ -148,17 +148,17 @@ inherit cvs |
935 |
SRC_URI="" |
936 |
|
937 |
src_unpack() { |
938 |
- ECVS_SERVER="cvs.sourceforge.net:/cvsroot/vim" |
939 |
- ECVS_USER="anonymous" |
940 |
- ECVS_PASS="" |
941 |
- ECVS_AUTH="pserver" |
942 |
- if [[ $(get_major_version ) -ge 7 ]] ; then |
943 |
- ECVS_MODULE="vim7" |
944 |
- else |
945 |
- ECVS_MODULE="vim" |
946 |
- fi |
947 |
- ECVS_TOP_DIR="${DISTDIR}/cvs-src/${ECVS_MODULE}" |
948 |
- cvs_src_unpack |
949 |
+ ECVS_SERVER="cvs.sourceforge.net:/cvsroot/vim" |
950 |
+ ECVS_USER="anonymous" |
951 |
+ ECVS_PASS="" |
952 |
+ ECVS_AUTH="pserver" |
953 |
+ if [[ $(get_major_version ) -ge 7 ]] ; then |
954 |
+ ECVS_MODULE="vim7" |
955 |
+ else |
956 |
+ ECVS_MODULE="vim" |
957 |
+ fi |
958 |
+ ECVS_TOP_DIR="${DISTDIR}/cvs-src/${ECVS_MODULE}" |
959 |
+ cvs_src_unpack |
960 |
} |
961 |
</codesample> |
962 |
|
963 |
|
964 |
diff --git a/ebuild-writing/functions/src_unpack/rpm-sources/text.xml b/ebuild-writing/functions/src_unpack/rpm-sources/text.xml |
965 |
index 9382109..0142b2f 100644 |
966 |
--- a/ebuild-writing/functions/src_unpack/rpm-sources/text.xml |
967 |
+++ b/ebuild-writing/functions/src_unpack/rpm-sources/text.xml |
968 |
@@ -25,10 +25,10 @@ manner such as: |
969 |
|
970 |
<codesample lang="ebuild"> |
971 |
src_unpack () { |
972 |
- rpm_src_unpack ${A} |
973 |
- cd "${S}" |
974 |
+ rpm_src_unpack ${A} |
975 |
+ cd "${S}" |
976 |
|
977 |
- use ssl && epatch "${FILESDIR}/${PV}/${P}-ssl.patch" |
978 |
+ use ssl && epatch "${FILESDIR}/${PV}/${P}-ssl.patch" |
979 |
} |
980 |
</codesample> |
981 |
|
982 |
@@ -83,10 +83,10 @@ RESTRICT="mirror" |
983 |
S=${WORKDIR}/fetchmail-$(get_version_component_range 1-3) |
984 |
|
985 |
src_unpack () { |
986 |
- rpm_src_unpack ${A} |
987 |
- cd "${S}" |
988 |
- EPATCH_SOURCE="${WORKDIR}" EPATCH_SUFFIX="patch" \ |
989 |
- EPATCH_FORCE="yes" epatch |
990 |
+ rpm_src_unpack ${A} |
991 |
+ cd "${S}" |
992 |
+ EPATCH_SOURCE="${WORKDIR}" EPATCH_SUFFIX="patch" \ |
993 |
+ EPATCH_FORCE="yes" epatch |
994 |
} |
995 |
</codesample> |
996 |
|
997 |
|
998 |
diff --git a/ebuild-writing/functions/src_unpack/text.xml b/ebuild-writing/functions/src_unpack/text.xml |
999 |
index 542b3fb..a964a74 100644 |
1000 |
--- a/ebuild-writing/functions/src_unpack/text.xml |
1001 |
+++ b/ebuild-writing/functions/src_unpack/text.xml |
1002 |
@@ -33,9 +33,9 @@ |
1003 |
<body> |
1004 |
<codesample lang="ebuild"> |
1005 |
src_unpack() { |
1006 |
- if [ "${A}" != "" ]; then |
1007 |
- unpack ${A} |
1008 |
- fi |
1009 |
+ if [ "${A}" != "" ]; then |
1010 |
+ unpack ${A} |
1011 |
+ fi |
1012 |
} |
1013 |
</codesample> |
1014 |
</body> |
1015 |
@@ -46,13 +46,13 @@ src_unpack() { |
1016 |
<body> |
1017 |
<codesample lang="ebuild"> |
1018 |
src_unpack() { |
1019 |
- unpack ${A} |
1020 |
- cd "${S}" |
1021 |
+ unpack ${A} |
1022 |
+ cd "${S}" |
1023 |
|
1024 |
- epatch "${FILESDIR}/${PV}/${P}-fix-bogosity.patch" |
1025 |
- use pam && epatch "${FILESDIR}/${PV}/${P}-pam.patch" |
1026 |
+ epatch "${FILESDIR}/${PV}/${P}-fix-bogosity.patch" |
1027 |
+ use pam && epatch "${FILESDIR}/${PV}/${P}-pam.patch" |
1028 |
|
1029 |
- sed -i -e 's/"ispell"/"aspell"/' src/defaults.h || die "Sed failed!" |
1030 |
+ sed -i -e 's/"ispell"/"aspell"/' src/defaults.h || die "Sed failed!" |
1031 |
} |
1032 |
</codesample> |
1033 |
<note> |
1034 |
|
1035 |
diff --git a/ebuild-writing/messages/text.xml b/ebuild-writing/messages/text.xml |
1036 |
index 1012edf..f8b81d6 100644 |
1037 |
--- a/ebuild-writing/messages/text.xml |
1038 |
+++ b/ebuild-writing/messages/text.xml |
1039 |
@@ -45,9 +45,9 @@ with a green asterisk. On earlier versions, elog behaves just like einfo. |
1040 |
|
1041 |
<codesample lang="ebuild"> |
1042 |
pkg_postinst() { |
1043 |
- elog "You will need to set up your /etc/foo/foo.conf file before" |
1044 |
- elog "running foo for the first time. For details, please see the" |
1045 |
- elog "foo.conf(5) manual page." |
1046 |
+ elog "You will need to set up your /etc/foo/foo.conf file before" |
1047 |
+ elog "running foo for the first time. For details, please see the" |
1048 |
+ elog "foo.conf(5) manual page." |
1049 |
} |
1050 |
</codesample> |
1051 |
|
1052 |
@@ -61,8 +61,8 @@ logged by default. |
1053 |
|
1054 |
<codesample lang="ebuild"> |
1055 |
src_compile() { |
1056 |
- einfo "Starting a silent compile that takes hours." |
1057 |
- ./build |
1058 |
+ einfo "Starting a silent compile that takes hours." |
1059 |
+ ./build |
1060 |
} |
1061 |
</codesample> |
1062 |
|
1063 |
@@ -129,7 +129,7 @@ Here is an example of a bad message: |
1064 |
<codesample lang="ebuild"> |
1065 |
i=10 |
1066 |
while ((i--)) ; do |
1067 |
- ewarn "PLEASE UPDATE TO YOUR PACKAGE TO USE linux-info.eclass" |
1068 |
+ ewarn "PLEASE UPDATE TO YOUR PACKAGE TO USE linux-info.eclass" |
1069 |
done |
1070 |
</codesample> |
1071 |
|
1072 |
|
1073 |
diff --git a/ebuild-writing/use-conditional-code/text.xml b/ebuild-writing/use-conditional-code/text.xml |
1074 |
index bc95f84..b949fc0 100644 |
1075 |
--- a/ebuild-writing/use-conditional-code/text.xml |
1076 |
+++ b/ebuild-writing/use-conditional-code/text.xml |
1077 |
@@ -25,25 +25,25 @@ statement. See <uri link="::ebuild-writing/error-handling/#die and Subshells"/>. |
1078 |
</note> |
1079 |
|
1080 |
<codesample lang="ebuild"> |
1081 |
- # USE conditional blocks... |
1082 |
- if use livecd ; then |
1083 |
- # remove some extra files for a small livecd install |
1084 |
- rm -fr "${vimfiles}"/{compiler,doc,ftplugin,indent} |
1085 |
- fi |
1086 |
+ # USE conditional blocks... |
1087 |
+ if use livecd ; then |
1088 |
+ # remove some extra files for a small livecd install |
1089 |
+ rm -fr "${vimfiles}"/{compiler,doc,ftplugin,indent} |
1090 |
+ fi |
1091 |
|
1092 |
- # Inverse USE conditional blocks... |
1093 |
- if ! use cscope ; then |
1094 |
- # the --disable-cscope configure arg doesn't quite work properly, |
1095 |
- # so sed it out of feature.h if we're not USEing cscope. |
1096 |
- sed -i -e '/# define FEAT_CSCOPE/d' src/feature.h || die "couldn't disable cscope" |
1097 |
- fi |
1098 |
+ # Inverse USE conditional blocks... |
1099 |
+ if ! use cscope ; then |
1100 |
+ # the --disable-cscope configure arg doesn't quite work properly, |
1101 |
+ # so sed it out of feature.h if we're not USEing cscope. |
1102 |
+ sed -i -e '/# define FEAT_CSCOPE/d' src/feature.h || die "couldn't disable cscope" |
1103 |
+ fi |
1104 |
|
1105 |
- # USE conditional statements... |
1106 |
- use ssl && epatch "${FILESDIR}/${P}-ssl.patch" |
1107 |
- use sparc && filter-flags -fomit-frame-pointer |
1108 |
+ # USE conditional statements... |
1109 |
+ use ssl && epatch "${FILESDIR}/${P}-ssl.patch" |
1110 |
+ use sparc && filter-flags -fomit-frame-pointer |
1111 |
|
1112 |
- # Inverse USE conditional statements... |
1113 |
- use ncurses || epatch "${FILESDIR}/${P}-no-ncurses.patch" |
1114 |
+ # Inverse USE conditional statements... |
1115 |
+ use ncurses || epatch "${FILESDIR}/${P}-no-ncurses.patch" |
1116 |
</codesample> |
1117 |
|
1118 |
<p> |
1119 |
|
1120 |
diff --git a/ebuild-writing/using-eclasses/text.xml b/ebuild-writing/using-eclasses/text.xml |
1121 |
index 133e6a9..912e330 100644 |
1122 |
--- a/ebuild-writing/using-eclasses/text.xml |
1123 |
+++ b/ebuild-writing/using-eclasses/text.xml |
1124 |
@@ -48,7 +48,7 @@ SLOT="0" |
1125 |
KEYWORDS="alpha ~amd64 ~x86 ~x86-fbsd" |
1126 |
|
1127 |
RDEPEND=">=sys-libs/ncurses-5.2 |
1128 |
- >=sys-libs/readline-4.1" |
1129 |
+ >=sys-libs/readline-4.1" |
1130 |
DEPEND="${RDEPEND}" |
1131 |
|
1132 |
src_prepare() { |
1133 |
|
1134 |
diff --git a/ebuild-writing/variables/text.xml b/ebuild-writing/variables/text.xml |
1135 |
index 5c800ad..66efdb7 100644 |
1136 |
--- a/ebuild-writing/variables/text.xml |
1137 |
+++ b/ebuild-writing/variables/text.xml |
1138 |
@@ -337,10 +337,10 @@ packages <d/> downloading sparc binaries on ppc would be a waste of bandwidth. |
1139 |
|
1140 |
<codesample lang="ebuild"> |
1141 |
SRC_URI="http://example.com/files/${P}-core.tar.bz2 |
1142 |
- x86? ( http://example.com/files/${P}/${P}-sse-asm.tar.bz2 ) |
1143 |
- ppc? ( http://example.com/files/${P}/${P}-vmx-asm.tar.bz2 ) |
1144 |
- sparc? ( http://example.com/files/${P}/${P}-vis-asm.tar.bz2 ) |
1145 |
- doc? ( http://example.com/files/${P}/${P}-docs.tar.bz2 )" |
1146 |
+ x86? ( http://example.com/files/${P}/${P}-sse-asm.tar.bz2 ) |
1147 |
+ ppc? ( http://example.com/files/${P}/${P}-vmx-asm.tar.bz2 ) |
1148 |
+ sparc? ( http://example.com/files/${P}/${P}-vis-asm.tar.bz2 ) |
1149 |
+ doc? ( http://example.com/files/${P}/${P}-docs.tar.bz2 )" |
1150 |
</codesample> |
1151 |
|
1152 |
<p> |
1153 |
@@ -351,13 +351,13 @@ generally to install <e>all</e> available components. |
1154 |
|
1155 |
<codesample lang="ebuild"> |
1156 |
SRC_URI="http://example.com/files/${P}-core.tar.bz2 |
1157 |
- examplecards_foo? ( http://example.com/files/${P}-foo.tar.bz2 ) |
1158 |
- examplecards_bar? ( http://example.com/files/${P}-bar.tar.bz2 ) |
1159 |
- examplecards_baz? ( http://example.com/files/${P}-baz.tar.bz2 ) |
1160 |
- !examplecards_foo? ( !examplecards_bar? ( !examplecards_baz? ( |
1161 |
- http://example.com/files/${P}-foo.tar.bz2 |
1162 |
- http://example.com/files/${P}-bar.tar.bz2 |
1163 |
- http://example.com/files/${P}-baz.tar.bz2 ) ) )" |
1164 |
+ examplecards_foo? ( http://example.com/files/${P}-foo.tar.bz2 ) |
1165 |
+ examplecards_bar? ( http://example.com/files/${P}-bar.tar.bz2 ) |
1166 |
+ examplecards_baz? ( http://example.com/files/${P}-baz.tar.bz2 ) |
1167 |
+ !examplecards_foo? ( !examplecards_bar? ( !examplecards_baz? ( |
1168 |
+ http://example.com/files/${P}-foo.tar.bz2 |
1169 |
+ http://example.com/files/${P}-bar.tar.bz2 |
1170 |
+ http://example.com/files/${P}-baz.tar.bz2 ) ) )" |
1171 |
</codesample> |
1172 |
|
1173 |
</body> |
1174 |
|
1175 |
diff --git a/eclass-writing/text.xml b/eclass-writing/text.xml |
1176 |
index 9064616..db7d9f1 100644 |
1177 |
--- a/eclass-writing/text.xml |
1178 |
+++ b/eclass-writing/text.xml |
1179 |
@@ -627,11 +627,11 @@ a single function, <c>domacosapp</c>. |
1180 |
# [new-file] is given, it will be used as the new (installed) name of |
1181 |
# the file. Otherwise <app-file> is installed as-is. |
1182 |
domacosapp() { |
1183 |
- [[ -z "${1}" ]] && die "usage: domacosapp <file> [new file]" |
1184 |
- if use ppc-macos ; then |
1185 |
- insinto /Applications |
1186 |
- newins "$1" "${2:-${1}}" || die "Failed to install ${1}" |
1187 |
- fi |
1188 |
+ [[ -z "${1}" ]] && die "usage: domacosapp <file> [new file]" |
1189 |
+ if use ppc-macos ; then |
1190 |
+ insinto /Applications |
1191 |
+ newins "$1" "${2:-${1}}" || die "Failed to install ${1}" |
1192 |
+ fi |
1193 |
} |
1194 |
</codesample> |
1195 |
|
1196 |
@@ -667,7 +667,7 @@ eclass-defined defaults <d/> for example, say we had <c>fnord.eclass</c>: |
1197 |
EXPORT_FUNCTIONS src_compile |
1198 |
|
1199 |
fnord_src_compile() { |
1200 |
- do_stuff || die |
1201 |
+ do_stuff || die |
1202 |
} |
1203 |
</codesample> |
1204 |
|
1205 |
@@ -679,9 +679,9 @@ Then an ebuild could do this: |
1206 |
inherit fnord.eclass |
1207 |
|
1208 |
src_compile() { |
1209 |
- do_pre_stuff || die |
1210 |
- fnord_src_compile |
1211 |
- do_post_stuff || die |
1212 |
+ do_pre_stuff || die |
1213 |
+ fnord_src_compile |
1214 |
+ do_post_stuff || die |
1215 |
} |
1216 |
</codesample> |
1217 |
|
1218 |
@@ -722,7 +722,7 @@ DEPEND=">=sys-devel/jmake-2" |
1219 |
# Passes all arguments through to the appropriate "jmake configure" |
1220 |
# command. |
1221 |
jmake-configure() { |
1222 |
- jmake configure --prefix=/usr "$@" |
1223 |
+ jmake configure --prefix=/usr "$@" |
1224 |
} |
1225 |
|
1226 |
# @FUNCTION: jmake-build |
1227 |
@@ -731,15 +731,15 @@ jmake-configure() { |
1228 |
# First builds all dependencies, and then passes through its arguments |
1229 |
# to the appropriate "jmake build" command. |
1230 |
jmake-build() { |
1231 |
- jmake dep && jmake build "$@" |
1232 |
+ jmake dep && jmake build "$@" |
1233 |
} |
1234 |
|
1235 |
# @FUNCTION: jmake-src_compile |
1236 |
# @DESCRIPTION: |
1237 |
# Calls jmake-configure() and jmake-build() to compile a jmake project. |
1238 |
jmake_src_compile() { |
1239 |
- jmake-configure || die "configure failed" |
1240 |
- jmake-build || die "build failed" |
1241 |
+ jmake-configure || die "configure failed" |
1242 |
+ jmake-build || die "build failed" |
1243 |
} |
1244 |
</codesample> |
1245 |
|
1246 |
@@ -769,8 +769,8 @@ for an eclass to invoke die from the global scope. For example: |
1247 |
# @BLURB: Calls die when used with an invalid EAPI. |
1248 |
|
1249 |
case ${EAPI:-0} in |
1250 |
- 0) die "this eclass doesn't support EAPI 0" ;; |
1251 |
- *) ;; |
1252 |
+ 0) die "this eclass doesn't support EAPI 0" ;; |
1253 |
+ *) ;; |
1254 |
esac |
1255 |
</codesample> |
1256 |
</body> |
1257 |
|
1258 |
diff --git a/general-concepts/autotools/text.xml b/general-concepts/autotools/text.xml |
1259 |
index 554943a..beb3ff6 100644 |
1260 |
--- a/general-concepts/autotools/text.xml |
1261 |
+++ b/general-concepts/autotools/text.xml |
1262 |
@@ -129,18 +129,18 @@ EAPI=5 |
1263 |
inherit autotools |
1264 |
|
1265 |
src_prepare() { |
1266 |
- # Remove problematic LDFLAGS declaration |
1267 |
- sed -i -e '/^LDFLAGS/d' src/Makefile.am || die |
1268 |
+ # Remove problematic LDFLAGS declaration |
1269 |
+ sed -i -e '/^LDFLAGS/d' src/Makefile.am || die |
1270 |
|
1271 |
- # Rerun autotools |
1272 |
- einfo "Regenerating autotools files..." |
1273 |
- WANT_AUTOCONF=2.5 eautoconf |
1274 |
- WANT_AUTOMAKE=1.9 eautomake |
1275 |
+ # Rerun autotools |
1276 |
+ einfo "Regenerating autotools files..." |
1277 |
+ WANT_AUTOCONF=2.5 eautoconf |
1278 |
+ WANT_AUTOMAKE=1.9 eautomake |
1279 |
} |
1280 |
|
1281 |
src_compile() { |
1282 |
- econf $(use_enable nls) |
1283 |
- emake |
1284 |
+ econf $(use_enable nls) |
1285 |
+ emake |
1286 |
} |
1287 |
</codesample> |
1288 |
|
1289 |
|
1290 |
diff --git a/general-concepts/dependencies/text.xml b/general-concepts/dependencies/text.xml |
1291 |
index 7c8caeb..e43390c 100644 |
1292 |
--- a/general-concepts/dependencies/text.xml |
1293 |
+++ b/general-concepts/dependencies/text.xml |
1294 |
@@ -104,8 +104,8 @@ A basic <c>DEPEND</c> specification might look like the following: |
1295 |
|
1296 |
<codesample lang="ebuild"> |
1297 |
DEPEND="dev-lang/ruby |
1298 |
- dev-ruby/ruby-gtk2 |
1299 |
- dev-ruby/mysql-ruby" |
1300 |
+ dev-ruby/ruby-gtk2 |
1301 |
+ dev-ruby/mysql-ruby" |
1302 |
</codesample> |
1303 |
|
1304 |
<p> |
1305 |
@@ -308,7 +308,7 @@ the package name, where 'SLOT' is the <c>SLOT</c> of the package wanted: |
1306 |
|
1307 |
<codesample lang="ebuild"> |
1308 |
DEPEND="qt3? ( x11-libs/qt:3 ) |
1309 |
- gtk? ( x11-libs/gtk+:2 ) |
1310 |
+ gtk? ( x11-libs/gtk+:2 ) |
1311 |
</codesample> |
1312 |
|
1313 |
<p> |
1314 |
@@ -317,7 +317,7 @@ To depend on a specific version or version-range within a SLOT we use: |
1315 |
|
1316 |
<codesample lang="ebuild"> |
1317 |
DEPEND="qt3? ( ~x11-libs/qt-3.3.8:3 ) |
1318 |
- gtk? ( >=x11-libs/gtk+-2.24.9:2 ) |
1319 |
+ gtk? ( >=x11-libs/gtk+-2.24.9:2 ) |
1320 |
</codesample> |
1321 |
|
1322 |
<subsection> |
1323 |
@@ -353,7 +353,7 @@ For example: |
1324 |
|
1325 |
<codesample lang="ebuild"> |
1326 |
RDEPEND="media-libs/cogl:1.0= |
1327 |
- gnutls? ( >=net-libs/gnutls-2.8:= )" |
1328 |
+ gnutls? ( >=net-libs/gnutls-2.8:= )" |
1329 |
</codesample> |
1330 |
|
1331 |
</body> |
1332 |
@@ -372,8 +372,8 @@ To depend upon a certain package if and only if a given <c>USE</c> flag is set: |
1333 |
|
1334 |
<codesample lang="ebuild"> |
1335 |
DEPEND="perl? ( dev-lang/perl ) |
1336 |
- ruby? ( >=dev-lang/ruby-1.8 ) |
1337 |
- python? ( dev-lang/python )" |
1338 |
+ ruby? ( >=dev-lang/ruby-1.8 ) |
1339 |
+ python? ( dev-lang/python )" |
1340 |
</codesample> |
1341 |
|
1342 |
<p> |
1343 |
@@ -398,20 +398,20 @@ This can be nested: |
1344 |
|
1345 |
<codesample lang="ebuild"> |
1346 |
DEPEND="!build? ( |
1347 |
- gcj? ( |
1348 |
- gtk? ( |
1349 |
- x11-libs/libXt |
1350 |
- x11-libs/libX11 |
1351 |
- x11-libs/libXtst |
1352 |
- x11-proto/xproto |
1353 |
- x11-proto/xextproto |
1354 |
- >=x11-libs/gtk+-2.2 |
1355 |
- x11-libs/pango |
1356 |
- ) |
1357 |
- >=media-libs/libart_lgpl-2.1 |
1358 |
- ) |
1359 |
- >=sys-libs/ncurses-5.2-r2 |
1360 |
- nls? ( sys-devel/gettext ) |
1361 |
+ gcj? ( |
1362 |
+ gtk? ( |
1363 |
+ x11-libs/libXt |
1364 |
+ x11-libs/libX11 |
1365 |
+ x11-libs/libXtst |
1366 |
+ x11-proto/xproto |
1367 |
+ x11-proto/xextproto |
1368 |
+ >=x11-libs/gtk+-2.2 |
1369 |
+ x11-libs/pango |
1370 |
+ ) |
1371 |
+ >=media-libs/libart_lgpl-2.1 |
1372 |
+ ) |
1373 |
+ >=sys-libs/ncurses-5.2-r2 |
1374 |
+ nls? ( sys-devel/gettext ) |
1375 |
)" |
1376 |
</codesample> |
1377 |
|
1378 |
@@ -564,7 +564,7 @@ following, which should be used instead: |
1379 |
|
1380 |
<codesample lang="ebuild"> |
1381 |
DEPEND="use-flag? ( app-misc/foo ) |
1382 |
- !use-flag? ( app-misc/bar )" |
1383 |
+ !use-flag? ( app-misc/bar )" |
1384 |
</codesample> |
1385 |
|
1386 |
<p> |
1387 |
|
1388 |
diff --git a/general-concepts/portage-cache/text.xml b/general-concepts/portage-cache/text.xml |
1389 |
index f185f62..f985d56 100644 |
1390 |
--- a/general-concepts/portage-cache/text.xml |
1391 |
+++ b/general-concepts/portage-cache/text.xml |
1392 |
@@ -18,9 +18,9 @@ So, the following will not work: |
1393 |
<codesample lang="ebuild"> |
1394 |
# DO NOT DO THIS! |
1395 |
if ! has_version "x11-libs/gtk+" ; then |
1396 |
- DEPEND="${DEPEND} |
1397 |
- gtk? ( >=x11-libs/gtk+-2 ) |
1398 |
- !gtk? ( =x11-libs/gtk+-1.2* )" |
1399 |
+ DEPEND="${DEPEND} |
1400 |
+ gtk? ( >=x11-libs/gtk+-2 ) |
1401 |
+ !gtk? ( =x11-libs/gtk+-1.2* )" |
1402 |
fi |
1403 |
</codesample> |
1404 |
|
1405 |
@@ -33,17 +33,17 @@ However, this is legal, since <c>versionator.eclass</c> works upon <c>PV</c>, an |
1406 |
inherit versionator |
1407 |
|
1408 |
if [[ $(get_major_version) -ge 7 ]] ; then |
1409 |
- IUSE="${IUSE} tcltk mzscheme" |
1410 |
- DEPEND="${DEPEND} |
1411 |
- tcltk? ( dev-lang/tcl ) |
1412 |
- mzscheme? ( dev-lisp/mzscheme )" |
1413 |
- RDEPEND="${RDEPEND} |
1414 |
- tcltk? ( dev-lang/tcl ) |
1415 |
- mzscheme? ( dev-lisp/mzscheme )" |
1416 |
+ IUSE="${IUSE} tcltk mzscheme" |
1417 |
+ DEPEND="${DEPEND} |
1418 |
+ tcltk? ( dev-lang/tcl ) |
1419 |
+ mzscheme? ( dev-lisp/mzscheme )" |
1420 |
+ RDEPEND="${RDEPEND} |
1421 |
+ tcltk? ( dev-lang/tcl ) |
1422 |
+ mzscheme? ( dev-lisp/mzscheme )" |
1423 |
|
1424 |
- if [[ "${MY_PN}" != "vim-core" ]] ; then |
1425 |
- RDEPEND="${RDEPEND} !<app-vim/align-30-r1" |
1426 |
- fi |
1427 |
+ if [[ "${MY_PN}" != "vim-core" ]] ; then |
1428 |
+ RDEPEND="${RDEPEND} !<app-vim/align-30-r1" |
1429 |
+ fi |
1430 |
fi |
1431 |
</codesample> |
1432 |
</body> |
1433 |
@@ -65,7 +65,7 @@ do: |
1434 |
|
1435 |
<codesample lang="ebuild"> |
1436 |
if [[ "${PN##*-}" == "cvs" ]] ; then |
1437 |
- inherit cvs |
1438 |
+ inherit cvs |
1439 |
fi |
1440 |
</codesample> |
1441 |
|
1442 |
|
1443 |
diff --git a/general-concepts/use-flags/text.xml b/general-concepts/use-flags/text.xml |
1444 |
index 4728d0f..88da628 100644 |
1445 |
--- a/general-concepts/use-flags/text.xml |
1446 |
+++ b/general-concepts/use-flags/text.xml |
1447 |
@@ -192,21 +192,21 @@ RDEPEND="fakemedia? ( >=media-libs/fakemedia-1-1 )" |
1448 |
|
1449 |
<codesample lang="ebuild"> |
1450 |
src_compile() { |
1451 |
- local myconf |
1452 |
+ local myconf |
1453 |
|
1454 |
- if use ssl && use gnutls ; then |
1455 |
- myconf="${myconf} --enable-ssl --with-ssl=gnutls" |
1456 |
- elif use ssl && ! use gnutls ; then |
1457 |
- myconf="${myconf} --enable-ssl --with-ssl=openssl" |
1458 |
- else |
1459 |
- myconf="${myconf} --disable-ssl" |
1460 |
- fi |
1461 |
+ if use ssl && use gnutls ; then |
1462 |
+ myconf="${myconf} --enable-ssl --with-ssl=gnutls" |
1463 |
+ elif use ssl && ! use gnutls ; then |
1464 |
+ myconf="${myconf} --enable-ssl --with-ssl=openssl" |
1465 |
+ else |
1466 |
+ myconf="${myconf} --disable-ssl" |
1467 |
+ fi |
1468 |
|
1469 |
- econf \ |
1470 |
- # Other stuff |
1471 |
- ${myconf} |
1472 |
+ econf \ |
1473 |
+ # Other stuff |
1474 |
+ ${myconf} |
1475 |
|
1476 |
- emake || die "make failed" |
1477 |
+ emake || die "make failed" |
1478 |
} |
1479 |
</codesample> |
1480 |
|
1481 |
|
1482 |
diff --git a/general-concepts/user-environment/text.xml b/general-concepts/user-environment/text.xml |
1483 |
index b7a0926..d28b844 100644 |
1484 |
--- a/general-concepts/user-environment/text.xml |
1485 |
+++ b/general-concepts/user-environment/text.xml |
1486 |
@@ -30,10 +30,10 @@ The simplest way to unset all locale-related variables is: |
1487 |
|
1488 |
<codesample lang="ebuild"> |
1489 |
pkg_setup() { |
1490 |
- # Unset all locale related variables, they can make the |
1491 |
- # build fail. |
1492 |
+ # Unset all locale related variables, they can make the |
1493 |
+ # build fail. |
1494 |
|
1495 |
- eval unset ${!LC_*} LANG |
1496 |
+ eval unset ${!LC_*} LANG |
1497 |
} |
1498 |
</codesample> |
1499 |
</body> |
1500 |
|
1501 |
diff --git a/quickstart/text.xml b/quickstart/text.xml |
1502 |
index b9bc7aa..a8c1752 100644 |
1503 |
--- a/quickstart/text.xml |
1504 |
+++ b/quickstart/text.xml |
1505 |
@@ -48,13 +48,13 @@ SLOT="0" |
1506 |
KEYWORDS="~mips ~sparc ~x86" |
1507 |
|
1508 |
src_configure() { |
1509 |
- econf --with-posix-regex |
1510 |
+ econf --with-posix-regex |
1511 |
} |
1512 |
|
1513 |
src_install() { |
1514 |
- emake DESTDIR="${D}" install |
1515 |
+ emake DESTDIR="${D}" install |
1516 |
|
1517 |
- dodoc FAQ NEWS README |
1518 |
+ dodoc FAQ NEWS README |
1519 |
} |
1520 |
</codesample> |
1521 |
</body> |
1522 |
@@ -219,16 +219,16 @@ KEYWORDS="~hppa ~mips sparc x86" |
1523 |
|
1524 |
RDEPEND="dev-libs/popt" |
1525 |
DEPEND="${RDEPEND} |
1526 |
- sys-devel/flex |
1527 |
- sys-devel/bison" |
1528 |
+ sys-devel/flex |
1529 |
+ sys-devel/bison" |
1530 |
|
1531 |
src_configure() { |
1532 |
- econf --with-popt |
1533 |
+ econf --with-popt |
1534 |
} |
1535 |
|
1536 |
src_install() { |
1537 |
- emake DESTDIR="${D}" install |
1538 |
- dodoc README CHANGES |
1539 |
+ emake DESTDIR="${D}" install |
1540 |
+ dodoc README CHANGES |
1541 |
} |
1542 |
</codesample> |
1543 |
|
1544 |
@@ -285,21 +285,21 @@ KEYWORDS="~hppa ~mips ~sparc ~x86" |
1545 |
|
1546 |
RDEPEND="dev-libs/popt" |
1547 |
DEPEND="${RDEPEND} |
1548 |
- sys-devel/flex |
1549 |
- sys-devel/bison" |
1550 |
+ sys-devel/flex |
1551 |
+ sys-devel/bison" |
1552 |
|
1553 |
src_prepare() { |
1554 |
- epatch "${FILESDIR}"/${P}-destdir.patch \ |
1555 |
- "${FILESDIR}"/${P}-parallel_build.patch |
1556 |
+ epatch "${FILESDIR}"/${P}-destdir.patch \ |
1557 |
+ "${FILESDIR}"/${P}-parallel_build.patch |
1558 |
} |
1559 |
|
1560 |
src_configure() { |
1561 |
- econf --with-popt |
1562 |
+ econf --with-popt |
1563 |
} |
1564 |
|
1565 |
src_install() { |
1566 |
- emake DESTDIR="${D}" install |
1567 |
- dodoc README CHANGES |
1568 |
+ emake DESTDIR="${D}" install |
1569 |
+ dodoc README CHANGES |
1570 |
} |
1571 |
</codesample> |
1572 |
|
1573 |
@@ -342,11 +342,11 @@ IUSE="nls" |
1574 |
DEPEND="!sys-libs/glibc" |
1575 |
|
1576 |
src_configure() { |
1577 |
- econf $(use_enable nls) |
1578 |
+ econf $(use_enable nls) |
1579 |
} |
1580 |
|
1581 |
src_install() { |
1582 |
- emake DESTDIR="${D}" install |
1583 |
+ emake DESTDIR="${D}" install |
1584 |
} |
1585 |
</codesample> |
1586 |
|
1587 |
@@ -385,42 +385,42 @@ KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86" |
1588 |
IUSE="crypt imlib ipv6 ldap nls pda ssl xface" |
1589 |
|
1590 |
RDEPEND="=x11-libs/gtk+-2* |
1591 |
- crypt? ( >=app-crypt/gpgme-0.4.5 ) |
1592 |
- imlib? ( media-libs/imlib2 ) |
1593 |
- ldap? ( >=net-nds/openldap-2.0.11 ) |
1594 |
- pda? ( app-pda/jpilot ) |
1595 |
- ssl? ( dev-libs/openssl ) |
1596 |
- xface? ( >=media-libs/compface-1.4 ) |
1597 |
- app-misc/mime-types |
1598 |
- x11-misc/shared-mime-info" |
1599 |
+ crypt? ( >=app-crypt/gpgme-0.4.5 ) |
1600 |
+ imlib? ( media-libs/imlib2 ) |
1601 |
+ ldap? ( >=net-nds/openldap-2.0.11 ) |
1602 |
+ pda? ( app-pda/jpilot ) |
1603 |
+ ssl? ( dev-libs/openssl ) |
1604 |
+ xface? ( >=media-libs/compface-1.4 ) |
1605 |
+ app-misc/mime-types |
1606 |
+ x11-misc/shared-mime-info" |
1607 |
DEPEND="${RDEPEND} |
1608 |
- dev-util/pkgconfig |
1609 |
- nls? ( >=sys-devel/gettext-0.12.1 )" |
1610 |
+ dev-util/pkgconfig |
1611 |
+ nls? ( >=sys-devel/gettext-0.12.1 )" |
1612 |
|
1613 |
src_prepare() { |
1614 |
- epatch "${FILESDIR}"/${PN}-namespace.diff \ |
1615 |
- "${FILESDIR}"/${PN}-procmime.diff |
1616 |
+ epatch "${FILESDIR}"/${PN}-namespace.diff \ |
1617 |
+ "${FILESDIR}"/${PN}-procmime.diff |
1618 |
} |
1619 |
|
1620 |
src_configure() { |
1621 |
- econf \ |
1622 |
- $(use_enable nls) \ |
1623 |
- $(use_enable ssl) \ |
1624 |
- $(use_enable crypt gpgme) \ |
1625 |
- $(use_enable pda jpilot) \ |
1626 |
- $(use_enable ldap) \ |
1627 |
- $(use_enable ipv6) \ |
1628 |
- $(use_enable imlib) \ |
1629 |
- $(use_enable xface compface) |
1630 |
+ econf \ |
1631 |
+ $(use_enable nls) \ |
1632 |
+ $(use_enable ssl) \ |
1633 |
+ $(use_enable crypt gpgme) \ |
1634 |
+ $(use_enable pda jpilot) \ |
1635 |
+ $(use_enable ldap) \ |
1636 |
+ $(use_enable ipv6) \ |
1637 |
+ $(use_enable imlib) \ |
1638 |
+ $(use_enable xface compface) |
1639 |
} |
1640 |
|
1641 |
src_install() { |
1642 |
- emake DESTDIR="${D}" install |
1643 |
+ emake DESTDIR="${D}" install |
1644 |
|
1645 |
- doicon sylpheed.png |
1646 |
- domenu sylpheed.desktop |
1647 |
+ doicon sylpheed.png |
1648 |
+ domenu sylpheed.desktop |
1649 |
|
1650 |
- dodoc [A-Z][A-Z]* ChangeLog* |
1651 |
+ dodoc [A-Z][A-Z]* ChangeLog* |
1652 |
} |
1653 |
</codesample> |
1654 |
|
1655 |
|
1656 |
diff --git a/tasks-reference/completion/text.xml b/tasks-reference/completion/text.xml |
1657 |
index 5d31211..fd36099 100644 |
1658 |
--- a/tasks-reference/completion/text.xml |
1659 |
+++ b/tasks-reference/completion/text.xml |
1660 |
@@ -162,20 +162,20 @@ the following can be used as a template for creating new completion functions: |
1661 |
|
1662 |
<codesample lang="ebuild" numbering="lines"> |
1663 |
_foo() { |
1664 |
- local cur prev opts |
1665 |
- COMPREPLY=() |
1666 |
- cur="${COMP_WORDS[COMP_CWORD]}" |
1667 |
- prev="${COMP_WORDS[COMP_CWORD-1]}" |
1668 |
- opts="" |
1669 |
+ local cur prev opts |
1670 |
+ COMPREPLY=() |
1671 |
+ cur="${COMP_WORDS[COMP_CWORD]}" |
1672 |
+ prev="${COMP_WORDS[COMP_CWORD-1]}" |
1673 |
+ opts="" |
1674 |
|
1675 |
- if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then |
1676 |
- COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) |
1677 |
- return 0 |
1678 |
- fi |
1679 |
+ if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then |
1680 |
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) |
1681 |
+ return 0 |
1682 |
+ fi |
1683 |
|
1684 |
- case "${prev}" in |
1685 |
- # ... |
1686 |
- esac |
1687 |
+ case "${prev}" in |
1688 |
+ # ... |
1689 |
+ esac |
1690 |
} |
1691 |
complete -F _foo foo |
1692 |
</codesample> |
1693 |
@@ -272,9 +272,9 @@ complete -F _foo foo |
1694 |
(and -f for short) that takes any kind file, you could do: |
1695 |
<codesample lang="ebuild"> |
1696 |
case "${prev}" in |
1697 |
- -f|--file) |
1698 |
- COMPREPLY=( $(compgen -f ? ${cur}) ) |
1699 |
- ;; |
1700 |
+ -f|--file) |
1701 |
+ COMPREPLY=( $(compgen -f ? ${cur}) ) |
1702 |
+ ;; |
1703 |
esac</codesample> |
1704 |
</ti> |
1705 |
</tr> |
1706 |
|
1707 |
diff --git a/tools-reference/bash/text.xml b/tools-reference/bash/text.xml |
1708 |
index 053f6c3..8071ce0 100644 |
1709 |
--- a/tools-reference/bash/text.xml |
1710 |
+++ b/tools-reference/bash/text.xml |
1711 |
@@ -23,7 +23,7 @@ The basic conditional operator is the <c>if</c> statement: |
1712 |
|
1713 |
<codesample lang="ebuild"> |
1714 |
if something ; then |
1715 |
- do_stuff |
1716 |
+ do_stuff |
1717 |
fi |
1718 |
</codesample> |
1719 |
|
1720 |
@@ -40,13 +40,13 @@ Multiple pronged selection can be done using <c>else</c> and <c>elif</c>: |
1721 |
|
1722 |
<codesample lang="ebuild"> |
1723 |
if something ; then |
1724 |
- do_stuff |
1725 |
+ do_stuff |
1726 |
elif something_else ; then |
1727 |
- do_other_stuff |
1728 |
+ do_other_stuff |
1729 |
elif full_moon ; then |
1730 |
- howl |
1731 |
+ howl |
1732 |
else |
1733 |
- turn_into_a_newt |
1734 |
+ turn_into_a_newt |
1735 |
fi |
1736 |
</codesample> |
1737 |
|
1738 |
@@ -57,10 +57,10 @@ following will <b>not</b> work: |
1739 |
|
1740 |
<codesample lang="ebuild"> |
1741 |
if some_stuff ; then |
1742 |
- # A statement is required here. a blank or a comment |
1743 |
- # isn't enough! |
1744 |
+ # A statement is required here. a blank or a comment |
1745 |
+ # isn't enough! |
1746 |
else |
1747 |
- einfo "Not some stuff" |
1748 |
+ einfo "Not some stuff" |
1749 |
fi |
1750 |
</codesample> |
1751 |
|
1752 |
@@ -71,10 +71,10 @@ If you really don't want to restructure the block, you can use a single colon |
1753 |
|
1754 |
<codesample lang="ebuild"> |
1755 |
if some_stuff ; then |
1756 |
- # Do nothing |
1757 |
- : |
1758 |
+ # Do nothing |
1759 |
+ : |
1760 |
else |
1761 |
- einfo "Not some stuff" |
1762 |
+ einfo "Not some stuff" |
1763 |
fi |
1764 |
</codesample> |
1765 |
|
1766 |
@@ -93,17 +93,17 @@ needed. |
1767 |
<codesample lang="ebuild"> |
1768 |
# is $foo zero length? |
1769 |
if [[ -z "${foo}" ]] ; then |
1770 |
- die "Please set foo" |
1771 |
+ die "Please set foo" |
1772 |
fi |
1773 |
|
1774 |
# is $foo equal to "moo"? |
1775 |
if [[ "${foo}" == "moo" ]] ; then |
1776 |
- einfo "Hello Larry" |
1777 |
+ einfo "Hello Larry" |
1778 |
fi |
1779 |
|
1780 |
# does "${ROOT}/etc/deleteme" exist? |
1781 |
if [[ -f "${ROOT}/etc/deleteme" ]] ; then |
1782 |
- einfo "Please delete ${ROOT}/etc/readme manually!" |
1783 |
+ einfo "Please delete ${ROOT}/etc/readme manually!" |
1784 |
fi |
1785 |
</codesample> |
1786 |
|
1787 |
@@ -632,7 +632,7 @@ task upon multiple items. |
1788 |
|
1789 |
<codesample lang="ebuild"> |
1790 |
for myvar in "the first" "the second" "and the third" ; do |
1791 |
- einfo "This is ${myvar}" |
1792 |
+ einfo "This is ${myvar}" |
1793 |
done |
1794 |
</codesample> |
1795 |
|
1796 |
@@ -643,7 +643,7 @@ event a given number of times. |
1797 |
|
1798 |
<codesample lang="ebuild"> |
1799 |
for (( i = 1 ; i <= 10 ; i++ )) ; do |
1800 |
- einfo "i is ${i}" |
1801 |
+ einfo "i is ${i}" |
1802 |
done |
1803 |
</codesample> |
1804 |
|
1805 |
@@ -654,7 +654,7 @@ ebuilds. |
1806 |
|
1807 |
<codesample lang="ebuild"> |
1808 |
while hungry ; do |
1809 |
- eat_cookies |
1810 |
+ eat_cookies |
1811 |
done |
1812 |
</codesample> |
1813 |
|
1814 |
@@ -664,7 +664,7 @@ This is most commonly used to iterate over lines in a file: |
1815 |
|
1816 |
<codesample lang="ebuild"> |
1817 |
while read myline ; do |
1818 |
- einfo "It says ${myline}" |
1819 |
+ einfo "It says ${myline}" |
1820 |
done < some_file |
1821 |
</codesample> |
1822 |
|
1823 |
|
1824 |
diff --git a/tools-reference/cat/text.xml b/tools-reference/cat/text.xml |
1825 |
index 7b13468..f2f38b7 100644 |
1826 |
--- a/tools-reference/cat/text.xml |
1827 |
+++ b/tools-reference/cat/text.xml |
1828 |
@@ -50,12 +50,12 @@ On the other hand, <c>cat</c> is exceptionally useful for so-called |
1829 |
|
1830 |
<codesample lang="ebuild"> |
1831 |
src_install() { |
1832 |
- # ... |
1833 |
- cat <<- EOF > "${D}/etc/mail/trusted-users" || die |
1834 |
- # trusted-users - users that can send mail as others without a warning |
1835 |
- # apache, mailman, majordomo, uucp are good candidates |
1836 |
- EOF |
1837 |
- # ... |
1838 |
+ # ... |
1839 |
+ cat <<- EOF > "${D}/etc/mail/trusted-users" || die |
1840 |
+ # trusted-users - users that can send mail as others without a warning |
1841 |
+ # apache, mailman, majordomo, uucp are good candidates |
1842 |
+ EOF |
1843 |
+ # ... |
1844 |
} |
1845 |
</codesample> |
1846 |
|
1847 |
|
1848 |
diff --git a/tools-reference/find/text.xml b/tools-reference/find/text.xml |
1849 |
index 8601a51..a7ab55c 100644 |
1850 |
--- a/tools-reference/find/text.xml |
1851 |
+++ b/tools-reference/find/text.xml |
1852 |
@@ -137,7 +137,7 @@ and spaces in their names: |
1853 |
|
1854 |
<codesample lang="ebuild"> |
1855 |
for f in $(find "${S}" -type f) ; do |
1856 |
- einfo "Doing unholy things to ${f}" |
1857 |
+ einfo "Doing unholy things to ${f}" |
1858 |
done |
1859 |
</codesample> |
1860 |
|
1861 |
@@ -150,7 +150,7 @@ to <c>while</c> and <c>read</c> for changing the delimiter): |
1862 |
|
1863 |
<codesample lang="ebuild"> |
1864 |
while IFS="" read -d $'\0' -r f ; do |
1865 |
- einfo "Calling down holy vengance upon ${f}" |
1866 |
+ einfo "Calling down holy vengance upon ${f}" |
1867 |
done < <(find "${S}" -type f -print0) |
1868 |
</codesample> |
1869 |
|
1870 |
|
1871 |
diff --git a/tools-reference/sed/text.xml b/tools-reference/sed/text.xml |
1872 |
index 1b01b02..02c8c32 100644 |
1873 |
--- a/tools-reference/sed/text.xml |
1874 |
+++ b/tools-reference/sed/text.xml |
1875 |
@@ -15,7 +15,7 @@ doing this is via <c>sed</c>: |
1876 |
# This plugin is mapped to the 'h' key by default, which conflicts with some |
1877 |
# other mappings. Change it to use 'H' instead. |
1878 |
sed -i 's/\(noremap <buffer> \)h/\1H/' info.vim \ |
1879 |
- || die 'sed failed' |
1880 |
+ || die 'sed failed' |
1881 |
</codesample> |
1882 |
|
1883 |
<p> |
1884 |
@@ -30,9 +30,9 @@ be set to <c>r0</c> if we don't have a <c>-r</c> component in our version. |
1885 |
# for the line in version.h.in which contains "__fluxbox_version" and append |
1886 |
# our content to it. |
1887 |
if [[ "${PR}" == "r0" ]] ; then |
1888 |
- suffix="gentoo" |
1889 |
+ suffix="gentoo" |
1890 |
else |
1891 |
- suffix="gentoo-${PR}" |
1892 |
+ suffix="gentoo-${PR}" |
1893 |
fi |
1894 |
sed -i \ |
1895 |
-e "s~\(__fluxbox_version .@VERSION@\)~\1-${suffix}~" \ |
1896 |
@@ -50,11 +50,11 @@ from the plugin files and convert it to Vim help format. |
1897 |
# problems for us during the unmerge. Fortunately, sed can fix this |
1898 |
# for us. First, we extract the documentation: |
1899 |
sed -e '1,/^" HelpExtractorDoc:$/d' \ |
1900 |
- "${S}"/plugin/ZoomWin.vim > ${S}/doc/ZoomWin.txt \ |
1901 |
- || die "help extraction failed" |
1902 |
+ "${S}"/plugin/ZoomWin.vim > ${S}/doc/ZoomWin.txt \ |
1903 |
+ || die "help extraction failed" |
1904 |
# Then we remove the help extraction code from the plugin file: |
1905 |
sed -i -e '/^" HelpExtractor:$/,$d' "${S}"/plugin/ZoomWin.vim \ |
1906 |
- || die "help extract remove failed" |
1907 |
+ || die "help extract remove failed" |
1908 |
</codesample> |
1909 |
|
1910 |
<p> |
1911 |
@@ -77,11 +77,11 @@ The basic form of a call is: |
1912 |
|
1913 |
<codesample lang="ebuild"> |
1914 |
sed [ option flags ] \ |
1915 |
- -e 'first command' \ |
1916 |
- -e 'second command' \ |
1917 |
- -e 'and so on' \ |
1918 |
- input-file > output-file \ |
1919 |
- || die "Oops, sed didn't work!" |
1920 |
+ -e 'first command' \ |
1921 |
+ -e 'second command' \ |
1922 |
+ -e 'and so on' \ |
1923 |
+ input-file > output-file \ |
1924 |
+ || die "Oops, sed didn't work!" |
1925 |
</codesample> |
1926 |
|
1927 |
<p> |
1928 |
@@ -114,7 +114,7 @@ with <c>"different content"</c>. This is done as follows: |
1929 |
# replace all instances of "some text" with "different content" in |
1930 |
# somefile.txt |
1931 |
sed -i -e 's/some text/different content/g' somefile.txt || \ |
1932 |
- die "Sed broke!" |
1933 |
+ die "Sed broke!" |
1934 |
</codesample> |
1935 |
|
1936 |
<note> |
1937 |
@@ -136,7 +136,7 @@ are allowed, although backslash and any form of brackets should be avoided. |
1938 |
<codesample lang="ebuild"> |
1939 |
# replace all instances of "/usr/local" with "/usr" |
1940 |
sed -i -e 's~/usr/local~/usr~g' somefile.txt || \ |
1941 |
- die "sed broke" |
1942 |
+ die "sed broke" |
1943 |
</codesample> |
1944 |
|
1945 |
<p> |