1 |
commit: 4965196fb30190ebfc36ee907e86154f33a24c21 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 20 08:52:41 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 20 12:49:56 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4965196f |
7 |
|
8 |
dev-python/clang-python: Bump to 8.0.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/clang-python/Manifest | 1 + |
13 |
dev-python/clang-python/clang-python-8.0.1.ebuild | 47 +++++++++++++++++++++++ |
14 |
2 files changed, 48 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/clang-python/Manifest b/dev-python/clang-python/Manifest |
17 |
index 76f6b681aeb..27911ec11fb 100644 |
18 |
--- a/dev-python/clang-python/Manifest |
19 |
+++ b/dev-python/clang-python/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST cfe-5.0.2.src.tar.xz 11459216 BLAKE2B 80d9b2ab70b00c0dfd5c5386a44e0c15d8252 |
21 |
DIST cfe-6.0.1.src.tar.xz 11905772 BLAKE2B abb60e9f9827d1d8a24f0aaf8a1d1e32979293cc401258d230f93290e633645747fd0344af189ac7081b06be2cada503364e1e432b37110ade4b3578e40c7605 SHA512 f64ba9290059f6e36fee41c8f32bf483609d31c291fcd2f77d41fecfdf3c8233a5e23b93a1c73fed03683823bd6e72757ed993dd32527de3d5f2b7a64bb031b9 |
22 |
DIST cfe-7.1.0.src.tar.xz 12487872 BLAKE2B ca6ec9e45b94823de1dabf9e68f0c97cdd40b5d2a5e5e15d4b2393f6d7fbdee72a541b957cc22ce4cb726d8ee7190228320941d5713aeb59695673b9e9070ceb SHA512 1cd0b80f32aa4de1118c0c676ba96b1fc78b7ff929b01b6589dfe9b4669e599ac8cfb8f5a0abcd3487594193a7dec06b29530ec3fc03042c20a160f0477a79fd |
23 |
DIST cfe-8.0.0.src.tar.xz 12868468 BLAKE2B 3cb96c95c4d9713feb7011e4f1ca24be3e7f6c9b458f6cd9e6905f99737312ca44cb701ed5871e47dd583145e5898d53a65c4cda6456af3d4ca31b670ed84409 SHA512 98e540222719716985e5d8439116e47469cb01201ea91d1da7e46cb6633da099688d9352c3b65e5c5f660cbbae353b3d79bb803fc66b3be663f2b04b1feed1c3 |
24 |
+DIST cfe-8.0.1.src.tar.xz 12810056 BLAKE2B 88cee0b6daa477ca0473c76efc45beb634f6194ecd3f45aaec3791e26b203c5dbd33c649435e0d97924096a72c727d76915bffc0b7ea305f24d5e5f06389c4a0 SHA512 1227b2d32052c70b4b494659849000188fce46fc31a71f3352ba8457ac0b0b17e4bc7c8589874c8586d55aa808ee6c1fceb7df501aafa33599f8df7bfd2b791d |
25 |
|
26 |
diff --git a/dev-python/clang-python/clang-python-8.0.1.ebuild b/dev-python/clang-python/clang-python-8.0.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..8da5089887b |
29 |
--- /dev/null |
30 |
+++ b/dev-python/clang-python/clang-python-8.0.1.ebuild |
31 |
@@ -0,0 +1,47 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) |
38 |
+inherit python-r1 |
39 |
+ |
40 |
+MY_P=cfe-${PV/_/}.src |
41 |
+DESCRIPTION="Python bindings for sys-devel/clang" |
42 |
+HOMEPAGE="https://llvm.org/" |
43 |
+SRC_URI="https://github.com/llvm/llvm-project/releases/download/llvmorg-${PV}/${MY_P}.tar.xz" |
44 |
+ |
45 |
+LICENSE="UoI-NCSA" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-fbsd" |
48 |
+IUSE="test" |
49 |
+RESTRICT="!test? ( test )" |
50 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
51 |
+ |
52 |
+# The module is opening libclang.so directly, and doing some blasphemy |
53 |
+# on top of it. |
54 |
+RDEPEND=" |
55 |
+ >=sys-devel/clang-${PV}:* |
56 |
+ !sys-devel/llvm:0[clang(-),python(-)] |
57 |
+ !sys-devel/clang:0[python(-)] |
58 |
+ ${PYTHON_DEPS}" |
59 |
+DEPEND="${RDEPEND}" |
60 |
+ |
61 |
+S=${WORKDIR}/${MY_P}/bindings/python |
62 |
+ |
63 |
+src_unpack() { |
64 |
+ einfo "Unpacking parts of ${MY_P}.tar.xz ..." |
65 |
+ tar -xJf "${DISTDIR}/${MY_P}.tar.xz" "${MY_P}/bindings/python" || die |
66 |
+} |
67 |
+ |
68 |
+python_test() { |
69 |
+ "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}" |
70 |
+} |
71 |
+ |
72 |
+src_test() { |
73 |
+ python_foreach_impl python_test |
74 |
+} |
75 |
+ |
76 |
+src_install() { |
77 |
+ python_foreach_impl python_domodule clang |
78 |
+} |