From: Andreas Sturmlechner Date: Thu, 31 Jan 2019 22:34:49 +0000 (+0100) Subject: kde5.eclass: Qt 5.12 is changing qch doc location X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ac3cc855859bc57c8ae5f67fe52b8f24ad816f50;p=gentoo.git kde5.eclass: Qt 5.12 is changing qch doc location Signed-off-by: Andreas Sturmlechner --- diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass index 176eb1337c7d..d7b5eb7f15e4 100644 --- a/eclass/kde5.eclass +++ b/eclass/kde5.eclass @@ -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