summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-06-25 19:30:26 +0200
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-06-30 10:56:04 +0200
commit9e47616fdcd6c62e5a4293d37d78896db4bc9bdd (patch)
treeb0edf98955a099a7b954398da44cf214319bf790 /eclass
parentnet-analyzer/zabbix: removed odbc from server/proxy restrictions (diff)
downloadgentoo-9e47616fdcd6c62e5a4293d37d78896db4bc9bdd.tar.gz
gentoo-9e47616fdcd6c62e5a4293d37d78896db4bc9bdd.tar.bz2
gentoo-9e47616fdcd6c62e5a4293d37d78896db4bc9bdd.zip
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@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/docs.eclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/docs.eclass b/eclass/docs.eclass
index 7ee7a11ca5e4..f49c6aeab9df 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
+# @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} )"