-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Mon, 12 Oct 2015 23:49:11 +0200
"Andreas K. Huettel" <dilfri...@gentoo.org> wrote:

> There seems to be some general confusion about specific package SLOTs
> and their meaning, since there can be several naming schemes applied
> and documentation is either non-existent or is inside the ebuild via
> comments.
> Because of that it should be part of metadata.xml.
> 
> An example use case for media-libs/libpng would be:
> <slots>
>     <slot name="0">For building against. This is the only slot
>         that provides headers and command line tools.</slot>
>     <slot name="1.2">For binary compatibility, provides
> libpng12.so.0.</slot> <slot name="1.5">For binary compatibility,
> provides libpng15.so.15.</slot> <subslots>Represent ABI compatibility
> for libpng.so.</subslots> </slots>
> 
> For packages like x11-libs/wxGTK one could write:
> <slots>
>     <slot name="*">Major versions.</slot>
> </slots>
> ---
>  metadata.dtd | 12 +++++++++++-
>  1 file changed, 11 insertions(+), 1 deletion(-)
> 
> diff --git a/metadata.dtd b/metadata.dtd
> index ff2649c..4b29f3b 100644
> --- a/metadata.dtd
> +++ b/metadata.dtd
> @@ -5,7 +5,7 @@
>  <!ATTLIST catmetadata pkgname CDATA "">
>  
>  <!-- Metadata for a package -->
> -<!ELEMENT pkgmetadata
> ( (herd|maintainer|natural-name|longdescription|use|upstream)* )>
> +<!ELEMENT pkgmetadata
> ( (herd|maintainer|natural-name|longdescription|slots|use|upstream)*
> )> <!ATTLIST pkgmetadata pkgname CDATA ""> <!-- One tag for each herd
> this package is assigned to. --> @@ -20,6 +20,15 @@
>    <!-- A long description of the package in freetext-->
>    <!ELEMENT longdescription (#PCDATA|pkg|cat)* >
>  
> +  <!-- A description of the packages SLOTs -->
> +  <!ELEMENT slots ((slot)*,subslots?) >
> +    <!-- A particular SLOT -->
> +    <!ELEMENT slot (#PCDATA)* >
> +      <!-- name attribute holds the name of the SLOT, for sub-SLOTS
> use the subslots element -->
> +      <!ATTLIST slot name CDATA #REQUIRED >
> +    <!-- The meaning of sub-SLOTs for the whole package -->
> +    <!ELEMENT subslots (#PCDATA)* >
> +
>    <!-- The changelog of the package-->
>    <!-- Please note that #PCDATA is mentioned only for the upstream
> changelog element, where the content is a URL. This is due to
> limitations of the DTD --> @@ -79,6 +88,7 @@
>    language "C" or "en", which is equivalent -->
>    <!ATTLIST description lang CDATA "C" >
>    <!ATTLIST longdescription lang CDATA "C" >
> +  <!ATTLIST slots lang CDATA "C" >
>    <!ATTLIST use lang CDATA "C" >
>  
>  <!-- The restrict attribute, this attribute specifies restrictions
> on 

+1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWHGj/AAoJEBzZQR2yrxj7KWcQAJXawG1eTgdJZx1shunzk1QN
xLgHs0dKvsmvnutDkqxcdJ3p2OzbdHlJpZQn88htdfj3c2vYqEMCnORPYtdmqAUD
HzdnSdcXnfCIPGVcOy+uFftndW1A+AXDqouLDOh0AAbZ0loQKNvrbqlk6IB85p9d
yq3f/0oWYdE989BqRiljFWmDbCLvFe1D7oH3CAORzcZenOA5OpPxLfpR9dwpQrO1
1NHf+7HyvMK1LWABmGPySQgh12kCZWMri7F1epr1jepeuUtAormlAFG8I6fc0p6C
KPS21Oqu8ejHTL0ekL+0YDfjJtGbyZ0EexGrhPZwBA7X3E4R0bHxQxOYHc41jO3L
3owOk6nKkBT8iUClxz1uaS7IuhgpyPcGhrjnyzH5HP6K2Dr/FQCz9QS9RERnnFBu
HShFOttmVK4rvDUcsWcVx1SHnGWGonESsyjjRw6jGV7sbXD1kEsGjjf5JuYNMk6/
45tOP23HbIxj6eyMACXoQpXS3N+4nsBLHwZyLunGYd7RM7lLG7/byS3GXXweornr
MK9GYaPAxyyYPqt60UTJqfeFjNps30KuNgPeQva0ooRBPCS/GPt+N3PLdGWJ68mq
45Lne/c6JcD67wqsCllxg0IlsiNpnltq68Ky7mVir6eHo9RU1bhfoOLgZNxVUll9
uCMVDFG3047ynEMTV2Mj
=9URl
-----END PGP SIGNATURE-----

Reply via email to