Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 199788 | Differences between
and this patch

Collapse All | Expand All

(-)hb-guide-metadata.xml?rev=1.9 (-18 / +113 lines)
Lines 10-17 Link Here
10
-->
10
-->
11
11
12
<sections>
12
<sections>
13
<version>1.0.4</version>
13
<version>1.0.5</version>
14
<date>2007-07-31</date>
14
<date>2007-11-27</date>
15
15
16
<section>
16
<section>
17
<title>Why the need for metadata.xml?</title>
17
<title>Why the need for metadata.xml?</title>
Lines 19-32 Link Here
19
<body>
19
<body>
20
20
21
<p>
21
<p>
22
The <c>metadata.xml</c> file has as its purpose to give extra information about
22
The <path>metadata.xml</path> file has as its purpose to give extra information about
23
ebuilds. The <c>metadata.xml</c> file should exist in every package directory.
23
ebuilds. The <path>metadata.xml</path> file should exist in every package directory.
24
A skel file can be found as <c>skel.metadata.xml</c> in the portage tree.
24
A skel file can be found as <path>skel.metadata.xml</path> in the root of the portage tree.
25
</p>
25
</p>
26
26
27
<note>
27
<note>
28
Please run <c>xmllint --valid metadata.xml</c> before committing a
28
Please run <c>xmllint --valid --noout metadata.xml</c> before committing a
29
<c>metadata.xml</c> file.  We hope to add support for <c>metadata.xml</c> to 
29
<path>metadata.xml</path> file.  We hope to add support for <path>metadata.xml</path> to 
30
repoman soon.
30
repoman soon.
31
</note>
31
</note>
32
32
Lines 40-46 Link Here
40
<body>
40
<body>
41
41
42
<p>
42
<p>
43
A <c>metadata.xml</c> file can contain a number of tags:
43
A <path>metadata.xml</path> file can contain a number of tags:
44
</p>
44
</p>
45
45
46
<table>
46
<table>
Lines 53-59 Link Here
53
    <brite>&lt;pkgmetadata&gt;</brite>
53
    <brite>&lt;pkgmetadata&gt;</brite>
54
  </ti>
54
  </ti>
55
  <ti>
55
  <ti>
56
    This is the root element of the metadata.xml file for packages. It has 
56
    This is the root element of the <path>metadata.xml</path> file for packages. It has 
57
    no attributes. Its required subtag is: <brite>&lt;herd&gt;</brite>. 
57
    no attributes. Its required subtag is: <brite>&lt;herd&gt;</brite>. 
58
    Furthermore, the following subtags are allowed: <brite>&lt;email&gt;</brite> 
58
    Furthermore, the following subtags are allowed: <brite>&lt;email&gt;</brite> 
59
    for a general herd email address, <brite>&lt;maintainer&gt;</brite>, and 
59
    for a general herd email address, <brite>&lt;maintainer&gt;</brite>, and 
Lines 65-71 Link Here
65
    <brite>&lt;catmetadata&gt;</brite>
65
    <brite>&lt;catmetadata&gt;</brite>
66
  </ti>
66
  </ti>
67
  <ti>
67
  <ti>
68
    This is the root element of the metadata.xml file for categories as per 
68
    This is the root element of the <path>metadata.xml</path> file for categories as per 
69
    <uri link="/proj/en/glep/glep-0034.html">GLEP 34</uri>. It has 
69
    <uri link="/proj/en/glep/glep-0034.html">GLEP 34</uri>. It has 
70
    no attributes. It contains a number of 
70
    no attributes. It contains a number of 
71
    <brite>&lt;longdescription&gt;</brite> tags, each for a different 
71
    <brite>&lt;longdescription&gt;</brite> tags, each for a different 
Lines 119-125 Link Here
119
  <ti><brite>&lt;longdescription&gt;</brite></ti>
119
  <ti><brite>&lt;longdescription&gt;</brite></ti>
120
  <ti>
120
  <ti>
121
    This tag contains a description of the package. This is to augment the 
121
    This tag contains a description of the package. This is to augment the 
122
    DESCRIPTION field in the ebuilds themselves.
122
    DESCRIPTION field in the ebuilds themselves. This tag has one optional
