From d94b36341a3a637744579b04180bddaf62d838a9 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Thu, 31 May 2018 18:37:42 +0200 Subject: qmake-utils.eclass: Ban Qt4-support in EAPI >=7 --- eclass/qmake-utils.eclass | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'eclass') diff --git a/eclass/qmake-utils.eclass b/eclass/qmake-utils.eclass index 74ceca4aadd1..67e13d7006b4 100644 --- a/eclass/qmake-utils.eclass +++ b/eclass/qmake-utils.eclass @@ -24,6 +24,7 @@ inherit estack toolchain-funcs # Echoes the directory where Qt4 binaries are installed. # 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 @@ -38,6 +39,7 @@ qt4_get_bindir() { # @DESCRIPTION: # Echoes the directory where Qt4 headers are installed. qt4_get_headerdir() { + [[ ${EAPI:-0} == [0123456] ]] || die "${FUNCNAME[1]} is banned in EAPI 7 and later" echo /usr/include/qt4 } @@ -45,6 +47,7 @@ qt4_get_headerdir() { # @DESCRIPTION: # Echoes the directory where Qt4 libraries are installed. qt4_get_libdir() { + [[ ${EAPI:-0} == [0123456] ]] || die "${FUNCNAME[1]} is banned in EAPI 7 and later" echo /usr/$(get_libdir)/qt4 } @@ -52,6 +55,7 @@ qt4_get_libdir() { # @DESCRIPTION: # Echoes the directory where Qt4 mkspecs are installed. qt4_get_mkspecsdir() { + [[ ${EAPI:-0} == [0123456] ]] || die "${FUNCNAME[1]} is banned in EAPI 7 and later" echo /usr/share/qt4/mkspecs } @@ -59,6 +63,7 @@ qt4_get_mkspecsdir() { # @DESCRIPTION: # Echoes the directory where Qt4 plugins are installed. qt4_get_plugindir() { + [[ ${EAPI:-0} == [0123456] ]] || die "${FUNCNAME[1]} is banned in EAPI 7 and later" echo $(qt4_get_libdir)/plugins } @@ -161,6 +166,7 @@ qmake-utils_find_pro_file() { 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" -- cgit v1.2.3-65-gdbad