Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/llvm-common/
Date: Sun, 03 Nov 2019 11:46:33
Message-Id: 1572781568.c6862fa57e51d8bd3d68d1a70dd12012b252dd50.mgorny@gentoo
1 commit: c6862fa57e51d8bd3d68d1a70dd12012b252dd50
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 1 17:37:46 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 3 11:46:08 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6862fa5
7
8 sys-devel/llvm-common: Port 9+ to llvm.org.eclass
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../llvm-common/llvm-common-10.0.0.9999.ebuild | 22 ++++++---------------
13 sys-devel/llvm-common/llvm-common-9.0.0.ebuild | 22 +++++++--------------
14 .../llvm-common/llvm-common-9.0.1.9999.ebuild | 23 ++++++----------------
15 3 files changed, 19 insertions(+), 48 deletions(-)
16
17 diff --git a/sys-devel/llvm-common/llvm-common-10.0.0.9999.ebuild b/sys-devel/llvm-common/llvm-common-10.0.0.9999.ebuild
18 index 7edf27153de..ba2ffc76a70 100644
19 --- a/sys-devel/llvm-common/llvm-common-10.0.0.9999.ebuild
20 +++ b/sys-devel/llvm-common/llvm-common-10.0.0.9999.ebuild
21 @@ -3,13 +3,12 @@
22
23 EAPI=7
24
25 -inherit git-r3
26 +inherit llvm.org
27
28 DESCRIPTION="Common files shared between multiple slots of LLVM"
29 HOMEPAGE="https://llvm.org/"
30 -SRC_URI=""
31 -EGIT_REPO_URI="https://github.com/llvm/llvm-project.git"
32 -S=${WORKDIR}/${P}/llvm
33 +LLVM_COMPONENTS=( llvm/utils/vim )
34 +llvm.org_set_globals
35
36 LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
37 SLOT="0"
38 @@ -18,19 +17,10 @@ IUSE=""
39
40 RDEPEND="!sys-devel/llvm:0"
41
42 -src_unpack() {
43 - git-r3_fetch
44 - git-r3_checkout '' '' '' llvm/utils/vim
45 -}
46 -
47 -src_configure() { :; }
48 -src_compile() { :; }
49 -src_test() { :; }
50 -
51 src_install() {
52 insinto /usr/share/vim/vimfiles
53 - doins -r utils/vim/*/
54 + doins -r */
55 # some users may find it useful
56 - newdoc utils/vim/README README.vim
57 - dodoc utils/vim/vimrc
58 + newdoc README README.vim
59 + dodoc vimrc
60 }
61
62 diff --git a/sys-devel/llvm-common/llvm-common-9.0.0.ebuild b/sys-devel/llvm-common/llvm-common-9.0.0.ebuild
63 index 65eb4d232e3..a81f8f50599 100644
64 --- a/sys-devel/llvm-common/llvm-common-9.0.0.ebuild
65 +++ b/sys-devel/llvm-common/llvm-common-9.0.0.ebuild
66 @@ -3,11 +3,12 @@
67
68 EAPI=7
69
70 -MY_P=llvm-${PV/_/}.src
71 +inherit llvm.org
72 +
73 DESCRIPTION="Common files shared between multiple slots of LLVM"
74 HOMEPAGE="https://llvm.org/"
75 -SRC_URI="https://releases.llvm.org/${PV}/${MY_P}.tar.xz"
76 -S=${WORKDIR}/${MY_P}
77 +LLVM_COMPONENTS=( llvm/utils/vim )
78 +llvm.org_set_globals
79
80 LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
81 SLOT="0"
82 @@ -16,19 +17,10 @@ IUSE=""
83
84 RDEPEND="!sys-devel/llvm:0"
85
86 -src_unpack() {
87 - einfo "Unpacking parts of ${MY_P}.tar.xz ..."
88 - tar -xJf "${DISTDIR}/${MY_P}.tar.xz" "${MY_P}/utils/vim" || die
89 -}
90 -
91 -src_configure() { :; }
92 -src_compile() { :; }
93 -src_test() { :; }
94 -
95 src_install() {
96 insinto /usr/share/vim/vimfiles
97 - doins -r utils/vim/*/
98 + doins -r */
99 # some users may find it useful
100 - newdoc utils/vim/README README.vim
101 - dodoc utils/vim/vimrc
102 + newdoc README README.vim
103 + dodoc vimrc
104 }
105
106 diff --git a/sys-devel/llvm-common/llvm-common-9.0.1.9999.ebuild b/sys-devel/llvm-common/llvm-common-9.0.1.9999.ebuild
107 index b3b79ac4e6c..ba2ffc76a70 100644
108 --- a/sys-devel/llvm-common/llvm-common-9.0.1.9999.ebuild
109 +++ b/sys-devel/llvm-common/llvm-common-9.0.1.9999.ebuild
110 @@ -3,14 +3,12 @@
111
112 EAPI=7
113
114 -inherit git-r3
115 +inherit llvm.org
116
117 DESCRIPTION="Common files shared between multiple slots of LLVM"
118 HOMEPAGE="https://llvm.org/"
119 -SRC_URI=""
120 -EGIT_REPO_URI="https://github.com/llvm/llvm-project.git"
121 -EGIT_BRANCH="release/9.x"
122 -S=${WORKDIR}/${P}/llvm
123 +LLVM_COMPONENTS=( llvm/utils/vim )
124 +llvm.org_set_globals
125
126 LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
127 SLOT="0"
128 @@ -19,19 +17,10 @@ IUSE=""
129
130 RDEPEND="!sys-devel/llvm:0"
131
132 -src_unpack() {
133 - git-r3_fetch
134 - git-r3_checkout '' '' '' llvm/utils/vim
135 -}
136 -
137 -src_configure() { :; }
138 -src_compile() { :; }
139 -src_test() { :; }
140 -
141 src_install() {
142 insinto /usr/share/vim/vimfiles
143 - doins -r utils/vim/*/
144 + doins -r */
145 # some users may find it useful
146 - newdoc utils/vim/README README.vim
147 - dodoc utils/vim/vimrc
148 + newdoc README README.vim
149 + dodoc vimrc
150 }