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