Standardise include guard, fix minor typo.

Signed-off-by: Andreas Sturmlechner <ast...@gentoo.org>
---
 eclass/virtualx.eclass | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/eclass/virtualx.eclass b/eclass/virtualx.eclass
index ca52e8d2815..f362327cf77 100644
--- a/eclass/virtualx.eclass
+++ b/eclass/virtualx.eclass
@@ -6,17 +6,16 @@
 # x...@gentoo.org
 # @AUTHOR:
 # Original author: Martin Schlemmer <aza...@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." ;;
+       6|7|8) ;;
+       *) die "virtualx.eclass: EAPI ${EAPI:-0} is not supported." ;;
 esac
 
-if [[ ! ${_VIRTUAL_X} ]]; then
-_VIRTUAL_X=1
+if [[ ! ${_VIRTUAL_X_ECLASS} ]]; then
+_VIRTUAL_X_ECLASS=1
 
 # @ECLASS-VARIABLE: VIRTUALX_REQUIRED
 # @PRE_INHERIT
-- 
2.32.0

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to