commit: 517d1e5f010273189e162e4bd64da8c2a58f7c72 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> AuthorDate: Thu Feb 25 07:48:44 2021 +0000 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> CommitDate: Thu Feb 25 07:48:57 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=517d1e5f
dev-util/include-what-you-use: use clang:= depend include-what-you-use links to clang and llvm libraries. Needs a rebuild when SONAME changes. Reported-by: Daniel M. Weeks Closes: https://bugs.gentoo.org/771792 Package-Manager: Portage-3.0.15, Repoman-3.0.2 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> ...you-use-11.0.ebuild => include-what-you-use-11.0-r1.ebuild} | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dev-util/include-what-you-use/include-what-you-use-11.0.ebuild b/dev-util/include-what-you-use/include-what-you-use-11.0-r1.ebuild similarity index 88% rename from dev-util/include-what-you-use/include-what-you-use-11.0.ebuild rename to dev-util/include-what-you-use/include-what-you-use-11.0-r1.ebuild index 19caadf0f6c..dc5b3760f2c 100644 --- a/dev-util/include-what-you-use/include-what-you-use-11.0.ebuild +++ b/dev-util/include-what-you-use/include-what-you-use-11.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -20,8 +20,8 @@ KEYWORDS="~amd64 ~x86" LLVM_MAX_SLOT=11 -RDEPEND="sys-devel/llvm:${LLVM_MAX_SLOT} - sys-devel/clang:${LLVM_MAX_SLOT} +RDEPEND=" + sys-devel/clang:${LLVM_MAX_SLOT}= ${PYTHON_DEPS} " DEPEND="${RDEPEND}" @@ -30,6 +30,10 @@ REQUIRED_USE=${PYTHON_REQUIRED_USE} S=${WORKDIR}/${PN}-${UPSTREAM_PV} +llvm_check_deps() { + has_version "sys-devel/clang:${LLVM_SLOT}" +} + pkg_setup() { llvm_pkg_setup python-single-r1_pkg_setup
