1 |
commit: 2fc71e0ca13ae8c71d986e86d3e9836de5f78d06 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 1 16:41:38 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 1 20:53:20 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fc71e0c |
7 |
|
8 |
dev-python/clang-python: Branch out LLVM 7.0 |
9 |
|
10 |
.../clang-python/clang-python-7.0.9999.ebuild | 49 ++++++++++++++++++++++ |
11 |
1 file changed, 49 insertions(+) |
12 |
|
13 |
diff --git a/dev-python/clang-python/clang-python-7.0.9999.ebuild b/dev-python/clang-python/clang-python-7.0.9999.ebuild |
14 |
new file mode 100644 |
15 |
index 00000000000..d0d8cf54084 |
16 |
--- /dev/null |
17 |
+++ b/dev-python/clang-python/clang-python-7.0.9999.ebuild |
18 |
@@ -0,0 +1,49 @@ |
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_70" |
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 |
+python_test() { |
58 |
+ "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}" |
59 |
+} |
60 |
+ |
61 |
+src_test() { |
62 |
+ python_foreach_impl python_test |
63 |
+} |
64 |
+ |
65 |
+src_install() { |
66 |
+ python_foreach_impl python_domodule clang |
67 |
+} |