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