diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-07-17 00:33:21 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2021-07-17 00:33:21 +0200 |
commit | d9e60f491cb9ad6e0bf3328a027e30d8389b2553 (patch) | |
tree | 7f22792710e00df85db1fbff3f17b1cdc0a05589 /eclass | |
parent | media-libs/openexr: keyword 2.5.7 for ~riscv (diff) | |
download | gentoo-d9e60f491cb9ad6e0bf3328a027e30d8389b2553.tar.gz gentoo-d9e60f491cb9ad6e0bf3328a027e30d8389b2553.tar.bz2 gentoo-d9e60f491cb9ad6e0bf3328a027e30d8389b2553.zip |
bash-completion-r1.eclass: Add EAPI 8 support
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/bash-completion-r1.eclass | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/eclass/bash-completion-r1.eclass b/eclass/bash-completion-r1.eclass index 80f2d5fcd32a..f0451b773a93 100644 --- a/eclass/bash-completion-r1.eclass +++ b/eclass/bash-completion-r1.eclass @@ -4,12 +4,12 @@ # @ECLASS: bash-completion-r1.eclass # @MAINTAINER: # mgorny@gentoo.org -# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7 +# @SUPPORTED_EAPIS: 5 6 7 8 # @BLURB: A few quick functions to install bash-completion files # @EXAMPLE: # # @CODE -# EAPI=5 +# EAPI=8 # # src_configure() { # econf \ @@ -23,11 +23,14 @@ # } # @CODE +if [[ ! ${_BASH_COMPLETION_R1_ECLASS} ]]; then +_BASH_COMPLETION_R1_ECLASS=1 + inherit toolchain-funcs -case ${EAPI:-0} in - 0|1|2|3|4|5|6|7) ;; - *) die "EAPI ${EAPI} unsupported (yet)." +case ${EAPI} in + 5|6|7|8) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac # @FUNCTION: _bash-completion-r1_get_bashdir @@ -136,3 +139,5 @@ bashcomp_alias() { || return done } + +fi |