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: Fri, 09 Feb 2018 16:00:19
Message-Id: 1518192000.4d57ac52f8acbf26326904346eb4260b209fe04c.mgorny@gentoo
1 commit: 4d57ac52f8acbf26326904346eb4260b209fe04c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 9 09:58:13 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 9 16:00:00 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d57ac52
7
8 dev-python/clang-python: Bump to 6.0.0rc2
9
10 dev-python/clang-python/Manifest | 1 +
11 .../clang-python/clang-python-6.0.0_rc2.ebuild | 43 ++++++++++++++++++++++
12 2 files changed, 44 insertions(+)
13
14 diff --git a/dev-python/clang-python/Manifest b/dev-python/clang-python/Manifest
15 index 47974bf0068..606f508ecdc 100644
16 --- a/dev-python/clang-python/Manifest
17 +++ b/dev-python/clang-python/Manifest
18 @@ -1,2 +1,3 @@
19 DIST cfe-4.0.1.src.tar.xz 10933628 BLAKE2B bc1bb8875e83ccecd446a48cfa41f5c98a09d6ad24ff439a983f629711b4513b9c4bee4070f8df13b6b2a52d673b0706733a4c151ce5021a0233147debff14ac SHA512 936c9e1626b27e63a4fb11f3c0cb998eeaf9a520ad6e2bcd67cb4352e59e7781ecc700df79794f3fd70473d90b7e2ba418a39038eb0146b68e843f0705c1f964
20 DIST cfe-5.0.1.src.tar.xz 11483036 BLAKE2B c4eb54cd8271b62cf7a2219db0b599b68c00b6e574d1946220efbd1633e841796e6717d6eeb35e84a6db32a731a3285b59cedeb3b1a8f3c3c502b799fdd0a720 SHA512 6619177a2ff9934fe8b15d6aa229abb8e34d0b1a75228d9efba9393daf71d6419a7256de57b31e2f9f829f71f842118556f996e86ee076f1e0a7cd394dfd31a2
21 +DIST cfe-6.0.0rc2.src.tar.xz 11957996 BLAKE2B 65cd91d8b5591e6312f9b46c1deecca5e14db72f58830b5249ca0fbc3b0911ae5bf60c9e1e326cad6eb670d5f2a144229b4e04e5b7645e516b2a530e428cc171 SHA512 991c45ee8500bee1e7004172e2ab8fa78e3d412b1474cfb48ee6f49232afe8d2f512e2ebf148afc4f8b38cff0110e3af26bdbec2138d80592c876452a18c63fe
22
23 diff --git a/dev-python/clang-python/clang-python-6.0.0_rc2.ebuild b/dev-python/clang-python/clang-python-6.0.0_rc2.ebuild
24 new file mode 100644
25 index 00000000000..5290aac1032
26 --- /dev/null
27 +++ b/dev-python/clang-python/clang-python-6.0.0_rc2.ebuild
28 @@ -0,0 +1,43 @@
29 +# Copyright 1999-2018 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI=6
33 +
34 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
35 +inherit python-r1
36 +
37 +MY_P=cfe-${PV/_/}.src
38 +DESCRIPTION="Python bindings for sys-devel/clang"
39 +HOMEPAGE="https://llvm.org/"
40 +SRC_URI="http://prereleases.llvm.org/${PV/_//}/${MY_P}.tar.xz"
41 +
42 +LICENSE="UoI-NCSA"
43 +SLOT="0"
44 +KEYWORDS=""
45 +IUSE="test"
46 +RESTRICT="!test? ( test )"
47 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
48 +
49 +# The module is opening libclang.so directly, and doing some blasphemy
50 +# on top of it.
51 +RDEPEND="
52 + >=sys-devel/clang-${PV}:*
53 + !sys-devel/llvm:0[clang(-),python(-)]
54 + !sys-devel/clang:0[python(-)]
55 + ${PYTHON_DEPS}"
56 +DEPEND="${RDEPEND}"
57 +
58 +S=${WORKDIR}/${MY_P}/bindings/python
59 +
60 +src_unpack() {
61 + einfo "Unpacking parts of ${MY_P}.tar.xz ..."
62 + tar -xJf "${DISTDIR}/${MY_P}.tar.xz" "${MY_P}/bindings/python" || die
63 +}
64 +
65 +src_test() {
66 + python_foreach_impl python -m unittest discover -v || die
67 +}
68 +
69 +src_install() {
70 + python_foreach_impl python_domodule clang
71 +}