Skip to content

Commit

Permalink
qt5-build.eclass: standardize "EAPI not supported" message
Browse files Browse the repository at this point in the history
Signed-off-by: Davide Pesavento <[email protected]>
  • Loading branch information
Pesa committed Jul 9, 2021
1 parent 3429304 commit e4b0c36
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions eclass/qt5-build.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e4b0c36

Please sign in to comment.