Bug: https://bugs.gentoo.org/711642
Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
IUSE=""
RDEPEND="
- sys-devel/clang:=
+ <sys-devel/clang-10:=
>=sys-devel/llvm-3.8:=
"
DEPEND="${RDEPEND}"
# clang pulls in the equivalent llvm version, but not vice versa.
# so, we must find llvm based on the installed clang version.
# bug #681568
- local clang_version=$(best_version sys-devel/clang)
+ local clang_version=$(best_version "<sys-devel/clang-10")
export LLVM_ROOT="/usr/lib/llvm/$(ver_cut 1 ${clang_version##sys-devel/clang-})"
cmake_src_configure
}