kde5.eclass: Fix non-compression of docbooks
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 10 Jun 2017 17:43:37 +0000 (19:43 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sun, 11 Jun 2017 11:43:55 +0000 (13:43 +0200)
PREFIX was never defined, making this a no-op.

eclass/kde5.eclass

index 71839733485caab96683ff4c03ca62b21106a62b..cbcbb27672c8cd612ee519461712a2619c95a809 100644 (file)
@@ -710,10 +710,10 @@ kde5_src_install() {
 
        cmake-utils_src_install
 
-       # We don't want ${PREFIX}/share/doc/HTML to be compressed,
+       # We don't want /usr/share/doc/HTML to be compressed,
        # because then khelpcenter can't find the docs
-       if [[ -d ${ED}/${PREFIX}/share/doc/HTML ]]; then
-               docompress -x ${PREFIX}/share/doc/HTML
+       if [[ -d ${ED%/}/usr/share/doc/HTML ]]; then
+               docompress -x /usr/share/doc/HTML
        fi
 }