Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/devmanual:master commit in: eclass-writing/
Date: Tue, 30 Mar 2021 06:55:54
Message-Id: 1617087206.336d16aa5fe8c564a15760659e1670a0e98e58b3.ulm@gentoo
1 commit: 336d16aa5fe8c564a15760659e1670a0e98e58b3
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 22 06:56:29 2021 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 30 06:53:26 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=336d16aa
7
8 eclass-writing: add new eclass doc tags for Eclass Function Variables
9
10 Adds:
11 * @USER_VARIABLE
12 * @INCLUDES_EPREFIX
13 * @DEPRECATED
14
15 Signed-off-by: Sam James <sam <AT> gentoo.org>
16 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
17
18 eclass-writing/text.xml | 90 +++++++++++++++++++++----------------------------
19 1 file changed, 39 insertions(+), 51 deletions(-)
20
21 diff --git a/eclass-writing/text.xml b/eclass-writing/text.xml
22 index 5a1015f..e8b1474 100644
23 --- a/eclass-writing/text.xml
24 +++ b/eclass-writing/text.xml
25 @@ -568,12 +568,8 @@ using the following tags:
26 <th>description</th>
27 </tr>
28 <tr>
29 - <ti>
30 - <c>@VARIABLE:</c>
31 - </ti>
32 - <ti>
33 - NO
34 - </ti>
35 + <ti><c>@VARIABLE:</c></ti>
36 + <ti>NO</ti>
37 <ti>
38 Name of the function-specific variable to which the documentation applies.
39 </ti>
40 @@ -584,61 +580,53 @@ using the following tags:
41 </ti>
42 </tr>
43 <tr>
44 - <ti>
45 - <c>@DEFAULT_UNSET</c>
46 - </ti>
47 - <ti>
48 - YES
49 - </ti>
50 - <ti>
51 - <d/>
52 - </ti>
53 + <ti><c>@USER_VARIABLE</c></ti>
54 + <ti>YES</ti>
55 + <ti><d/></ti>
56 + <ti>
57 + This tag describes whether the variable is unsuitable for use in ebuilds,
58 + i.e. if it is solely for user consumption via e.g. make.conf or a similar
59 + mechanism.
60 + </ti>
61 +</tr>
62 +<tr>
63 + <ti><c>@DEFAULT_UNSET</c></ti>
64 + <ti>YES</ti>
65 + <ti><d/></ti>
66 <ti>
67 Indicates that this variable is unset by default if not set by the
68 developer.
69 </ti>
70 </tr>
71 <tr>
72 - <ti>
73 - <c>@INTERNAL</c>
74 - </ti>
75 - <ti>
76 - YES
77 - </ti>
78 - <ti>
79 - <d/>
80 - </ti>
81 - <ti>
82 - Indicates that the variable is internal to the eclass function.
83 - </ti>
84 + <ti><c>@INCLUDES_EPREFIX</c></ti>
85 + <ti>YES</ti>
86 + <ti><d/></ti>
87 + <ti>Indicates that the variable is a path which has ${EPREFIX} prepended.</ti>
88 </tr>
89 <tr>
90 - <ti>
91 - <c>@REQUIRED</c>
92 - </ti>
93 - <ti>
94 - YES
95 - </ti>
96 - <ti>
97 - <d/>
98 - </ti>
99 - <ti>
100 - Indicates that this variable must be set by the developer.
101 - </ti>
102 + <ti><c>@INTERNAL</c></ti>
103 + <ti>YES</ti>
104 + <ti><d/></ti>
105 + <ti>Indicates that the variable is internal to the eclass function.</ti>
106 </tr>
107 <tr>
108 - <ti>
109 - <c>@DESCRIPTION:</c>
110 - </ti>
111 - <ti>
112 - NO
113 - </ti>
114 - <ti>
115 - Multiline freetext.
116 - </ti>
117 - <ti>
118 - Long description for the function variable.
119 - </ti>
120 + <ti><c>@REQUIRED</c></ti>
121 + <ti>YES</ti>
122 + <ti><d/></ti>
123 + <ti>Indicates that this variable must be set by the developer.</ti>
124 +</tr>
125 +<tr>
126 + <ti><c>@DEPRECATED</c></ti>
127 + <ti>YES</ti>
128 + <ti>Optionally, the name of any replacement variable.</ti>
129 + <ti>Declares that this variable should no longer be used in ebuilds.</ti>
130 +</tr>
131 +<tr>
132 + <ti><c>@DESCRIPTION:</c></ti>
133 + <ti>NO</ti>
134 + <ti>Multiline freetext.</ti>
135 + <ti>Long description for the function variable.</ti>
136 </tr>
137 </table>