commit:     396b2f8aeea0a241ea74d3b0a4508c4f7ca34241
Author:     Joonas Niilola <juippis <AT> gmail <DOT> com>
AuthorDate: Wed Mar 27 14:06:09 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Mar 27 17:22:14 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=396b2f8a

app-doc/eclass-manpages: display @SUPPORTED_EAPIS

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Joonas Niilola <juippis <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/11516
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 app-doc/eclass-manpages/files/eclass-to-manpage.awk | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/app-doc/eclass-manpages/files/eclass-to-manpage.awk 
b/app-doc/eclass-manpages/files/eclass-to-manpage.awk
index b40eaf11209..53e05973e16 100644
--- a/app-doc/eclass-manpages/files/eclass-to-manpage.awk
+++ b/app-doc/eclass-manpages/files/eclass-to-manpage.awk
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # This awk converts the comment documentation found in eclasses
@@ -93,7 +93,7 @@ function xfail(text) {
 
 function eat_line() {
        ret = $0
-       sub(/^# @[A-Z]*:[[:space:]]*/,"",ret)
+       sub(/^# @[^:]+:[[:space:]]*/,"",ret)
        getline
        return ret
 }
@@ -201,6 +201,10 @@ function handle_eclass() {
                print ".SH \"DESCRIPTION\""
                print man_text(desc)
        }
+       if (supported_eapis != "") {
+               print ".SH \"SUPPORTED EAPIS\""
+               print man_text(supported_eapis)
+       }
        if (example != "") {
                print ".SH \"EXAMPLE\""
                print man_text(example)

Reply via email to