dev-util/kdevelop: Fix build with >=sys-devel/llvm-10
authorAndreas Sturmlechner <asturm@gentoo.org>
Sun, 22 Mar 2020 20:39:35 +0000 (21:39 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sun, 22 Mar 2020 20:40:43 +0000 (21:40 +0100)
Reported-by: email200202@yahoo.com
Closes: https://bugs.gentoo.org/711594
Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
dev-util/kdevelop/kdevelop-5.5.0.ebuild

index 11aa55dc6a6f5edd6f845c83390e1e3eef9d9675..0355a681dc468758b349b2e8237f5ff72dbab595 100644 (file)
@@ -101,7 +101,11 @@ RESTRICT+=" test"
 # see bug 366471
 
 src_configure() {
+       local clang_version=$(best_version sys-devel/clang)
+       local llvm_root="/usr/lib/llvm/$(ver_cut 1 ${clang_version##sys-devel/clang-})"
+
        local mycmakeargs=(
+               -DLLVM_ROOT=${llvm_root}
                $(cmake_use_find_package gdbui KF5SysGuard)
                -DBUILD_executeplasmoid=$(usex plasma)
                $(cmake_use_find_package plasma KF5Plasma)