Skip to content

Commit

Permalink
qmake-utils.eclass: Drop obsolete EAPI-5 support
Browse files Browse the repository at this point in the history
Last consumer in Gentoo ebuild repository was dropped.

Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Dec 2, 2019
1 parent f06b605 commit dcb2e45
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions eclass/qmake-utils.eclass
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# @ECLASS: qmake-utils.eclass
# @MAINTAINER:
# [email protected]
# @AUTHOR:
# Davide Pesavento <[email protected]>
# @SUPPORTED_EAPIS: 6 7
# @BLURB: Common functions for qmake-based packages.
# @DESCRIPTION:
# Utility eclass providing wrapper functions for Qt4 and Qt5 qmake.
Expand All @@ -16,7 +17,8 @@
if [[ -z ${_QMAKE_UTILS_ECLASS} ]]; then
_QMAKE_UTILS_ECLASS=1

[[ ${EAPI:-0} == [012345] ]] && inherit eutils multilib
[[ ${EAPI:-0} == [012345] ]] && die "qmake-utils.eclass: unsupported EAPI=${EAPI:-0}"

inherit estack toolchain-funcs

# @FUNCTION: qt4_get_bindir
Expand All @@ -25,7 +27,6 @@ inherit estack toolchain-funcs
# EPREFIX is already prepended to the returned path.
qt4_get_bindir() {
[[ ${EAPI:-0} == [0123456] ]] || die "${FUNCNAME[1]} is banned in EAPI 7 and later"
has "${EAPI:-0}" 0 1 2 && use !prefix && EPREFIX=

local qtbindir=${EPREFIX}$(qt4_get_libdir)/bin
if [[ -d ${qtbindir} ]]; then
Expand Down Expand Up @@ -72,8 +73,6 @@ qt4_get_plugindir() {
# Echoes the directory where Qt5 binaries are installed.
# EPREFIX is already prepended to the returned path.
qt5_get_bindir() {
has "${EAPI:-0}" 0 1 2 && use !prefix && EPREFIX=

echo ${EPREFIX}$(qt5_get_libdir)/qt5/bin
}

Expand Down Expand Up @@ -167,7 +166,6 @@ eqmake4() {
debug-print-function ${FUNCNAME} "$@"

[[ ${EAPI:-0} == [0123456] ]] || die "${FUNCNAME[1]} is banned in EAPI 7 and later"
has "${EAPI:-0}" 0 1 2 && use !prefix && EPREFIX=

ebegin "Running qmake"

Expand Down

0 comments on commit dcb2e45

Please sign in to comment.