123
    subtag: <brite>&lt;pkg&gt;</brite>.
124
  </ti>
125
</tr>
126
<tr>
127
  <ti><brite>&lt;use&gt;</brite></ti>
128
  <ti>
129
    This tag contains descriptions of <uri 
130
      link="/doc/en/handbook/handbook-x86.xml?part=2&amp;chap=2">USE flags</uri>.
131
    This tag is optional and, if specified, has one required subtag:
132
    <brite>&lt;flag&gt;</brite>.
133
  </ti>
134
</tr>
135
<tr>
136
  <ti><brite>&lt;flag&gt;</brite></ti>
137
  <ti>
138
    This tag contains a description of how the named USE flag affects this
139
    package. It is required if the <brite>&lt;use&gt;</brite> tag is specified.
140
    It also requires the USE flag to be named in the <c>name</c> attribute.
141
    This tag has one optional subtag: <brite>&lt;pkg&gt;</brite>.
142
  </ti>
143
</tr>
144
<tr>
145
  <ti><brite>&lt;pkg&gt;</brite></ti>
146
  <ti>
147
    This tag contains a package name in the format of category/package. For
148
    example, <c>&lt;pkg&gt;sys-apps/hal&lt;/pkg&gt;</c>.
123
  </ti>
149
  </ti>
124
</tr>
150
</tr>
125
</table>
151
</table>
Lines 138-144 Link Here
138
<tr>
164
<tr>
139
  <ti>lang</ti>
165
  <ti>lang</ti>
140
  <ti>
166
  <ti>
141
    <brite>&lt;description&gt;</brite>, <brite>&lt;longdescription&gt;</brite>
167
    <brite>&lt;description&gt;</brite>, <brite>&lt;longdescription&gt;</brite>, <brite>&lt;use&gt;</brite>
142
  </ti>
168
  </ti>
143
  <ti>
169
  <ti>
144
    In every case where a description is required, there must be at
170
    In every case where a description is required, there must be at
Lines 153-159 Link Here
153
  <ti>restrict</ti>
179
  <ti>restrict</ti>
154
  <ti>
180
  <ti>
155
    <brite>&lt;herd&gt;</brite>, <brite>&lt;maintainer&gt;</brite>, 
181
    <brite>&lt;herd&gt;</brite>, <brite>&lt;maintainer&gt;</brite>, 
156
    <brite>&lt;longdescription&gt;</brite>
182
    <brite>&lt;longdescription&gt;</brite>, <brite>&lt;flag&gt;</brite>
157
  </ti>
183
  </ti>
158
  <ti>
184
  <ti>
159
    The restrict attribute allows to restrict the application of certain tags 
185
    The restrict attribute allows to restrict the application of certain tags 
Lines 163-172 Link Here
163
    is that of the DEPEND flag, except that "&lt;" and 
189
    is that of the DEPEND flag, except that "&lt;" and 
164
    "&gt;" need to be specified by &amp;lt; and &amp;gt;.<br />
190
    "&gt;" need to be specified by &amp;lt; and &amp;gt;.<br />
165
    <br />
191
    <br />
166
    For example in the db package 
192
    For example in the <c>sys-libs/db</c> package,
167
    <c>restrict="&amp;gt;=sys-libs/db-3.2.9-r5"</c> 
193
    <c>restrict="&gt;=sys-libs/db-3.2.9-r5"</c> 
168
    on the maintainer tag shows that I'm currently maintaining all versions 
194
    on the <brite>&lt;maintainer&gt;</brite> tag shows that I'm currently maintaining all versions 
169
    bigger then 3.2.9-r5.
195
    greater than <c>3.2.9-r5</c>.
196
  </ti>
197
</tr>
198
<tr>
199
  <ti>name</ti>
200
  <ti>
201
    <brite>&lt;name&gt;</brite>
202
  </ti>
203
  <ti>
204
    This attribute is required on the <brite>&lt;flag&gt;</brite> tag. It
205
    simply contains the USE flag.
206
    <br /><br />
207
    For example in the sys-apps/hal package,
208
    <c>&lt;flag name='acpi'&gt;Enables ACPI (longer description in the actual file)&lt;/flag&gt;</c>
170
  </ti>
209
  </ti>
