diff --git a/dev-qt/qttools/qttools-6.9.9999.ebuild b/dev-qt/qttools/qttools-6.9.9999.ebuild index ebf1142f7f028..74e7e707f7743 100644 --- a/dev-qt/qttools/qttools-6.9.9999.ebuild +++ b/dev-qt/qttools/qttools-6.9.9999.ebuild @@ -62,6 +62,13 @@ DEPEND=" ) " +src_prepare() { + qt6-build_src_prepare + + # qttools is picky about clang versions and ignores LLVM_SLOT + sed -i '/find_package/s/${VERSION}//' cmake/FindWrapLibClang.cmake || die +} + src_configure() { use clang && llvm_chost_setup diff --git a/dev-qt/qttools/qttools-6.9999.ebuild b/dev-qt/qttools/qttools-6.9999.ebuild index ebf1142f7f028..74e7e707f7743 100644 --- a/dev-qt/qttools/qttools-6.9999.ebuild +++ b/dev-qt/qttools/qttools-6.9999.ebuild @@ -62,6 +62,13 @@ DEPEND=" ) " +src_prepare() { + qt6-build_src_prepare + + # qttools is picky about clang versions and ignores LLVM_SLOT + sed -i '/find_package/s/${VERSION}//' cmake/FindWrapLibClang.cmake || die +} + src_configure() { use clang && llvm_chost_setup