Skip to content

Commit

Permalink
qt5-build.eclass: add initial EAPI 6 support
Browse files Browse the repository at this point in the history
(cherry picked from proj/qt commit 80b046cd0e1b639559e7344f9fdba75352f429f3)
  • Loading branch information
kensington authored and Pesa committed Feb 2, 2016
1 parent 9dab205 commit 1540a05
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions eclass/qt5-build.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@
# Requires EAPI 5.

case ${EAPI} in
5) : ;;
5|6) : ;;
*) die "qt5-build.eclass: unsupported EAPI=${EAPI:-0}" ;;
esac

inherit eutils flag-o-matic multilib toolchain-funcs versionator virtualx
inherit eutils flag-o-matic toolchain-funcs versionator virtualx

if [[ ${EAPI} == 5 ]] ; then
inherit multilib
fi

HOMEPAGE="https://www.qt.io/"
LICENSE="|| ( LGPL-2.1 LGPL-3 ) FDL-1.3"
Expand Down Expand Up @@ -197,9 +201,13 @@ qt5-build_src_prepare() {
src/{corelib/corelib,gui/gui}.pro || die "sed failed (optimize_full)"
fi

# apply patches
[[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}"
epatch_user
if [[ ${EAPI} == 5 ]]; then
# apply patches
[[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}"
epatch_user
else
default_src_prepare
fi
}

# @FUNCTION: qt5-build_src_configure
Expand Down

0 comments on commit 1540a05

Please sign in to comment.