1 |
commit: 715e9fa983d7deb5acb68ee447e63cdb928e1015 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 30 11:16:35 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 30 18:13:49 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=715e9fa9 |
7 |
|
8 |
dev-python/clang-python: Bump live to 14* |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../clang-python/clang-python-14.0.0.9999.ebuild | 41 ++++++++++++++++++++++ |
13 |
1 file changed, 41 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/clang-python/clang-python-14.0.0.9999.ebuild b/dev-python/clang-python/clang-python-14.0.0.9999.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..921f7735340 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/clang-python/clang-python-14.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_{7..10} ) |
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 |
+} |