1 |
commit: 9209a0540baa65332bca29560130845016f838f4 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 28 09:00:55 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 28 09:02:32 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9209a054 |
7 |
|
8 |
dev-python/lit: Add 13.x live ebuild |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/lit/lit-13.0.0.9999.ebuild | 40 +++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 40 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/lit/lit-13.0.0.9999.ebuild b/dev-python/lit/lit-13.0.0.9999.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..cd8a5985d34 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/lit/lit-13.0.0.9999.ebuild |
20 |
@@ -0,0 +1,40 @@ |
21 |
+# Copyright 1999-2021 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=7 |
25 |
+ |
26 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
27 |
+PYTHON_COMPAT=( python3_{6..9} ) |
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 |
+LLVM_COMPONENTS=( llvm/utils/lit ) |
47 |
+llvm.org_set_globals |
48 |
+ |
49 |
+# TODO: move the manpage generation here (from sys-devel/llvm) |
50 |
+ |
51 |
+src_prepare() { |
52 |
+ cd "${WORKDIR}" || die |
53 |
+ distutils-r1_src_prepare |
54 |
+} |
55 |
+ |
56 |
+python_test() { |
57 |
+ local -x LIT_PRESERVES_TMP=1 |
58 |
+ local litflags=$(get_lit_flags) |
59 |
+ ./lit.py ${litflags//;/ } tests || die |
60 |
+} |