commit: e4b0c36e0925e5f5f53fe889bc260c0548fe43c1
Author: Davide Pesavento <pesa <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 9 02:00:05 2021 +0000
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org>
CommitDate: Fri Jul 9 02:01:23 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4b0c36e
qt5-build.eclass: standardize "EAPI not supported" message
Signed-off-by: Davide Pesavento <pesa <AT> gentoo.org>
eclass/qt5-build.eclass | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index e94f3f33a10..bc5928d3314 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -10,15 +10,14 @@
# @BLURB: Eclass for Qt5 split ebuilds.
# @DESCRIPTION:
# This eclass contains various functions that are used when building Qt5.
-# Requires EAPI 7.
if [[ ${CATEGORY} != dev-qt ]]; then
- die "qt5-build.eclass is only to be used for building Qt 5"
+ die "${ECLASS} is only to be used for building Qt 5"
fi
case ${EAPI} in
- 7) : ;;
- *) die "qt5-build.eclass: unsupported EAPI=${EAPI:-0}" ;;
+ 7) ;;
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
# @ECLASS-VARIABLE: QT5_MODULE