commit:     9e47616fdcd6c62e5a4293d37d78896db4bc9bdd
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 25 17:30:26 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Wed Jun 30 08:56:04 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e47616f

eclass/docs.eclass: EAPI 8 support

Add support for EAPI 8, and update the PYTHON_COMPAT var in example.

Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 eclass/docs.eclass | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/eclass/docs.eclass b/eclass/docs.eclass
index 7ee7a11ca5e..f49c6aeab9d 100644
--- a/eclass/docs.eclass
+++ b/eclass/docs.eclass
@@ -7,7 +7,7 @@
 # @AUTHOR:
 # Author: Andrew Ammerlaan <[email protected]>
 # Based on the work of: Michał Górny <[email protected]>
-# @SUPPORTED_EAPIS: 6 7
+# @SUPPORTED_EAPIS: 6 7 8
 # @BLURB: A simple eclass to build documentation.
 # @DESCRIPTION:
 # A simple eclass providing basic functions and variables to build
@@ -50,7 +50,7 @@
 # DOCS_DEPEND="dev-python/mkdocs-material"
 # DOCS_DIR="doc"
 #
-# PYTHON_COMPAT=( python3_{7,8,9} )
+# PYTHON_COMPAT=( python3_{8..10} )
 #
 # inherit distutils-r1 docs
 #
@@ -61,7 +61,7 @@ case "${EAPI:-0}" in
        0|1|2|3|4|5)
                die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
                ;;
-       6|7)
+       6|7|8)
                ;;
        *)
                die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
@@ -378,7 +378,7 @@ case ${DOCS_BUILDER} in
                ;;
 esac
 
-if [[ ${EAPI} == [7] ]]; then
+if [[ ${EAPI} == [7,8] ]]; then
        BDEPEND+=" doc? ( ${DOCS_DEPEND} )"
 else
        DEPEND+=" doc? ( ${DOCS_DEPEND} )"

Reply via email to