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: Thu, 28 Jan 2021 09:04:08
Message-Id: 1611824550.5ee97fb3041534b788833423778fa4cf491630a8.mgorny@gentoo
1 commit: 5ee97fb3041534b788833423778fa4cf491630a8
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 28 09:00:54 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 28 09:02:30 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ee97fb3
7
8 dev-python/clang-python: Add 13.x live ebuild
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../clang-python/clang-python-13.0.0.9999.ebuild | 41 ++++++++++++++++++++++
13 1 file changed, 41 insertions(+)
14
15 diff --git a/dev-python/clang-python/clang-python-13.0.0.9999.ebuild b/dev-python/clang-python/clang-python-13.0.0.9999.ebuild
16 new file mode 100644
17 index 00000000000..0e3b3ea0630
18 --- /dev/null
19 +++ b/dev-python/clang-python/clang-python-13.0.0.9999.ebuild
20 @@ -0,0 +1,41 @@
21 +# Copyright 1999-2021 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=7
25 +
26 +PYTHON_COMPAT=( python3_{6..9} )
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 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
37 +RESTRICT="!test? ( test )"
38 +
39 +# The module is opening libclang.so directly, and doing some blasphemy
40 +# on top of it.
41 +RDEPEND="
42 + >=sys-devel/clang-${PV}:*
43 + !sys-devel/llvm:0[clang(-),python(-)]
44 + !sys-devel/clang:0[python(-)]
45 + ${PYTHON_DEPS}"
46 +DEPEND="${RDEPEND}"
47 +
48 +LLVM_COMPONENTS=( clang/bindings/python )
49 +llvm.org_set_globals
50 +
51 +python_test() {
52 + "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}"
53 +}
54 +
55 +src_test() {
56 + python_foreach_impl python_test
57 +}
58 +
59 +src_install() {
60 + python_foreach_impl python_domodule clang
61 +}