commit:     a78bd8a4a9cbcbee17d6e8eb14d6bb672c51c909
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 27 16:30:09 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Dec 27 16:30:09 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a78bd8a4

rocm.eclass: drop EAPI 7 support

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 eclass/rocm.eclass | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/eclass/rocm.eclass b/eclass/rocm.eclass
index 4c8fd39f2491..cf7a18b70ad2 100644
--- a/eclass/rocm.eclass
+++ b/eclass/rocm.eclass
@@ -6,7 +6,7 @@
 # Gentoo Science Project <s...@gentoo.org>
 # @AUTHOR:
 # Yiyang Wu <xgreenlandfor...@gmail.com>
-# @SUPPORTED_EAPIS: 7 8
+# @SUPPORTED_EAPIS: 8
 # @BLURB: Common functions and variables for ROCm packages written in HIP
 # @DESCRIPTION:
 # ROCm packages such as sci-libs/<roc|hip>*, and packages built on top of ROCm
@@ -82,13 +82,14 @@
 # }
 # @CODE
 
-if [[ ! ${_ROCM_ECLASS} ]]; then
-
 case ${EAPI} in
-       7|8) ;;
+       8) ;;
        *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
+if [[ ! ${_ROCM_ECLASS} ]]; then
+_ROCM_ECLASS=1
+
 # @ECLASS_VARIABLE: ROCM_VERSION
 # @REQUIRED
 # @PRE_INHERIT
@@ -219,5 +220,4 @@ check_amdgpu() {
        done
 }
 
-_ROCM_ECLASS=1
 fi

Reply via email to