• [gentoo-dev] [PATCH 07/41] docs.eclass: drop EAPI 6 support

    From David Seifert@21:1/5 to All on Sun Dec 25 23:20:01 2022
    Signed-off-by: David Seifert <soap@gentoo.org>
    ---
    eclass/docs.eclass | 24 +++++++-----------------
    1 file changed, 7 insertions(+), 17 deletions(-)

    diff --git a/eclass/docs.eclass b/eclass/docs.eclass
    index 5a63044a864..ed1558bc9a8 100644
    --- a/eclass/docs.eclass
    +++ b/eclass/docs.eclass
    @@ -7,7 +7,7 @@
    # @AUTHOR:
    # Author: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
    # Based on the work of: Michał Górny <mgorny@gentoo.org>
    -# @SUPPORTED_EAPIS: 6 7 8
    +# @SUPPORTED_EAPIS: 7 8
    # @BLURB: A simple eclass to build documentation.
    # @DESCRIPTION:
    # A simple eclass providing basic functions and variables to build
    @@ -57,15 +57,9 @@
    # ...
    # @CODE

    -case "${EAPI:-0}" in
    - 0|1|2|3|4|5)
    - die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
    - ;;
    - 6|7|8)
    - ;;
    - *)
    - die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
    - ;;
    +case ${EAPI} in
    + 7|8) ;;
    + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
    esac

    # @ECLASS_VARIABLE: DOCS_BUILDER
    @@ -152,7 +146,8 @@ esac
    # will initialize a dummy git repos