commit: 09fef7e28c88b3c84fb9cc97358786310033f582 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Sun Jul 18 13:30:58 2021 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Mon Aug 9 05:48:34 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09fef7e2
virtualx.eclass: Support EAPI-8 Standardise include guard, fix minor typo. Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> eclass/virtualx.eclass | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/eclass/virtualx.eclass b/eclass/virtualx.eclass index ca52e8d2815..155d611e66e 100644 --- a/eclass/virtualx.eclass +++ b/eclass/virtualx.eclass @@ -6,17 +6,16 @@ # [email protected] # @AUTHOR: # Original author: Martin Schlemmer <[email protected]> -# @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
