Gentoo Archives: gentoo-dev

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