See-Also:
https://bugs.gentoo.org/923228
See-Also:
https://bugs.gentoo.org/880671
Closes:
https://bugs.gentoo.org/821955
Closes:
https://bugs.gentoo.org/919150
Signed-off-by: Michał Górny <
mgorny@gentoo.org>
---
eclass/llvm-r1.eclass | 225 ++++++++++++++++++++++++++++++++++++++++
eclass/tests/llvm-r1.sh | 151 +++++++++++++++++++++++++++
2 files changed, 376 insertions(+)
create mode 100644 eclass/llvm-r1.eclass
create mode 100755 eclass/tests/llvm-r1.sh
Changes in v2: docstring fixes.
diff --git a/eclass/llvm-r1.eclass b/eclass/llvm-r1.eclass
new file mode 100644
index 000000000000..1b520f05e981
--- /dev/null
+++ b/eclass/llvm-r1.eclass
@@ -0,0 +1,225 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# @ECLASS: llvm-r1.eclass
+# @MAINTAINER:
+# Michał Górny <
mgorny@gentoo.org>
+# @AUTHOR:
+# Michał Górny <
mgorny@gentoo.org>
+# @SUPPORTED_EAPIS: 8
+# @PROVIDES: llvm-utils
+# @BLURB: Provide LLVM_SLOT to build against slotted LLVM
+# @DESCRIPTION:
+# An eclass to reliably depend on a set of LLVM-related packages
+# in a matching slot. To use the eclass:
+#
+# 1. Set LLVM_COMPAT to the list of supported LLVM slots.