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: Wed, 02 Mar 2022 09:09:07
Message-Id: 1646212127.8f08a19d50a42c3835aa896bc6c12d2bbc76f939.mgorny@gentoo
1 commit: 8f08a19d50a42c3835aa896bc6c12d2bbc76f939
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 2 09:02:15 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 2 09:08:47 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f08a19d
7
8 dev-python/clang-python: Bump to 14.0.0_rc2
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/clang-python/Manifest | 1 +
13 .../clang-python/clang-python-14.0.0_rc2.ebuild | 41 ++++++++++++++++++++++
14 2 files changed, 42 insertions(+)
15
16 diff --git a/dev-python/clang-python/Manifest b/dev-python/clang-python/Manifest
17 index 796ca2103854..f45edaa5ba87 100644
18 --- a/dev-python/clang-python/Manifest
19 +++ b/dev-python/clang-python/Manifest
20 @@ -3,3 +3,4 @@ DIST llvmorg-12.0.1.tar.gz 134259748 BLAKE2B f41de787bc73ff2edfda1b22cc8602be6f6
21 DIST llvmorg-13.0.0.tar.gz 147270176 BLAKE2B 628f316b580e1edf3a58d4825b724df759e6ed2a4116802470c04562caefc392fa325c91f388036365a2e45a9595cca6d3557fab12984fc8bcfef29c9116d822 SHA512 8004c05d32b9720fb3391783621690c1df9bd1e97e72cbff9192ed88a84b0acd303b61432145fa917b5b5e548c8cee29b24ef8547dcc8677adf4816e7a8a0eb2
22 DIST llvmorg-13.0.1.tar.gz 147290251 BLAKE2B 2a44b012a672501761d0c27c6b3a315b69bfef0cd13b078a7e7d2fccc4a9c8c0f2bee0f164c4271c9106b0a99cb06e8b64986f66253b613336719fb86b82541b SHA512 9a8cb5d11964ba88b7624f19ec861fb28701f23956ea3c92f6ac644332d5f41fde97bd8933dd3ee70ed378058c252fa3a3887c8d1af90d219970c2b27691166f
23 DIST llvmorg-14.0.0-rc1.tar.gz 158019694 BLAKE2B c0494bfa5cc92be73d2a2736ce04a1ce11003aba477393639a6fc1b4114bb604ddd1929f288f831997693d2d3d7feb9eb7aa4bc1a2eb60d4b01777314ab90973 SHA512 62aac6a033ef0e321aef5060dcc61eb721b115a9cc1b7570497f72183d9e70a66b5910e90df14428bf56d33a44d4582c919e19f4477c0cfb3209e249b53fe534
24 +DIST llvmorg-14.0.0-rc2.tar.gz 158069989 BLAKE2B 06dcf5d82cd100bd792eadb3816cb297a11dc64dc8b699ccb2eac8ef0da4f10a24ba1984376427b638def6c8c8ae5bc9562e1cc30281fc55f044aa2a9657fc81 SHA512 c77d8c6db2ee6536f7e980465d5a3eb34403c6529e2012a4778ce76a559a6d639cf4c5ec84f965287d4b0739a73dc3e65d7deb27815d74c35e823839e579d2a3
25
26 diff --git a/dev-python/clang-python/clang-python-14.0.0_rc2.ebuild b/dev-python/clang-python/clang-python-14.0.0_rc2.ebuild
27 new file mode 100644
28 index 000000000000..fb6456619641
29 --- /dev/null
30 +++ b/dev-python/clang-python/clang-python-14.0.0_rc2.ebuild
31 @@ -0,0 +1,41 @@
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=""
46 +IUSE="test"
47 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
48 +RESTRICT="!test? ( test )"
49 +
50 +# The module is opening libclang.so directly, and doing some blasphemy
51 +# on top of it.
52 +RDEPEND="
53 + >=sys-devel/clang-${PV}:*
54 + !sys-devel/llvm:0[clang(-),python(-)]
55 + !sys-devel/clang:0[python(-)]
56 + ${PYTHON_DEPS}"
57 +DEPEND="${RDEPEND}"
58 +
59 +LLVM_COMPONENTS=( clang/bindings/python )
60 +llvm.org_set_globals
61 +
62 +python_test() {
63 + "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}"
64 +}
65 +
66 +src_test() {
67 + python_foreach_impl python_test
68 +}
69 +
70 +src_install() {
71 + python_foreach_impl python_domodule clang
72 +}