commit:     ae218963be983cbd10a6f7aafadb7678b749c1e1
Author:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 25 18:43:46 2017 +0000
Commit:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
CommitDate: Tue Apr 25 18:43:46 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae218963

qt5-build.eclass: drop support for EAPI 5

 eclass/qt5-build.eclass | 23 +++++++----------------
 1 file changed, 7 insertions(+), 16 deletions(-)

diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 4dcd4f29175..e239b25ec2e 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -9,14 +9,14 @@
 # @BLURB: Eclass for Qt5 split ebuilds.
 # @DESCRIPTION:
 # This eclass contains various functions that are used when building Qt5.
-# Requires EAPI 5 or 6.
+# Requires EAPI 6.
 
 if [[ ${CATEGORY} != dev-qt ]]; then
        die "qt5-build.eclass is only to be used for building Qt 5."
 fi
 
 case ${EAPI} in
-       5|6)    : ;;
+       6)      : ;;
        *)      die "qt5-build.eclass: unsupported EAPI=${EAPI:-0}" ;;
 esac
 
@@ -47,7 +47,6 @@ esac
 # for tests you should proceed with setting VIRTUALX_REQUIRED=test.
 : ${VIRTUALX_REQUIRED:=manual}
 
-[[ ${EAPI} == 5 ]] && inherit multilib
 inherit eutils flag-o-matic toolchain-funcs versionator virtualx
 
 HOMEPAGE="https://www.qt.io/";
@@ -208,12 +207,7 @@ qt5-build_src_prepare() {
                        src/{corelib/corelib,gui/gui}.pro || die "sed failed 
(optimize_full)"
        fi
 
-       if [[ ${EAPI} == 5 ]]; then
-               [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}"
-               epatch_user
-       else
-               default
-       fi
+       default
 }
 
 # @FUNCTION: qt5-build_src_configure
@@ -448,9 +442,6 @@ qt5_prepare_env() {
 qt5_foreach_target_subdir() {
        [[ -z ${QT5_TARGET_SUBDIRS[@]} ]] && QT5_TARGET_SUBDIRS=("")
 
-       local die_args=()
-       [[ ${EAPI} != 5 ]] && die_args+=(-n)
-
        local subdir=
        for subdir in "${QT5_TARGET_SUBDIRS[@]}"; do
                if [[ ${EBUILD_PHASE} == test ]]; then
@@ -461,12 +452,12 @@ qt5_foreach_target_subdir() {
                local msg="Running $* ${subdir:+in ${subdir}}"
                einfo "${msg}"
 
-               mkdir -p "${QT5_BUILD_DIR}/${subdir}" || die "${die_args[@]}" 
|| return $?
-               pushd "${QT5_BUILD_DIR}/${subdir}" >/dev/null || die 
"${die_args[@]}" || return $?
+               mkdir -p "${QT5_BUILD_DIR}/${subdir}" || die -n || return $?
+               pushd "${QT5_BUILD_DIR}/${subdir}" >/dev/null || die -n || 
return $?
 
-               "$@" || die "${die_args[@]}" "${msg} failed" || return $?
+               "$@" || die -n "${msg} failed" || return $?
 
-               popd >/dev/null || die "${die_args[@]}" || return $?
+               popd >/dev/null || die -n || return $?
        done
 }
 

Reply via email to