Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: vapier@g.o, tools-portage@g.o
Subject: Re: [gentoo-dev] [PATCH 1/2] app-portage/eclass-manpages: Add @SUPPORTED_EAPIS tag for eclass
Date: Fri, 28 Apr 2017 14:32:05
Message-Id: 1493389901.3838.2.camel@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/2] app-portage/eclass-manpages: Add @SUPPORTED_EAPIS tag for eclass by "Michał Górny"
1 On pią, 2017-04-28 at 16:06 +0200, Michał Górny wrote:
2 > Add a @SUPPORTED_EAPIS tag that can be used to explicitly provide a list
3 > of EAPIs that are supported by the eclass. The main goal is to make it
4 > possible to extract this list with relative ease, for scripting
5 > purposes. It is not included explicitly in the manpages at the moment.
6 >
7 > The first use case is to make it possible to explicitly distinguish
8 > eclasses that do not support a specific EAPI from eclasses that are not
9 > used by any ebuilds using a specific EAPI. Therefore, it will make it
10 > possible to easily detect when we can deprecate old EAPIs from eclasses.
11 > ---
12 > app-portage/eclass-manpages/files/eclass-to-manpage.awk | 4 ++++
13 > 1 file changed, 4 insertions(+)
14 >
15 > diff --git a/app-portage/eclass-manpages/files/eclass-to-manpage.awk b/app-portage/eclass-manpages/files/eclass-to-manpage.awk
16 > index 0b65162c04ec..fe7e9c12d8f5 100644
17 > --- a/app-portage/eclass-manpages/files/eclass-to-manpage.awk
18 > +++ b/app-portage/eclass-manpages/files/eclass-to-manpage.awk
19 > @@ -18,6 +18,7 @@
20 > # <optional; description of how to report bugs;
21 > # default: tell people to use bugs.gentoo.org>
22 > # @VCSURL: <optional; url to vcs for this eclass; default: https://gitweb.gentoo.org/repo/gentoo.git/log/eclass/@ECLASS@>;
23 > +# @SUPPORTED_EAPIS: <optional; space-separated list of EAPIs>
24
25 Hmm, I'm going to resubmit this with '-' instead of '_'. The doc format
26 doesn't use either consistently, so there's really no point trying to
27 follow the worse option.
28
29 > # @BLURB: <required; short description>
30 > # @DESCRIPTION:
31 > # <optional; long description>
32 > @@ -147,6 +148,7 @@ function handle_eclass() {
33 > eclass = $3
34 > eclass_maintainer = ""
35 > eclass_author = ""
36 > + supported_eapis = ""
37 > blurb = ""
38 > desc = ""
39 > example = ""
40 > @@ -176,6 +178,8 @@ function handle_eclass() {
41 > reporting_bugs = eat_paragraph()
42 > if ($2 == "@VCSURL:")
43 > vcs_url = eat_line()
44 > + if ($2 == "@SUPPORTED_EAPIS:")
45 > + supported_eapis = eat_line()
46 > if ($2 == "@BLURB:")
47 > blurb = eat_line()
48 > if ($2 == "@DESCRIPTION:")
49
50 --
51 Best regards,
52 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature