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:53
Message-Id: 1617087205.3d47a2bc63aec2ac36b63eae6b84905487f6ddd6.ulm@gentoo
1 commit: 3d47a2bc63aec2ac36b63eae6b84905487f6ddd6
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 22 06:37:51 2021 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 30 06:53:25 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=3d47a2bc
7
8 eclass-writing: add new eclass doc tags for Eclass Variables
9
10 Adds:
11 * @PRE_INHERIT
12 * @USER_VARIABLE
13 * @OUTPUT_VARIABLE
14 * @INCLUDES_EPREFIX
15 * @DEPRECATED
16
17 Signed-off-by: Sam James <sam <AT> gentoo.org>
18 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
19
20 eclass-writing/text.xml | 87 ++++++++++++++++++++++++++++---------------------
21 1 file changed, 50 insertions(+), 37 deletions(-)
22
23 diff --git a/eclass-writing/text.xml b/eclass-writing/text.xml
24 index df02827..b7fd988 100644
25 --- a/eclass-writing/text.xml
26 +++ b/eclass-writing/text.xml
27 @@ -350,61 +350,74 @@ variables are as follows:
28 </ti>
29 </tr>
30 <tr>
31 + <ti><c>@PRE_INHERIT</c></ti>
32 + <ti>YES</ti>
33 + <ti><d/></ti>
34 <ti>
35 - <c>@DEFAULT_UNSET</c>
36 + This tag describes whether the variable must be defined before
37 + the eclass is inherited. This is important if any e.g. dependencies
38 + are modified in global scope at the point of sourcing.
39 </ti>
40 +</tr>
41 +<tr>
42 + <ti><c>@USER_VARIABLE</c></ti>
43 + <ti>YES</ti>
44 + <ti><d/></ti>
45 <ti>
46 - YES
47 + This tag describes whether the variable is unsuitable for use in ebuilds,
48 + i.e. if it is solely for user consumption via e.g. make.conf or a similar
49 + mechanism.
50 </ti>
51 +</tr>
52 +<tr>
53 + <ti><c>@OUTPUT_VARIABLE</c></ti>
54 + <ti>YES</ti>
55 + <ti><d/></ti>
56 <ti>
57 - <d/>
58 + This tag indicates that the variable's value (which will be set by the
59 + eclass) should be read within an ebuild.
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><c>@INCLUDES_EPREFIX</c></ti>
73 + <ti>YES</ti>
74 + <ti><d/></ti>
75 <ti>
76 - <c>@INTERNAL</c>
77 - </ti>
78 - <ti>
79 - YES
80 - </ti>
81 - <ti>
82 - <d/>
83 - </ti>
84 - <ti>
85 - Indicates that the variable is internal to the eclass.
86 + Indicates that the variable is a path which has ${EPREFIX} prepended to it.
87 </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.</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 eclass 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 eclass variable.</ti>
136 </tr>
137 </table>