aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorHorodniceanu Andrei <a.horodniceanu@proton.me>2023-10-11 14:40:06 +0300
committerHorodniceanu Andrei <a.horodniceanu@proton.me>2023-11-17 22:54:08 +0200
commitc606e7a45cdf790f9bf3947c97b1d78f545d829d (patch)
treebae3963a32693a121d93043bd69d82623c1bf04d /eclass
parentdmd.eclass: support EAPI 7 and 8 (diff)
downloaddlang-c606e7a45cdf790f9bf3947c97b1d78f545d829d.tar.gz
dlang-c606e7a45cdf790f9bf3947c97b1d78f545d829d.tar.bz2
dlang-c606e7a45cdf790f9bf3947c97b1d78f545d829d.zip
dlang.eclass: explicitly support EAPI 6, 7 and 8
Signed-off-by: Horodniceanu Andrei <a.horodniceanu@proton.me>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/dlang.eclass10
1 files 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 <marco.leise@gmx.de>
+# @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