Skip to content

Commit

Permalink
dev-libs/libclc: Current version requires LLVM <= 5
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorny committed Sep 30, 2017
1 parent 57323d5 commit a795903
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions dev-libs/libclc/libclc-0.2.0_pre20170929.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,16 @@ KEYWORDS="~amd64 ~arm64 ~x86"
IUSE=""

RDEPEND="
>=sys-devel/clang-3.9
>=sys-devel/llvm-3.9"
|| (
sys-devel/clang:5
sys-devel/clang:4
>=sys-devel/clang-3.9:0
)"
DEPEND="${RDEPEND}
${PYTHON_DEPS}"

LLVM_MAX_SLOT=5

llvm_check_deps() {
has_version "sys-devel/clang:${LLVM_SLOT}"
}
Expand All @@ -50,7 +55,7 @@ pkg_setup() {
src_configure() {
./configure.py \
--with-cxx-compiler="$(tc-getCXX)" \
--with-llvm-config="$(get_llvm_prefix)/bin/llvm-config" \
--with-llvm-config="$(get_llvm_prefix "${LLVM_MAX_SLOT}")/bin/llvm-config" \
--prefix="${EPREFIX}/usr" || die
}

Expand Down

0 comments on commit a795903

Please sign in to comment.