kde5-functions.eclass: Fix add_qt_dep for QT_MINIMAL >=5.10
authorAndreas Sturmlechner <asturm@gentoo.org>
Wed, 25 Apr 2018 20:44:16 +0000 (22:44 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 12 May 2018 14:01:16 +0000 (16:01 +0200)
eclass/kde5-functions.eclass

index aab79b0ba9cc74780ca39c6d7888ad2c9e92ce6f..4435b09f69dfc53f3d407d4d4c6f36e4754990d4 100644 (file)
@@ -280,7 +280,7 @@ add_qt_dep() {
        local slot=${4}
 
        if [[ -z ${version} ]]; then
-               if [[ ${1} = qtwebkit && ${QT_MINIMAL} = 5.9* ]]; then
+               if [[ ${1} = qtwebkit && $(ver_cut 2 ${QT_MINIMAL}) -ge 9 ]]; then
                        version=5.9.1 # no more upstream release, need bug #624404
                else
                        version=${QT_MINIMAL}