1 |
commit: bc3e82c78d2d861be2dc2bfd12de34b0661318e0 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 1 17:37:42 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 3 11:46:13 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc3e82c7 |
7 |
|
8 |
sys-devel/clang-common: Port 9+ to llvm.org.eclass |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../clang-common/clang-common-10.0.0.9999.ebuild | 19 +++++-------------- |
13 |
sys-devel/clang-common/clang-common-9.0.0.ebuild | 19 +++++-------------- |
14 |
.../clang-common/clang-common-9.0.1.9999.ebuild | 20 +++++--------------- |
15 |
3 files changed, 15 insertions(+), 43 deletions(-) |
16 |
|
17 |
diff --git a/sys-devel/clang-common/clang-common-10.0.0.9999.ebuild b/sys-devel/clang-common/clang-common-10.0.0.9999.ebuild |
18 |
index 6b707e3d41f..d1bfe71d2f8 100644 |
19 |
--- a/sys-devel/clang-common/clang-common-10.0.0.9999.ebuild |
20 |
+++ b/sys-devel/clang-common/clang-common-10.0.0.9999.ebuild |
21 |
@@ -3,13 +3,13 @@ |
22 |
|
23 |
EAPI=7 |
24 |
|
25 |
-inherit bash-completion-r1 git-r3 |
26 |
+inherit bash-completion-r1 llvm.org |
27 |
|
28 |
DESCRIPTION="Common files shared between multiple slots of 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 |
33 |
+LLVM_COMPONENTS=( clang/utils/bash-autocomplete.sh ) |
34 |
+llvm.org_set_globals |
35 |
+S=${WORKDIR}/clang/utils |
36 |
|
37 |
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" |
38 |
SLOT="0" |
39 |
@@ -18,15 +18,6 @@ IUSE="" |
40 |
|
41 |
PDEPEND="sys-devel/clang:*" |
42 |
|
43 |
-src_unpack() { |
44 |
- git-r3_fetch |
45 |
- git-r3_checkout '' '' '' clang/utils/bash-autocomplete.sh |
46 |
-} |
47 |
- |
48 |
-src_configure() { :; } |
49 |
-src_compile() { :; } |
50 |
-src_test() { :; } |
51 |
- |
52 |
src_install() { |
53 |
- newbashcomp utils/bash-autocomplete.sh clang |
54 |
+ newbashcomp bash-autocomplete.sh clang |
55 |
} |
56 |
|
57 |
diff --git a/sys-devel/clang-common/clang-common-9.0.0.ebuild b/sys-devel/clang-common/clang-common-9.0.0.ebuild |
58 |
index 609bdcde4cc..3fc7a056a92 100644 |
59 |
--- a/sys-devel/clang-common/clang-common-9.0.0.ebuild |
60 |
+++ b/sys-devel/clang-common/clang-common-9.0.0.ebuild |
61 |
@@ -3,13 +3,13 @@ |
62 |
|
63 |
EAPI=7 |
64 |
|
65 |
-inherit bash-completion-r1 |
66 |
+inherit bash-completion-r1 llvm.org |
67 |
|
68 |
-MY_P=cfe-${PV/_/}.src |
69 |
DESCRIPTION="Common files shared between multiple slots of clang" |
70 |
HOMEPAGE="https://llvm.org/" |
71 |
-SRC_URI="https://releases.llvm.org/${PV}/${MY_P}.tar.xz" |
72 |
-S=${WORKDIR}/${MY_P} |
73 |
+LLVM_COMPONENTS=( clang/utils/bash-autocomplete.sh ) |
74 |
+llvm.org_set_globals |
75 |
+S=${WORKDIR}/clang/utils |
76 |
|
77 |
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" |
78 |
SLOT="0" |
79 |
@@ -18,15 +18,6 @@ IUSE="" |
80 |
|
81 |
PDEPEND="sys-devel/clang:*" |
82 |
|
83 |
-src_unpack() { |
84 |
- einfo "Unpacking parts of ${MY_P}.tar.xz ..." |
85 |
- tar -xJf "${DISTDIR}/${MY_P}.tar.xz" "${MY_P}/utils/bash-autocomplete.sh" || die |
86 |
-} |
87 |
- |
88 |
-src_configure() { :; } |
89 |
-src_compile() { :; } |
90 |
-src_test() { :; } |
91 |
- |
92 |
src_install() { |
93 |
- newbashcomp utils/bash-autocomplete.sh clang |
94 |
+ newbashcomp bash-autocomplete.sh clang |
95 |
} |
96 |
|
97 |
diff --git a/sys-devel/clang-common/clang-common-9.0.1.9999.ebuild b/sys-devel/clang-common/clang-common-9.0.1.9999.ebuild |
98 |
index eecb0ff749d..d1bfe71d2f8 100644 |
99 |
--- a/sys-devel/clang-common/clang-common-9.0.1.9999.ebuild |
100 |
+++ b/sys-devel/clang-common/clang-common-9.0.1.9999.ebuild |
101 |
@@ -3,14 +3,13 @@ |
102 |
|
103 |
EAPI=7 |
104 |
|
105 |
-inherit bash-completion-r1 git-r3 |
106 |
+inherit bash-completion-r1 llvm.org |
107 |
|
108 |
DESCRIPTION="Common files shared between multiple slots of clang" |
109 |
HOMEPAGE="https://llvm.org/" |
110 |
-SRC_URI="" |
111 |
-EGIT_REPO_URI="https://github.com/llvm/llvm-project.git" |
112 |
-EGIT_BRANCH="release/9.x" |
113 |
-S=${WORKDIR}/${P}/clang |
114 |
+LLVM_COMPONENTS=( clang/utils/bash-autocomplete.sh ) |
115 |
+llvm.org_set_globals |
116 |
+S=${WORKDIR}/clang/utils |
117 |
|
118 |
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" |
119 |
SLOT="0" |
120 |
@@ -19,15 +18,6 @@ IUSE="" |
121 |
|
122 |
PDEPEND="sys-devel/clang:*" |
123 |
|
124 |
-src_unpack() { |
125 |
- git-r3_fetch |
126 |
- git-r3_checkout '' '' '' clang/utils/bash-autocomplete.sh |
127 |
-} |
128 |
- |
129 |
-src_configure() { :; } |
130 |
-src_compile() { :; } |
131 |
-src_test() { :; } |
132 |
- |
133 |
src_install() { |
134 |
- newbashcomp utils/bash-autocomplete.sh clang |
135 |
+ newbashcomp bash-autocomplete.sh clang |
136 |
} |