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: Sun, 29 May 2022 19:59:01
Message-Id: 1653854321.5e93f0734b66cd23ab7974e58b57b468d8989b53.mgorny@gentoo
1 commit: 5e93f0734b66cd23ab7974e58b57b468d8989b53
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 29 17:59:48 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun May 29 19:58:41 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e93f073
7
8 dev-python/clang-python: Bump to 14.0.4
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/clang-python/Manifest | 1 +
13 dev-python/clang-python/clang-python-14.0.4.ebuild | 47 ++++++++++++++++++++++
14 2 files changed, 48 insertions(+)
15
16 diff --git a/dev-python/clang-python/Manifest b/dev-python/clang-python/Manifest
17 index bf3dff4f0680..99a6d3d6175c 100644
18 --- a/dev-python/clang-python/Manifest
19 +++ b/dev-python/clang-python/Manifest
20 @@ -2,3 +2,4 @@ DIST llvmorg-12.0.1.tar.gz 134259748 BLAKE2B f41de787bc73ff2edfda1b22cc8602be6f6
21 DIST llvmorg-13.0.1.tar.gz 147290251 BLAKE2B 2a44b012a672501761d0c27c6b3a315b69bfef0cd13b078a7e7d2fccc4a9c8c0f2bee0f164c4271c9106b0a99cb06e8b64986f66253b613336719fb86b82541b SHA512 9a8cb5d11964ba88b7624f19ec861fb28701f23956ea3c92f6ac644332d5f41fde97bd8933dd3ee70ed378058c252fa3a3887c8d1af90d219970c2b27691166f
22 DIST llvmorg-14.0.1.tar.gz 158074615 BLAKE2B bf80366461580058494eb101646efcd1a8b55a66818a710c2eb8c649bf88c02fe4552cecf4c1c8637a64e7cee8d644bca31aafc804765ed18f2b5e2975dd6c92 SHA512 0a15aa9cfc978a7b03a1659a2affad65ede66d280f5c12bf0beaaf194cd7bdd57ff438b5f40e64c1e1b88f368de99be349e9d30b544d2bbe4a50f0ebed3307f2
23 DIST llvmorg-14.0.3.tar.gz 158092596 BLAKE2B ef901df510ec6bc1242595ec330e9c9ee76e696b077d67a8d62b53608c3d18b2f2d7ea3150864e13d9b37a8ce899ebca946ebe72cbc4538700176e20859ddec2 SHA512 511e93fd9b1c414c38fe9e2649679ac0b16cb04f7f7838569d187b04c542a185e364d6db73e96465026e3b2533649eb75ac95507d12514af32b28bdfb66f2646
24 +DIST llvmorg-14.0.4.tar.gz 158088617 BLAKE2B 7fb894548dce72593a8639b4d0220d2499577f80d38b97600749c91a498c69dfbbe818cee35e4a76370795e55da7037543ea341ad7567a6f548893c67dce9e64 SHA512 e14e6c3a1915a96e9ddc609f16ca3a398ca6f7fd0a691dadaa24490078a661340e845cb2d18f3679de4f47300bb822c33ae69548af6a0370d55737831a28b959
25
26 diff --git a/dev-python/clang-python/clang-python-14.0.4.ebuild b/dev-python/clang-python/clang-python-14.0.4.ebuild
27 new file mode 100644
28 index 000000000000..0b7cef715981
29 --- /dev/null
30 +++ b/dev-python/clang-python/clang-python-14.0.4.ebuild
31 @@ -0,0 +1,47 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +PYTHON_COMPAT=( python3_{8..10} )
38 +inherit llvm.org python-r1
39 +
40 +DESCRIPTION="Python bindings for sys-devel/clang"
41 +HOMEPAGE="https://llvm.org/"
42 +
43 +LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
46 +IUSE="test"
47 +RESTRICT="!test? ( test )"
48 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
49 +
50 +# The module is opening libclang.so directly, and doing some blasphemy
51 +# on top of it.
52 +DEPEND="
53 + >=sys-devel/clang-${PV}:*
54 + !sys-devel/llvm:0[clang(-),python(-)]
55 + !sys-devel/clang:0[python(-)]
56 +"
57 +RDEPEND="
58 + ${DEPEND}
59 + ${PYTHON_DEPS}
60 +"
61 +BDEPEND="
62 + ${PYTHON_DEPS}
63 +"
64 +
65 +LLVM_COMPONENTS=( clang/bindings/python )
66 +llvm.org_set_globals
67 +
68 +python_test() {
69 + "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}"
70 +}
71 +
72 +src_test() {
73 + python_foreach_impl python_test
74 +}
75 +
76 +src_install() {
77 + python_foreach_impl python_domodule clang
78 +}