• [gentoo-dev] [PATCH eclass2manpage] Add @PROVIDES tag to indicate trans

    From =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?@21:1/5 to All on Sun Aug 29 11:20:01 2021
    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

    --- SoupGate-Win
  • From =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?=@21:1/5 to All on Wed Sep 1 18:30:01 2021
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)