diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2021-07-18 15:30:58 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2021-08-09 07:48:34 +0200 |
commit | 09fef7e28c88b3c84fb9cc97358786310033f582 (patch) | |
tree | 099ca9d49893ec6da3603716fcce77cfa0e24f70 /eclass/virtualx.eclass | |
parent | sci-electronics/kicad: Fixup ebuild to support opencascade-7.5.2 (diff) | |
download | gentoo-09fef7e28c88b3c84fb9cc97358786310033f582.tar.gz gentoo-09fef7e28c88b3c84fb9cc97358786310033f582.tar.bz2 gentoo-09fef7e28c88b3c84fb9cc97358786310033f582.zip |
virtualx.eclass: Support EAPI-8
Standardise include guard, fix minor typo.
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass/virtualx.eclass')
-rw-r--r-- | eclass/virtualx.eclass | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/eclass/virtualx.eclass b/eclass/virtualx.eclass index ca52e8d2815c..155d611e66ed 100644 --- a/eclass/virtualx.eclass +++ b/eclass/virtualx.eclass @@ -6,17 +6,16 @@ # x11@gentoo.org # @AUTHOR: # Original author: Martin Schlemmer <azarah@gentoo.org> -# @SUPPORTED_EAPIS: 6 7 -# @BLURB: This eclass can be used for packages that needs a working X environment to build. +# @SUPPORTED_EAPIS: 6 7 8 +# @BLURB: This eclass can be used for packages that need a working X environment to build. -case ${EAPI:-0} in - [0-5]) die "virtualx.eclass: EAPI ${EAPI} is too old." ;; - 6|7) ;; - *) die "virtualx.eclass: EAPI ${EAPI} is not supported yet." ;; +case ${EAPI} in + 6|7|8) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} is not supported." ;; esac -if [[ ! ${_VIRTUAL_X} ]]; then -_VIRTUAL_X=1 +if [[ ! ${_VIRTUALX_ECLASS} ]]; then +_VIRTUALX_ECLASS=1 # @ECLASS-VARIABLE: VIRTUALX_REQUIRED # @PRE_INHERIT |