1 |
commit: 780f38c78fc0306ac46488af394b414524d98b71 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 6 15:16:44 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 6 15:34:22 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=780f38c7 |
7 |
|
8 |
dev-python/lit: Add 15.x live ebuild |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/lit/lit-15.0.0.9999.ebuild | 41 +++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 41 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/lit/lit-15.0.0.9999.ebuild b/dev-python/lit/lit-15.0.0.9999.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..89c5315a5acb |
18 |
--- /dev/null |
19 |
+++ b/dev-python/lit/lit-15.0.0.9999.ebuild |
20 |
@@ -0,0 +1,41 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+DISTUTILS_USE_PEP517=setuptools |
27 |
+PYTHON_COMPAT=( python3_{8..10} ) |
28 |
+ |
29 |
+inherit distutils-r1 llvm.org |
30 |
+ |
31 |
+DESCRIPTION="A stand-alone install of the LLVM suite testing tool" |
32 |
+HOMEPAGE="https://llvm.org/" |
33 |
+ |
34 |
+LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="" |
37 |
+IUSE="test" |
38 |
+RESTRICT="!test? ( test )" |
39 |
+ |
40 |
+# Tests require 'FileCheck' and 'not' utilities (from llvm) |
41 |
+BDEPEND=" |
42 |
+ test? ( |
43 |
+ dev-python/psutil[${PYTHON_USEDEP}] |
44 |
+ sys-devel/llvm |
45 |
+ )" |
46 |
+ |
47 |
+LLVM_COMPONENTS=( llvm/utils/lit ) |
48 |
+llvm.org_set_globals |
49 |
+ |
50 |
+# TODO: move the manpage generation here (from sys-devel/llvm) |
51 |
+ |
52 |
+src_prepare() { |
53 |
+ cd "${WORKDIR}" || die |
54 |
+ distutils-r1_src_prepare |
55 |
+} |
56 |
+ |
57 |
+python_test() { |
58 |
+ local -x LIT_PRESERVES_TMP=1 |
59 |
+ local litflags=$(get_lit_flags) |
60 |
+ ./lit.py ${litflags//;/ } tests || die |
61 |
+} |