diff options
author | Davide Pesavento <pesa@gentoo.org> | 2017-04-25 20:43:46 +0200 |
---|---|---|
committer | Davide Pesavento <pesa@gentoo.org> | 2017-04-25 20:43:46 +0200 |
commit | ae218963be983cbd10a6f7aafadb7678b749c1e1 (patch) | |
tree | 7bea359b6a4cb89f458023d53dd03ed879a0fd14 /eclass | |
parent | www-apache/mod_gnutls: 0.8.2 can be built with gnutls-3.3 (diff) | |
download | gentoo-ae218963be983cbd10a6f7aafadb7678b749c1e1.tar.gz gentoo-ae218963be983cbd10a6f7aafadb7678b749c1e1.tar.bz2 gentoo-ae218963be983cbd10a6f7aafadb7678b749c1e1.zip |
qt5-build.eclass: drop support for EAPI 5
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/qt5-build.eclass | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass index 4dcd4f29175f..e239b25ec2ec 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 } |