kde5-functions.eclass: Disallow add_qt_dep for discontinued qtwebkit
authorAndreas Sturmlechner <asturm@gentoo.org>
Wed, 30 Jan 2019 21:32:05 +0000 (22:32 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Thu, 7 Feb 2019 12:59:53 +0000 (13:59 +0100)
Drop support for it as packages are slowly being ported away from it.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
eclass/kde5-functions.eclass

index 8098020c5f2094ca9f92f6d1cdede2c208ccfb7b..1d0a0ffb3236b7990b8dd0da1fa3dcb6d8bbd3da 100644 (file)
@@ -264,10 +264,10 @@ add_qt_dep() {
        local slot=${4}
 
        if [[ -z ${version} ]]; then
+               version=${QT_MINIMAL}
                if [[ ${1} = qtwebkit ]]; then
-                       version=5.9.1 # no more upstream release
-               else
-                       version=${QT_MINIMAL}
+                       version=5.9.1
+                       [[ ${EAPI} != 6 ]] && die "${FUNCNAME} is disallowed for 'qtwebkit' in EAPI 7 and later"
                fi
        fi
        if [[ -z ${slot} ]]; then