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, 16 Jan 2019 14:52:55
Message-Id: 1547650352.77780f02dd10bdd91a68379ba9169ca38c7dd9b5.mgorny@gentoo
1 commit: 77780f02dd10bdd91a68379ba9169ca38c7dd9b5
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 16 13:50:11 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 16 14:52:32 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77780f02
7
8 dev-python/clang-python: Add a live ebuild for 8.* branch
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../clang-python/clang-python-8.0.9999.ebuild | 49 ++++++++++++++++++++++
13 1 file changed, 49 insertions(+)
14
15 diff --git a/dev-python/clang-python/clang-python-8.0.9999.ebuild b/dev-python/clang-python/clang-python-8.0.9999.ebuild
16 new file mode 100644
17 index 00000000000..180856dc03b
18 --- /dev/null
19 +++ b/dev-python/clang-python/clang-python-8.0.9999.ebuild
20 @@ -0,0 +1,49 @@
21 +# Copyright 1999-2019 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6,3_7} )
27 +inherit git-r3 python-r1
28 +
29 +DESCRIPTION="Python bindings for sys-devel/clang"
30 +HOMEPAGE="https://llvm.org/"
31 +SRC_URI=""
32 +EGIT_REPO_URI="https://git.llvm.org/git/clang.git
33 + https://github.com/llvm-mirror/clang.git"
34 +EGIT_BRANCH="release_80"
35 +
36 +LICENSE="UoI-NCSA"
37 +SLOT="0"
38 +KEYWORDS=""
39 +IUSE="test"
40 +RESTRICT="!test? ( test )"
41 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
42 +
43 +# The module is opening libclang.so directly, and doing some blasphemy
44 +# on top of it.
45 +RDEPEND="
46 + >=sys-devel/clang-${PV}:*
47 + !sys-devel/llvm:0[clang(-),python(-)]
48 + !sys-devel/clang:0[python(-)]
49 + ${PYTHON_DEPS}"
50 +DEPEND="${RDEPEND}"
51 +
52 +S=${WORKDIR}/${P}/bindings/python
53 +
54 +src_unpack() {
55 + git-r3_fetch
56 + git-r3_checkout '' '' '' bindings/python
57 +}
58 +
59 +python_test() {
60 + "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}"
61 +}
62 +
63 +src_test() {
64 + python_foreach_impl python_test
65 +}
66 +
67 +src_install() {
68 + python_foreach_impl python_domodule clang
69 +}