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: dev-libs/libclc/
Date: Sat, 30 Sep 2017 18:04:50
Message-Id: 1506794682.a79590398ea15ac3cec7fb6933273a3baba1bc41.mgorny@gentoo
1 commit: a79590398ea15ac3cec7fb6933273a3baba1bc41
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 30 16:47:40 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 30 18:04:42 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7959039
7
8 dev-libs/libclc: Current version requires LLVM <= 5
9
10 dev-libs/libclc/libclc-0.2.0_pre20170929.ebuild | 11 ++++++++---
11 1 file changed, 8 insertions(+), 3 deletions(-)
12
13 diff --git a/dev-libs/libclc/libclc-0.2.0_pre20170929.ebuild b/dev-libs/libclc/libclc-0.2.0_pre20170929.ebuild
14 index f65d16dc085..1f8b52cf3fb 100644
15 --- a/dev-libs/libclc/libclc-0.2.0_pre20170929.ebuild
16 +++ b/dev-libs/libclc/libclc-0.2.0_pre20170929.ebuild
17 @@ -33,11 +33,16 @@ KEYWORDS="~amd64 ~arm64 ~x86"
18 IUSE=""
19
20 RDEPEND="
21 - >=sys-devel/clang-3.9
22 - >=sys-devel/llvm-3.9"
23 + || (
24 + sys-devel/clang:5
25 + sys-devel/clang:4
26 + >=sys-devel/clang-3.9:0
27 + )"
28 DEPEND="${RDEPEND}
29 ${PYTHON_DEPS}"
30
31 +LLVM_MAX_SLOT=5
32 +
33 llvm_check_deps() {
34 has_version "sys-devel/clang:${LLVM_SLOT}"
35 }
36 @@ -50,7 +55,7 @@ pkg_setup() {
37 src_configure() {
38 ./configure.py \
39 --with-cxx-compiler="$(tc-getCXX)" \
40 - --with-llvm-config="$(get_llvm_prefix)/bin/llvm-config" \
41 + --with-llvm-config="$(get_llvm_prefix "${LLVM_MAX_SLOT}")/bin/llvm-config" \
42 --prefix="${EPREFIX}/usr" || die
43 }