Gentoo Archives: gentoo-commits

From: Ronny Gutbrod <gentoo@××××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-util/rust-analyzer/
Date: Wed, 24 Aug 2022 15:52:31
Message-Id: 1661348250.905b7724610b4213c8a7f11793dc1a1e96fa04f3.tastytea@gentoo
1 commit: 905b7724610b4213c8a7f11793dc1a1e96fa04f3
2 Author: Willaim Batista <bootlegbilly <AT> protonmail <DOT> ch>
3 AuthorDate: Wed Aug 24 13:37:30 2022 +0000
4 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
5 CommitDate: Wed Aug 24 13:37:30 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=905b7724
7
8 dev-util/rust-analyzer: add rust-analyzer-20220822.ebuild
9
10 Signed-off-by: William Batista <bootlegbilly <AT> protonmail.ch>
11
12 .../rust-analyzer/rust-analyzer-20220822.ebuild | 220 +++++++++++++++++++++
13 1 file changed, 220 insertions(+)
14
15 diff --git a/dev-util/rust-analyzer/rust-analyzer-20220822.ebuild b/dev-util/rust-analyzer/rust-analyzer-20220822.ebuild
16 new file mode 100644
17 index 000000000..a904e9366
18 --- /dev/null
19 +++ b/dev-util/rust-analyzer/rust-analyzer-20220822.ebuild
20 @@ -0,0 +1,220 @@
21 +# Copyright 2020-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +CRATES="
27 + addr2line-0.17.0
28 + adler-1.0.2
29 + always-assert-0.1.2
30 + ansi_term-0.12.1
31 + anyhow-1.0.62
32 + anymap-1.0.0-beta.2
33 + arbitrary-1.1.3
34 + arrayvec-0.7.2
35 + atty-0.2.14
36 + autocfg-1.1.0
37 + backtrace-0.3.66
38 + bitflags-1.3.2
39 + camino-1.1.1
40 + cargo-platform-0.1.2
41 + cargo_metadata-0.15.0
42 + cc-1.0.73
43 + cfg-if-1.0.0
44 + chalk-derive-0.84.0
45 + chalk-ir-0.84.0
46 + chalk-recursive-0.84.0
47 + chalk-solve-0.84.0
48 + countme-3.0.1
49 + cov-mark-2.0.0-pre.1
50 + crc32fast-1.3.2
51 + crossbeam-0.8.2
52 + crossbeam-channel-0.5.6
53 + crossbeam-deque-0.8.2
54 + crossbeam-epoch-0.9.10
55 + crossbeam-queue-0.3.6
56 + crossbeam-utils-0.8.11
57 + dashmap-5.3.4
58 + derive_arbitrary-1.1.3
59 + dissimilar-1.0.4
60 + dot-0.1.4
61 + drop_bomb-0.1.5
62 + either-1.8.0
63 + ena-0.14.0
64 + expect-test-1.4.0
65 + filetime-0.2.17
66 + fixedbitset-0.2.0
67 + flate2-1.0.24
68 + form_urlencoded-1.0.1
69 + fs_extra-1.2.0
70 + fsevent-sys-4.1.0
71 + fst-0.4.7
72 + gimli-0.26.2
73 + hashbrown-0.12.3
74 + heck-0.3.3
75 + hermit-abi-0.1.19
76 + home-0.5.3
77 + idna-0.2.3
78 + indexmap-1.9.1
79 + inotify-0.9.6
80 + inotify-sys-0.1.5
81 + instant-0.1.12
82 + itertools-0.10.3
83 + itoa-1.0.3
84 + jod-thread-0.1.2
85 + kqueue-1.0.6
86 + kqueue-sys-1.0.3
87 + lazy_static-1.4.0
88 + libc-0.2.132
89 + libloading-0.7.3
90 + libmimalloc-sys-0.1.25
91 + lock_api-0.4.7
92 + log-0.4.17
93 + lsp-types-0.93.0
94 + matchers-0.1.0
95 + matches-0.1.9
96 + memchr-2.5.0
97 + memmap2-0.5.7
98 + memoffset-0.6.5
99 + mimalloc-0.1.29
100 + miniz_oxide-0.5.3
101 + mio-0.8.4
102 + miow-0.4.0
103 + notify-5.0.0-pre.16
104 + num_cpus-1.13.1
105 + object-0.29.0
106 + once_cell-1.13.1
107 + oorandom-11.1.3
108 + parking_lot-0.11.2
109 + parking_lot-0.12.1
110 + parking_lot_core-0.8.5
111 + parking_lot_core-0.9.3
112 + paste-1.0.8
113 + percent-encoding-2.1.0
114 + perf-event-0.4.7
115 + perf-event-open-sys-1.0.1
116 + petgraph-0.5.1
117 + pin-project-lite-0.2.9
118 + proc-macro2-1.0.43
119 + pulldown-cmark-0.9.2
120 + pulldown-cmark-to-cmark-10.0.2
121 + quote-1.0.21
122 + rayon-1.5.3
123 + rayon-core-1.9.3
124 + redox_syscall-0.2.16
125 + regex-1.6.0
126 + regex-automata-0.1.10
127 + regex-syntax-0.6.27
128 + rowan-0.15.8
129 + rustc-ap-rustc_lexer-725.0.0
130 + rustc-demangle-0.1.21
131 + rustc-hash-1.1.0
132 + ryu-1.0.11
133 + salsa-0.17.0-pre.2
134 + salsa-macros-0.17.0-pre.2
135 + same-file-1.0.6
136 + scoped-tls-1.0.0
137 + scopeguard-1.1.0
138 + semver-1.0.13
139 + serde-1.0.143
140 + serde_derive-1.0.143
141 + serde_json-1.0.83
142 + serde_repr-0.1.9
143 + sharded-slab-0.1.4
144 + smallvec-1.9.0
145 + smol_str-0.1.23
146 + snap-1.0.5
147 + syn-1.0.99
148 + synstructure-0.12.6
149 + text-size-1.1.0
150 + thread_local-1.1.4
151 + threadpool-1.8.1
152 + tikv-jemalloc-ctl-0.5.0
153 + tikv-jemalloc-sys-0.5.1+5.3.0-patched
154 + tikv-jemallocator-0.5.0
155 + tinyvec-1.6.0
156 + tinyvec_macros-0.1.0
157 + tracing-0.1.36
158 + tracing-attributes-0.1.22
159 + tracing-core-0.1.29
160 + tracing-log-0.1.3
161 + tracing-subscriber-0.3.15
162 + tracing-tree-0.2.1
163 + typed-arena-2.0.1
164 + ungrammar-1.16.1
165 + unicase-2.6.0
166 + unicode-bidi-0.3.8
167 + unicode-ident-1.0.1
168 + unicode-normalization-0.1.21
169 + unicode-segmentation-1.9.0
170 + unicode-xid-0.2.3
171 + url-2.2.2
172 + valuable-0.1.0
173 + version_check-0.9.4
174 + walkdir-2.3.2
175 + wasi-0.11.0+wasi-snapshot-preview1
176 + winapi-0.3.9
177 + winapi-i686-pc-windows-gnu-0.4.0
178 + winapi-util-0.1.5
179 + winapi-x86_64-pc-windows-gnu-0.4.0
180 + windows-sys-0.28.0
181 + windows-sys-0.36.1
182 + windows_aarch64_msvc-0.28.0
183 + windows_aarch64_msvc-0.36.1
184 + windows_i686_gnu-0.28.0
185 + windows_i686_gnu-0.36.1
186 + windows_i686_msvc-0.28.0
187 + windows_i686_msvc-0.36.1
188 + windows_x86_64_gnu-0.28.0
189 + windows_x86_64_gnu-0.36.1
190 + windows_x86_64_msvc-0.28.0
191 + windows_x86_64_msvc-0.36.1
192 + write-json-0.1.2
193 + xflags-0.2.4
194 + xflags-macros-0.2.4
195 + xshell-0.2.2
196 + xshell-macros-0.2.2
197 +"
198 +
199 +inherit cargo
200 +
201 +if [[ "${PV}" == *9999* ]]; then
202 + inherit git-r3
203 + EGIT_REPO_URI="https://github.com/rust-analyzer/rust-analyzer"
204 +else
205 + KEYWORDS="~amd64"
206 + MY_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}"
207 + SRC_URI="https://github.com/rust-analyzer/rust-analyzer/archive/${MY_PV}.tar.gz -> ${P}.tar.gz $(cargo_crate_uris)"
208 +fi
209 +
210 +DESCRIPTION="An implementation of Language Server Protocol for the Rust programming language"
211 +HOMEPAGE="https://rust-analyzer.github.io"
212 +
213 +LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions Artistic-2 BSD Boost-1.0 CC0-1.0 ISC MIT Unlicense ZLIB"
214 +RESTRICT="mirror"
215 +SLOT="0"
216 +IUSE=""
217 +
218 +DEPEND="|| ( >=dev-lang/rust-1.57.0[rust-src] >=dev-lang/rust-bin-1.57.0[rust-src] )"
219 +RDEPEND="${DEPEND}"
220 +
221 +QA_FLAGS_IGNORED="usr/bin/rust-analyzer"
222 +
223 +src_unpack() {
224 + if [[ "${PV}" == *9999* ]]; then
225 + git-r3_src_unpack
226 + cargo_live_src_unpack
227 + else
228 + cargo_src_unpack
229 + mv -T "${PN}-${MY_PV}" "${P}" || die
230 + fi
231 +}
232 +
233 +src_test() {
234 + # Requires out of source git repo.
235 + cargo_src_test -- --skip "tidy::check_merge_commits"
236 +}
237 +
238 +src_install() {
239 + cargo_src_install --path "./crates/rust-analyzer"
240 +}