1 |
commit: ac1ff581d03c822b5c4d1b51c1f108b64e1d0288 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 29 18:02:45 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 15 12:47:20 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac1ff581 |
7 |
|
8 |
dev-python/clang-python: Add split ebuild for clang Python bindings |
9 |
|
10 |
dev-python/clang-python/Manifest | 1 + |
11 |
.../clang-python/clang-python-4.0.0_rc1.ebuild | 37 ++++++++++++++++++++ |
12 |
dev-python/clang-python/clang-python-9999.ebuild | 39 ++++++++++++++++++++++ |
13 |
dev-python/clang-python/metadata.xml | 7 ++++ |
14 |
profiles/package.mask | 1 + |
15 |
5 files changed, 85 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/clang-python/Manifest b/dev-python/clang-python/Manifest |
18 |
new file mode 100644 |
19 |
index 0000000000..6438754b1f |
20 |
--- /dev/null |
21 |
+++ b/dev-python/clang-python/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST cfe-4.0.0rc1.src.tar.xz 10896792 SHA256 e1bf51a2df20b4b5eee59e443b4791c59fd1b60d637cd0706326edb25494c945 SHA512 51a4eae186c64fce71221d443364a1ecde3660d0ef8c5c066a154ac9fbe2de557a0b33c72d7eeefc2c992482ed8da823e66acc162e1961e96452c92638b4ede7 WHIRLPOOL 98dd37c07018d22c77bdfe2f4e521af5e46936731bce98575e28e402b8bdfae4e2af0c278e888d1a244c73bee9e0cfc00ec4d03bcc398354fbe7cd8722ecc717 |
24 |
|
25 |
diff --git a/dev-python/clang-python/clang-python-4.0.0_rc1.ebuild b/dev-python/clang-python/clang-python-4.0.0_rc1.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000000..0b0cc4428f |
28 |
--- /dev/null |
29 |
+++ b/dev-python/clang-python/clang-python-4.0.0_rc1.ebuild |
30 |
@@ -0,0 +1,37 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python2_7 ) |
38 |
+inherit python-r1 |
39 |
+ |
40 |
+DESCRIPTION="Python bindings for sys-devel/clang" |
41 |
+HOMEPAGE="http://llvm.org/" |
42 |
+SRC_URI="http://www.llvm.org/pre-releases/${PV/_//}/cfe-${PV/_/}.src.tar.xz" |
43 |
+ |
44 |
+LICENSE="UoI-NCSA" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
47 |
+IUSE="test" |
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 |
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )" |
58 |
+ |
59 |
+S=${WORKDIR}/cfe-${PV/_/}.src/bindings/python |
60 |
+ |
61 |
+src_test() { |
62 |
+ python_foreach_impl nosetests -v |
63 |
+} |
64 |
+ |
65 |
+src_install() { |
66 |
+ python_foreach_impl python_domodule clang |
67 |
+} |
68 |
|
69 |
diff --git a/dev-python/clang-python/clang-python-9999.ebuild b/dev-python/clang-python/clang-python-9999.ebuild |
70 |
new file mode 100644 |
71 |
index 0000000000..48f304231e |
72 |
--- /dev/null |
73 |
+++ b/dev-python/clang-python/clang-python-9999.ebuild |
74 |
@@ -0,0 +1,39 @@ |
75 |
+# Copyright 1999-2017 Gentoo Foundation |
76 |
+# Distributed under the terms of the GNU General Public License v2 |
77 |
+# $Id$ |
78 |
+ |
79 |
+EAPI=6 |
80 |
+ |
81 |
+PYTHON_COMPAT=( python2_7 ) |
82 |
+inherit git-r3 python-r1 |
83 |
+ |
84 |
+DESCRIPTION="Python bindings for sys-devel/clang" |
85 |
+HOMEPAGE="http://llvm.org/" |
86 |
+SRC_URI="" |
87 |
+EGIT_REPO_URI="http://llvm.org/git/clang.git |
88 |
+ https://github.com/llvm-mirror/clang.git" |
89 |
+ |
90 |
+LICENSE="UoI-NCSA" |
91 |
+SLOT="0" |
92 |
+KEYWORDS="" |
93 |
+IUSE="test" |
94 |
+ |
95 |
+# The module is opening libclang.so directly, and doing some blasphemy |
96 |
+# on top of it. |
97 |
+RDEPEND=" |
98 |
+ >=sys-devel/clang-${PV} |
99 |
+ !sys-devel/llvm:0[clang(-),python(-)] |
100 |
+ !sys-devel/clang:0[python(-)] |
101 |
+ ${PYTHON_DEPS}" |
102 |
+DEPEND="${RDEPEND} |
103 |
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )" |
104 |
+ |
105 |
+S=${WORKDIR}/${P}/bindings/python |
106 |
+ |
107 |
+src_test() { |
108 |
+ python_foreach_impl nosetests -v |
109 |
+} |
110 |
+ |
111 |
+src_install() { |
112 |
+ python_foreach_impl python_domodule clang |
113 |
+} |
114 |
|
115 |
diff --git a/dev-python/clang-python/metadata.xml b/dev-python/clang-python/metadata.xml |
116 |
new file mode 100644 |
117 |
index 0000000000..89c4bdb960 |
118 |
--- /dev/null |
119 |
+++ b/dev-python/clang-python/metadata.xml |
120 |
@@ -0,0 +1,7 @@ |
121 |
+<?xml version="1.0" encoding="UTF-8"?> |
122 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
123 |
+<pkgmetadata> |
124 |
+ <maintainer type="project"> |
125 |
+ <email>llvm@g.o</email> |
126 |
+ </maintainer> |
127 |
+</pkgmetadata> |
128 |
|
129 |
diff --git a/profiles/package.mask b/profiles/package.mask |
130 |
index a04f769b4b..f4e1a695f7 100644 |
131 |
--- a/profiles/package.mask |
132 |
+++ b/profiles/package.mask |
133 |
@@ -254,6 +254,7 @@ x11-drivers/xf86-video-v4l |
134 |
# important revdeps. Also revdeps that require 4.0. |
135 |
=app-vim/llvm-vim-4.0.0* |
136 |
=dev-ml/llvm-ocaml-4.0.0* |
137 |
+=dev-python/clang-python-4.0.0* |
138 |
=dev-python/lit-4.0.0* |
139 |
=dev-util/lldb-4.0.0* |
140 |
=sys-devel/clang-4.0.0* |