Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/mesa/
Date: Thu, 28 Sep 2017 13:19:19
Message-Id: 1506604525.976533254cfbfd7d68036e0cf9ca17e137b540b6.mgorny@gentoo
1 commit: 976533254cfbfd7d68036e0cf9ca17e137b540b6
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 17 09:45:28 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 28 13:15:25 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97653325
7
8 media-libs/mesa: Add llvm_check_deps() to enable slot matching
9
10 media-libs/mesa/mesa-9999.ebuild | 13 +++++++++++++
11 1 file changed, 13 insertions(+)
12
13 diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild
14 index 61bcd2822db..667956a123f 100644
15 --- a/media-libs/mesa/mesa-9999.ebuild
16 +++ b/media-libs/mesa/mesa-9999.ebuild
17 @@ -231,6 +231,19 @@ x86? (
18 )
19 )"
20
21 +llvm_check_deps() {
22 + local flags=${MULTILIB_USEDEP}
23 + if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
24 + then
25 + flags+=",llvm_targets_AMDGPU(-)"
26 + fi
27 +
28 + if use opencl; then
29 + has_version "sys-devel/clang[${flags}]" || return 1
30 + fi
31 + has_version "sys-devel/llvm[${flags}]"
32 +}
33 +
34 pkg_setup() {
35 # warning message for bug 459306
36 if use llvm && has_version sys-devel/llvm[!debug=]; then