171
</tr>
210
</tr>
172
</table>
211
</table>
Lines 237-243 Link Here
237
<body>
276
<body>
238
277
239
<p>
278
<p>
240
As second example we view the <path>metadata.xml</path> of <c>mirrorselect</c>.
279
For the second example, we view the <path>metadata.xml</path> of <c>app-portage/mirrorselect</c>.
241
This ebuild is maintained by the <c>tools-portage</c> herd, but has a separate
280
This ebuild is maintained by the <c>tools-portage</c> herd, but has a separate
242
maintainer.
281
maintainer.
243
</p>
282
</p>
Lines 260-264 Link Here
260
299
261
</body>
300
</body>
262
</subsection>
301
</subsection>
302
<subsection>
303
<title>Third Example</title>
304
<body>
305
306
<p>
307
For the third example, we will describe the <path>metadata.xml</path> of
308
<c>sys-apps/hal</c>. This ebuild is maintained by the <c>gentopia</c> herd
309
and contains USE flag descriptions.
310
</p>
311
<pre caption="USE flag descriptions">
312
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
313
&lt;!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"&gt;
314
&lt;pkgmetadata&gt;
315
&lt;herd&gt;gentopia&lt;/herd&gt;
316
&lt;maintainer&gt;
317
    &lt;email&gt;cardoe@gentoo.org&lt;/email&gt;
318
&lt;/maintainer&gt;
319
&lt;maintainer&gt;
320
    &lt;email&gt;steev@gentoo.org&lt;/email&gt;
321
&lt;/maintainer&gt;
322
&lt;maintainer&gt;
323
    &lt;email&gt;compnerd@gentoo.org&lt;/email&gt;
324
&lt;/maintainer&gt;
325
&lt;use&gt;
326
    &lt;flag name='acpi'&gt;Enables HAL to attempt to read from /proc/acpi/event, if
327
        unavailable, HAL will read events from &lt;pkg&gt;sys-power/acpid&lt;/pkg&gt;. If
328
        you need multiple acpi readers, ensure acpid is in your default
329
        runlevel (rc-update add acpid default) along with HAL. This will also
330
        enable HAL to read Toshiba and IBM acpi events which do not get sent
331
        via /proc/acpi/event&lt;/flag&gt;
332
    &lt;flag name='crypt'&gt;Allows HAL to mount volumes that are encrypted using
333
        LUKS. &lt;pkg&gt;sys-fs/cryptsetup-luks&lt;/pkg&gt; which has recently been renamed
334
        to &lt;pkg&gt;sys-fs/cryptsetup&lt;/pkg&gt; allows you to create such encrypted
335
        volumes. HAL will be able to handle volumes that are removable or
336
        fixed.&lt;/flag&gt;
337
    &lt;flag name='dell'&gt;Builds an installs the Dell addon, which reads data from
338
        the Dell SM BIOS via &lt;pkg&gt;sys-libs/libsmbios&lt;/pkg&gt;. It will read your
339
        service tag information and your hardware backlight data as well as
340
        allow you to modify the backlight settings on a Dell laptop.&lt;/flag&gt;
341
    &lt;flag name='disk-partition'&gt;Allows HAL to use libparted from
342
        &lt;pkg&gt;sys-apps/parted&lt;/pkg&gt; to read raw partition data from your disks
343
        and process that data. Future versions of HAL (possibly 0.5.11 and
344
        higher) will allow you to create, modify, delete and format partitions
345
        from a GUI interface agnostic of your desktop environment.&lt;/flag&gt;
346
    &lt;flag name='doc'&gt;Generates documentation that describes HAL's fdi
347
        format.&lt;/flag&gt;
348
    &lt;flag name='pcmcia'&gt;Allows HAL to process PCMCIA/CardBus slot data which
349
        includes inserts and removals and act on these events.&lt;/flag&gt;
350
    &lt;flag name='selinux'&gt;Installs SELinux policies and links HAL to the SELinux
351
        libraries.&lt;/flag&gt;
352
&lt;/use&gt;
353
&lt;/pkgmetadata&gt;
354
</pre>
355
356
</body>
357
</subsection>
263
</section>
358
</section>
264
</sections>
359
</sections>

Return to bug 199788