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: Tue, 12 Mar 2019 13:14:22
Message-Id: 1552396444.8cb32bb73d4b76871b21f0fbcf484175c3277ee3.mgorny@gentoo
1 commit: 8cb32bb73d4b76871b21f0fbcf484175c3277ee3
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 12 13:00:01 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 12 13:14:04 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cb32bb7
7
8 dev-python/clang-python: Bump to 8.0.0rc5
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-8.0.0_rc5.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 931b9c4dc7b..be7098fc34f 100644
18 --- a/dev-python/clang-python/Manifest
19 +++ b/dev-python/clang-python/Manifest
20 @@ -4,3 +4,4 @@ DIST cfe-6.0.1.src.tar.xz 11905772 BLAKE2B abb60e9f9827d1d8a24f0aaf8a1d1e3297929
21 DIST cfe-7.0.1.src.tar.xz 12488668 BLAKE2B b80247b5caf81661dfa715d9bf454b8023221bd27ce49b6bd8cd66f40ffe01448e40fb828fbcc64e49f059af7a7c5a95a0737b0b998454ac5c1dd39388150fa6 SHA512 df2f38153ebdc261bcfa6a569567f759bbb1a803192882a9d4eca55a47878166ac9057151a94ad341dc1281136547e4faa783a68070dfde2307b48cacd4b9194
22 DIST cfe-8.0.0rc2.src.tar.xz 12861448 BLAKE2B b4f671b6597b46cb84b241bf602d7e1b12c896b9d3d5857c61a731c9ea0d94dc850c79cbbcb4a56cf2b54f2ffbc81e04f2062c59d4c5b800841e60eccd0dcfe9 SHA512 2bf1e39f5fc7842039b8e20913b3c71fea46b541825c703ce329f3fa01e45cf66c2cd39d9a0f92cf2c38eeb856e42023b087da0765baa0377226534a554c0d9a
23 DIST cfe-8.0.0rc3.src.tar.xz 12863708 BLAKE2B 1a05ee86b305de0d1e2cda1f89f22405e3c7826214e83b2275d14682374c31d72fd984a2b5d8da7fc906fb95003aee6a00e6e1700f7938f3042df2229fee9c50 SHA512 afc9d7bce817a9d8faf12efb273934539b18471fb4ece8fed56249628b17a302427c4e7ecbfa096287547e01f3823b9b7a1be4bf18417cc1c942776057b90db1
24 +DIST cfe-8.0.0rc5.src.tar.xz 12864516 BLAKE2B b1c982d83e0a911a7375d07f9f2f52956b3595674252e6e7d8d8ef4015b51171c59a2d3306c00fcd83ae2fff2eb3d58cc9d4cdeadaca02c4fc3a6242f57959fe SHA512 40f3b6069e40fc4f831662912a8f4c3ab1579587bf48c1fcd9e80287b7e26e8b70becfce525a0b55b1b8283f20a9d67d232cf5ce10189a39d655e2fe3fb3dd73
25
26 diff --git a/dev-python/clang-python/clang-python-8.0.0_rc5.ebuild b/dev-python/clang-python/clang-python-8.0.0_rc5.ebuild
27 new file mode 100644
28 index 00000000000..ba2878b2698
29 --- /dev/null
30 +++ b/dev-python/clang-python/clang-python-8.0.0_rc5.ebuild
31 @@ -0,0 +1,47 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6,3_7} )
38 +inherit python-r1
39 +
40 +MY_P=cfe-${PV/_/}.src
41 +DESCRIPTION="Python bindings for sys-devel/clang"
42 +HOMEPAGE="https://llvm.org/"
43 +SRC_URI="https://prereleases.llvm.org/${PV/_//}/${MY_P}.tar.xz"
44 +
45 +LICENSE="UoI-NCSA"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-fbsd"
48 +IUSE="test"
49 +RESTRICT="!test? ( test )"
50 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
51 +
52 +# The module is opening libclang.so directly, and doing some blasphemy
53 +# on top of it.
54 +RDEPEND="
55 + >=sys-devel/clang-${PV}:*
56 + !sys-devel/llvm:0[clang(-),python(-)]
57 + !sys-devel/clang:0[python(-)]
58 + ${PYTHON_DEPS}"
59 +DEPEND="${RDEPEND}"
60 +
61 +S=${WORKDIR}/${MY_P}/bindings/python
62 +
63 +src_unpack() {
64 + einfo "Unpacking parts of ${MY_P}.tar.xz ..."
65 + tar -xJf "${DISTDIR}/${MY_P}.tar.xz" "${MY_P}/bindings/python" || die
66 +}
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 +}