1 |
commit: 4c9a0ca41b5d96cd54731a67cee910f08b3504ae |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 1 17:43:03 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 3 11:46:16 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c9a0ca4 |
7 |
|
8 |
dev-python/clang-python: Port to llvm.org eclass |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/clang-python/clang-python-10.0.0.9999.ebuild | 12 +++--------- |
13 |
dev-python/clang-python/clang-python-9.0.0.ebuild | 12 +++--------- |
14 |
dev-python/clang-python/clang-python-9.0.1.9999.ebuild | 13 +++---------- |
15 |
3 files changed, 9 insertions(+), 28 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/clang-python/clang-python-10.0.0.9999.ebuild b/dev-python/clang-python/clang-python-10.0.0.9999.ebuild |
18 |
index 24e14b038ec..3b6ab496dc3 100644 |
19 |
--- a/dev-python/clang-python/clang-python-10.0.0.9999.ebuild |
20 |
+++ b/dev-python/clang-python/clang-python-10.0.0.9999.ebuild |
21 |
@@ -4,13 +4,12 @@ |
22 |
EAPI=7 |
23 |
|
24 |
PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) |
25 |
-inherit git-r3 python-r1 |
26 |
+inherit llvm.org python-r1 |
27 |
|
28 |
DESCRIPTION="Python bindings for sys-devel/clang" |
29 |
HOMEPAGE="https://llvm.org/" |
30 |
-SRC_URI="" |
31 |
-EGIT_REPO_URI="https://github.com/llvm/llvm-project.git" |
32 |
-S=${WORKDIR}/${P}/clang/bindings/python |
33 |
+LLVM_COMPONENTS=( clang/bindings/python ) |
34 |
+llvm.org_set_globals |
35 |
|
36 |
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" |
37 |
SLOT="0" |
38 |
@@ -28,11 +27,6 @@ RDEPEND=" |
39 |
${PYTHON_DEPS}" |
40 |
DEPEND="${RDEPEND}" |
41 |
|
42 |
-src_unpack() { |
43 |
- git-r3_fetch |
44 |
- git-r3_checkout '' '' '' clang/bindings/python |
45 |
-} |
46 |
- |
47 |
python_test() { |
48 |
"${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}" |
49 |
} |
50 |
|
51 |
diff --git a/dev-python/clang-python/clang-python-9.0.0.ebuild b/dev-python/clang-python/clang-python-9.0.0.ebuild |
52 |
index ad10831f6e2..6796e58d1b1 100644 |
53 |
--- a/dev-python/clang-python/clang-python-9.0.0.ebuild |
54 |
+++ b/dev-python/clang-python/clang-python-9.0.0.ebuild |
55 |
@@ -4,13 +4,12 @@ |
56 |
EAPI=7 |
57 |
|
58 |
PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) |
59 |
-inherit python-r1 |
60 |
+inherit llvm.org python-r1 |
61 |
|
62 |
-MY_P=cfe-${PV/_/}.src |
63 |
DESCRIPTION="Python bindings for sys-devel/clang" |
64 |
HOMEPAGE="https://llvm.org/" |
65 |
-SRC_URI="https://releases.llvm.org/${PV}/${MY_P}.tar.xz" |
66 |
-S=${WORKDIR}/${MY_P}/bindings/python |
67 |
+LLVM_COMPONENTS=( clang/bindings/python ) |
68 |
+llvm.org_set_globals |
69 |
|
70 |
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" |
71 |
SLOT="0" |
72 |
@@ -28,11 +27,6 @@ RDEPEND=" |
73 |
${PYTHON_DEPS}" |
74 |
DEPEND="${RDEPEND}" |
75 |
|
76 |
-src_unpack() { |
77 |
- einfo "Unpacking parts of ${MY_P}.tar.xz ..." |
78 |
- tar -xJf "${DISTDIR}/${MY_P}.tar.xz" "${MY_P}/bindings/python" || die |
79 |
-} |
80 |
- |
81 |
python_test() { |
82 |
"${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}" |
83 |
} |
84 |
|
85 |
diff --git a/dev-python/clang-python/clang-python-9.0.1.9999.ebuild b/dev-python/clang-python/clang-python-9.0.1.9999.ebuild |
86 |
index 45d2a38e5e5..3b6ab496dc3 100644 |
87 |
--- a/dev-python/clang-python/clang-python-9.0.1.9999.ebuild |
88 |
+++ b/dev-python/clang-python/clang-python-9.0.1.9999.ebuild |
89 |
@@ -4,14 +4,12 @@ |
90 |
EAPI=7 |
91 |
|
92 |
PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) |
93 |
-inherit git-r3 python-r1 |
94 |
+inherit llvm.org python-r1 |
95 |
|
96 |
DESCRIPTION="Python bindings for sys-devel/clang" |
97 |
HOMEPAGE="https://llvm.org/" |
98 |
-SRC_URI="" |
99 |
-EGIT_REPO_URI="https://github.com/llvm/llvm-project.git" |
100 |
-EGIT_BRANCH="release/9.x" |
101 |
-S=${WORKDIR}/${P}/clang/bindings/python |
102 |
+LLVM_COMPONENTS=( clang/bindings/python ) |
103 |
+llvm.org_set_globals |
104 |
|
105 |
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" |
106 |
SLOT="0" |
107 |
@@ -29,11 +27,6 @@ RDEPEND=" |
108 |
${PYTHON_DEPS}" |
109 |
DEPEND="${RDEPEND}" |
110 |
|
111 |
-src_unpack() { |
112 |
- git-r3_fetch |
113 |
- git-r3_checkout '' '' '' clang/bindings/python |
114 |
-} |
115 |
- |
116 |
python_test() { |
117 |
"${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}" |
118 |
} |