Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/lit/
Date: Fri, 05 Aug 2022 19:50:13
Message-Id: 1659728994.f3607e824459640aeb5300f6bcf5e9e3a72ad819.mgorny@gentoo
1 commit: f3607e824459640aeb5300f6bcf5e9e3a72ad819
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 5 19:48:37 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 5 19:49:54 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3607e82
7
8 dev-python/lit: Add 16.* live ebuilds
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/lit/lit-16.0.0.9999.ebuild | 42 +++++++++++++++++++++++++++++++++++
13 1 file changed, 42 insertions(+)
14
15 diff --git a/dev-python/lit/lit-16.0.0.9999.ebuild b/dev-python/lit/lit-16.0.0.9999.ebuild
16 new file mode 100644
17 index 000000000000..8ace6ca8b915
18 --- /dev/null
19 +++ b/dev-python/lit/lit-16.0.0.9999.ebuild
20 @@ -0,0 +1,42 @@
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..11} )
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 +
48 +LLVM_COMPONENTS=( llvm/utils/lit )
49 +llvm.org_set_globals
50 +
51 +# TODO: move the manpage generation here (from sys-devel/llvm)
52 +
53 +src_prepare() {
54 + cd "${WORKDIR}" || die
55 + distutils-r1_src_prepare
56 +}
57 +
58 +python_test() {
59 + local -x LIT_PRESERVES_TMP=1
60 + local litflags=$(get_lit_flags)
61 + ./lit.py ${litflags//;/ } tests || die
62 +}