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/clang-python/
Date: Fri, 05 Aug 2022 19:50:13
Message-Id: 1659728993.e1686a339270964c22e14b0a43d9dde170513a4c.mgorny@gentoo
1 commit: e1686a339270964c22e14b0a43d9dde170513a4c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 5 19:48:35 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 5 19:49:53 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1686a33
7
8 dev-python/clang-python: Add 16.* live ebuilds
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../clang-python/clang-python-16.0.0.9999.ebuild | 47 ++++++++++++++++++++++
13 1 file changed, 47 insertions(+)
14
15 diff --git a/dev-python/clang-python/clang-python-16.0.0.9999.ebuild b/dev-python/clang-python/clang-python-16.0.0.9999.ebuild
16 new file mode 100644
17 index 000000000000..2891edc42793
18 --- /dev/null
19 +++ b/dev-python/clang-python/clang-python-16.0.0.9999.ebuild
20 @@ -0,0 +1,47 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +PYTHON_COMPAT=( python3_{8..11} )
27 +inherit llvm.org python-r1
28 +
29 +DESCRIPTION="Python bindings for sys-devel/clang"
30 +HOMEPAGE="https://llvm.org/"
31 +
32 +LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
33 +SLOT="0"
34 +KEYWORDS=""
35 +IUSE="test"
36 +RESTRICT="!test? ( test )"
37 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
38 +
39 +# The module is opening libclang.so directly, and doing some blasphemy
40 +# on top of it.
41 +DEPEND="
42 + >=sys-devel/clang-${PV}:*
43 + !sys-devel/llvm:0[clang(-),python(-)]
44 + !sys-devel/clang:0[python(-)]
45 +"
46 +RDEPEND="
47 + ${DEPEND}
48 + ${PYTHON_DEPS}
49 +"
50 +BDEPEND="
51 + ${PYTHON_DEPS}
52 +"
53 +
54 +LLVM_COMPONENTS=( clang/bindings/python )
55 +llvm.org_set_globals
56 +
57 +python_test() {
58 + "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}"
59 +}
60 +
61 +src_test() {
62 + python_foreach_impl python_test
63 +}
64 +
65 +src_install() {
66 + python_foreach_impl python_domodule clang
67 +}