kde5.eclass: Qt 5.12 is changing qch doc location
authorAndreas Sturmlechner <asturm@gentoo.org>
Thu, 31 Jan 2019 22:34:49 +0000 (23:34 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Thu, 21 Mar 2019 16:24:52 +0000 (17:24 +0100)
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
eclass/kde5.eclass

index 176eb1337c7d44de3b90b1c976b2c14ac694cb1d..d7b5eb7f15e480ab5fc4e60e8015e4de5c9aaa48 100644 (file)
@@ -701,8 +701,11 @@ kde5_src_install() {
        # cmake can't find the tags and qthelp viewers can't find the docs
        local p=$(best_version dev-qt/qtcore:5)
        local pv=$(echo ${p/%-r[0-9]*/} | rev | cut -d - -f 1 | rev)
-       if [[ -d ${ED%/}/usr/share/doc/qt-${pv} ]]; then
-               docompress -x /usr/share/doc/qt-${pv}
+       if [[ ${pv} = 5.11* ]]; then
+               #todo: clean up trailing slash check when EAPI <7 is removed
+               if [[ -d ${ED%/}/usr/share/doc/qt-${pv} ]]; then
+                       docompress -x /usr/share/doc/qt-${pv}
+               fi
        fi
 
        if [[ ${EAPI} = 6 ]]; then