commit: c606e7a45cdf790f9bf3947c97b1d78f545d829d Author: Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me> AuthorDate: Wed Oct 11 11:40:06 2023 +0000 Commit: Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me> CommitDate: Fri Nov 17 20:54:08 2023 +0000 URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=c606e7a4
dlang.eclass: explicitly support EAPI 6, 7 and 8 Signed-off-by: Horodniceanu Andrei <a.horodniceanu <AT> proton.me> eclass/dlang.eclass | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/eclass/dlang.eclass b/eclass/dlang.eclass index dc8d56e..385a458 100644 --- a/eclass/dlang.eclass +++ b/eclass/dlang.eclass @@ -1,6 +1,7 @@ # @ECLASS: dlang.eclass # @MAINTAINER: # Marco Leise <[email protected]> +# @SUPPORTED_EAPIS: 6 7 8 # @BLURB: install D libraries in multiple locations for each D version and compiler # @DESCRIPTION: # The dlang eclass faciliates creating dependiencies on D libraries for use @@ -32,12 +33,13 @@ if [[ ${_ECLASS_ONCE_DLANG} != "recur -_+^+_- spank" ]] ; then _ECLASS_ONCE_DLANG="recur -_+^+_- spank" -if has ${EAPI:-0} 0 1 2 3 4 5; then - die "EAPI must be >= 6 for dlang packages." -fi +case ${EAPI:-0} in + 6) inherit eapi7-ver ;; + 7|8) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac inherit flag-o-matic dlang-compilers -test ${EAPI:-0} -lt 7 && inherit eapi7-ver if [[ "${DLANG_PACKAGE_TYPE}" == "multi" ]]; then # We handle a multi instance package. inherit multilib-minimal
