* [gentoo-dev] [PATCH eclass2manpage] Add @PROVIDES tag to indicate transitive eclass inheritance
@ 2021-08-29 9:17 Michał Górny
2021-09-01 16:26 ` Michał Górny
0 siblings, 1 reply; 2+ messages in thread
From: Michał Górny @ 2021-08-29 9:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Michał Górny
Add a @PROVIDES eclassdoc tag that can be used to indicate that
a particular eclass transitively provides the functions from another
eclass and therefore ebuilds inheriting it do not have to explicitly
inherit the other eclass.
For example, distutils-r1 provides python-r1/python-single-r1, and all
python*-r1 eclasse provide python-utils-r1.
This data will be used to drive pkgcheck checks for missing inherits.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
eclass-to-manpage.awk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/eclass-to-manpage.awk b/eclass-to-manpage.awk
index 1ffafd1..cde7c2b 100755
--- a/eclass-to-manpage.awk
+++ b/eclass-to-manpage.awk
@@ -174,6 +174,7 @@ function handle_eclass() {
eclass_maintainer = ""
eclass_author = ""
supported_eapis = ""
+ provides = ""
blurb = ""
deprecated = ""
desc = ""
@@ -207,6 +208,8 @@ function handle_eclass() {
vcs_url = eat_line()
if ($2 == "@SUPPORTED_EAPIS:")
supported_eapis = eat_line()
+ if ($2 == "@PROVIDES:")
+ provides = eat_line()
if ($2 == "@BLURB:")
blurb = eat_line()
if ($2 == "@DEPRECATED:")
@@ -234,6 +237,10 @@ function handle_eclass() {
print ".SH \"SUPPORTED EAPIS\""
print man_text(supported_eapis)
}
+ if (provides != "") {
+ print ".SH \"TRANSITIVELY PROVIDED ECLASSES\""
+ print man_text(provides)
+ }
if (example != "") {
print ".SH \"EXAMPLE\""
print man_text(example)
--
2.33.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [gentoo-dev] [PATCH eclass2manpage] Add @PROVIDES tag to indicate transitive eclass inheritance
2021-08-29 9:17 [gentoo-dev] [PATCH eclass2manpage] Add @PROVIDES tag to indicate transitive eclass inheritance Michał Górny
@ 2021-09-01 16:26 ` Michał Górny
0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2021-09-01 16:26 UTC (permalink / raw
To: gentoo-dev
On Sun, 2021-08-29 at 11:17 +0200, Michał Górny wrote:
> Add a @PROVIDES eclassdoc tag that can be used to indicate that
> a particular eclass transitively provides the functions from another
> eclass and therefore ebuilds inheriting it do not have to explicitly
> inherit the other eclass.
>
> For example, distutils-r1 provides python-r1/python-single-r1, and all
> python*-r1 eclasse provide python-utils-r1.
>
> This data will be used to drive pkgcheck checks for missing inherits.
>
Merged. Expect new pkgcore+pkgcheck release in a few days.
--
Best regards,
Michał Górny
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-01 16:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-29 9:17 [gentoo-dev] [PATCH eclass2manpage] Add @PROVIDES tag to indicate transitive eclass inheritance Michał Górny
2021-09-01 16:26 ` Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox