1 |
commit: a270561f8524331f965b2be9ae7387654eb5ba5f |
2 |
Author: Markos Chandras <hwoarang <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 30 18:59:28 2012 +0000 |
4 |
Commit: Markos Chandras <hwoarang <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 30 18:59:28 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/devmanual.git;a=commit;h=a270561f |
7 |
|
8 |
eapi: Remove quotes from EAPI for consistency. Bug #374593 |
9 |
|
10 |
Also, add a note that single and double quotes are also allowed. |
11 |
|
12 |
--- |
13 |
ebuild-writing/eapi/text.xml | 17 +++++++++++------ |
14 |
1 files changed, 11 insertions(+), 6 deletions(-) |
15 |
|
16 |
diff --git a/ebuild-writing/eapi/text.xml b/ebuild-writing/eapi/text.xml |
17 |
index 9d7696b..38b9117 100644 |
18 |
--- a/ebuild-writing/eapi/text.xml |
19 |
+++ b/ebuild-writing/eapi/text.xml |
20 |
@@ -18,9 +18,14 @@ can be printed out, consulted for reference and is available |
21 |
as <c>app-doc/pms</c> in the main tree. |
22 |
</important> |
23 |
<p> |
24 |
-If EAPI is undefined in an ebuild, then EAPI="0" is selected. If you want to override |
25 |
+If EAPI is undefined in an ebuild, then EAPI=0 is selected. If you want to override |
26 |
the EAPI variable, you have to specify it at the top of the ebuild: |
27 |
</p> |
28 |
+ |
29 |
+<note> |
30 |
+Most developers prefer to set the EAPI version without quotes. However, the PMS allows single and double quotes as well. |
31 |
+</note> |
32 |
+ |
33 |
<codesample lang="ebuild"> |
34 |
# Copyright 1999-2010 Gentoo Foundation |
35 |
# Distributed under the terms of the GNU General Public License v2 |
36 |
@@ -112,7 +117,7 @@ IUSE="foo +bar" |
37 |
|
38 |
|
39 |
<section> |
40 |
-<title>EAPI="2"</title> |
41 |
+<title>EAPI=2</title> |
42 |
<body> |
43 |
|
44 |
<subsection> |
45 |
@@ -128,7 +133,7 @@ IUSE="foo +bar" |
46 |
doman foo.1 |
47 |
# will go into /usr/share/man/man1/foo.1 |
48 |
doman foo.lang.1 |
49 |
-# will go into /usr/share/man/lang/man1/foo.1 with EAPI="2" |
50 |
+# will go into /usr/share/man/lang/man1/foo.1 with EAPI=2 |
51 |
</codesample> |
52 |
</p> |
53 |
</li> |
54 |
@@ -306,7 +311,7 @@ src_compile() { |
55 |
</body> |
56 |
</section> |
57 |
<section> |
58 |
-<title>EAPI="3"</title> |
59 |
+<title>EAPI=3</title> |
60 |
<body> |
61 |
|
62 |
<ul> |
63 |
@@ -331,7 +336,7 @@ src_compile() { |
64 |
</section> |
65 |
|
66 |
<section> |
67 |
-<title>EAPI="4"</title> |
68 |
+<title>EAPI=4</title> |
69 |
<body> |
70 |
|
71 |
<subsection> |
72 |
@@ -494,7 +499,7 @@ DEPEND=" |
73 |
# Distributed under the terms of the GNU General Public License v2 |
74 |
# $Header: $ |
75 |
|
76 |
-EAPI="4" |
77 |
+EAPI=4 |
78 |
inherit linux-info |
79 |
... |