summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-04-30 07:17:12 +0200
committerMichał Górny <mgorny@gentoo.org>2019-05-24 06:59:13 +0200
commit7ab8909d90eee0739a2ab7ecea39769553fa9172 (patch)
tree544f14f715b9e70fc3aaf95b9e24dd9ef21ff9c5 /eclass
parentllvm.eclass: Remove unnecessary '_rc' from < example (diff)
downloadgentoo-7ab8909d90eee0739a2ab7ecea39769553fa9172.tar.gz
gentoo-7ab8909d90eee0739a2ab7ecea39769553fa9172.tar.bz2
gentoo-7ab8909d90eee0739a2ab7ecea39769553fa9172.zip
llvm.eclass: Update examples for newer LLVM versions
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/llvm.eclass14
1 files changed, 8 insertions, 6 deletions
diff --git a/eclass/llvm.eclass b/eclass/llvm.eclass
index 618a924bbb87..6ca2f1737ba1 100644
--- a/eclass/llvm.eclass
+++ b/eclass/llvm.eclass
@@ -17,20 +17,21 @@
# a proper dependency string yourself to guarantee that appropriate
# version of LLVM is installed.
#
-# Example use for a package supporting LLVM 3.8 to 5:
+# Example use for a package supporting LLVM 5 to 7:
# @CODE
# inherit cmake-utils llvm
#
# RDEPEND="
-# <sys-devel/llvm-6:=
+# <sys-devel/llvm-8:=
# || (
+# sys-devel/llvm:7
+# sys-devel/llvm:6
# sys-devel/llvm:5
-# sys-devel/llvm:4
-# >=sys-devel/llvm-3.8:0
# )
# "
+# DEPEND=${RDEPEND}
#
-# LLVM_MAX_SLOT=5
+# LLVM_MAX_SLOT=7
#
# # only if you need to define one explicitly
# pkg_setup() {
@@ -46,8 +47,9 @@
# # note: do not use := on both clang and llvm, it can match different
# # slots then. clang pulls llvm in, so we can skip the latter.
# RDEPEND="
-# >=sys-devel/clang-4:=[llvm_targets_AMDGPU(+)]
+# >=sys-devel/clang-6:=[llvm_targets_AMDGPU(+)]
# "
+# DEPEND=${RDEPEND}
#
# llvm_check_deps() {
# has_version "sys-devel/clang:${LLVM_SLOT}[llvm_targets_AMDGPU(+)]"