sys-devel/clang: Set the correct LLVM_CMAKE_PATH on Gentoo Prefix
authorJulius Putra Tanu Setiaji <indocomsoft@gmail.com>
Wed, 18 Dec 2019 13:59:05 +0000 (21:59 +0800)
committerMichał Górny <mgorny@gentoo.org>
Sun, 22 Dec 2019 08:16:27 +0000 (09:16 +0100)
Signed-off-by: Julius Putra Tanu Setiaji <indocomsoft@gmail.com>
Closes: https://bugs.gentoo.org/696844
Package-Manager: Portage-2.3.82, Repoman-2.3.20
Closes: https://github.com/gentoo/gentoo/pull/14036
Signed-off-by: Michał Górny <mgorny@gentoo.org>
sys-devel/clang/clang-10.0.0.9999.ebuild
sys-devel/clang/clang-9.0.1.ebuild

index cdd1274c4236543cc70536c27ca339697c833c82..8201088ceb49b802203fe888900fa0b9f9f8187d 100644 (file)
@@ -209,6 +209,7 @@ multilib_src_configure() {
        local clang_version=$(ver_cut 1-3 "${llvm_version}")
 
        local mycmakeargs=(
+               -DLLVM_CMAKE_PATH="${EPREFIX}/usr/lib/llvm/${SLOT}/$(get_libdir)/cmake/llvm"
                -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/llvm/${SLOT}"
                -DCMAKE_INSTALL_MANDIR="${EPREFIX}/usr/lib/llvm/${SLOT}/share/man"
                # relative to bindir
index 926c06a7ee9c9da3c65e9fe3edb3d892ad4836c6..6d46d251988396d0c3ba1cd0e60468224189e912 100644 (file)
@@ -96,6 +96,7 @@ multilib_src_configure() {
        local clang_version=$(ver_cut 1-3 "${llvm_version}")
 
        local mycmakeargs=(
+               -DLLVM_CMAKE_PATH="${EPREFIX}/usr/lib/llvm/${SLOT}/$(get_libdir)/cmake/llvm"
                -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/llvm/${SLOT}"
                -DCMAKE_INSTALL_MANDIR="${EPREFIX}/usr/lib/llvm/${SLOT}/share/man"
                # relative to bindir