1 |
commit: 1aa4ff55bfcf338fcad483fd8c4aa49f90bfb3b7 |
2 |
Author: Matthew Smith <matthew <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 9 08:44:49 2022 +0000 |
4 |
Commit: Matthew Smith <matthew <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 9 09:46:10 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1aa4ff55 |
7 |
|
8 |
dev-util/tree-sitter-cli: add 0.20.7 |
9 |
|
10 |
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org> |
11 |
|
12 |
dev-util/tree-sitter-cli/Manifest | 1 + |
13 |
.../tree-sitter-cli/tree-sitter-cli-0.20.7.ebuild | 144 +++++++++++++++++++++ |
14 |
2 files changed, 145 insertions(+) |
15 |
|
16 |
diff --git a/dev-util/tree-sitter-cli/Manifest b/dev-util/tree-sitter-cli/Manifest |
17 |
index 8ac92cb40711..9e6b383c91c3 100644 |
18 |
--- a/dev-util/tree-sitter-cli/Manifest |
19 |
+++ b/dev-util/tree-sitter-cli/Manifest |
20 |
@@ -82,6 +82,7 @@ DIST tinyvec-1.1.1.crate 39896 BLAKE2B 7655703bb7c3eda6a4bfb78c46cd10d5bd195ccc9 |
21 |
DIST tinyvec_macros-0.1.0.crate 1817 BLAKE2B a3d1966bf57c11afcd026269135a6189f149f905bb70b47537c0a7bcaef0bfc6c89bdcbdb0f6cb8e5255632855134631c683fc90606a254ec8ba818fd5ef0794 SHA512 d6afc83a3c70cde916a6ff599e2772588e4bbfa7a5b1c7e5c8aa0f4a8a5c9426182497a644e4a88194ece986d38fa64b6c8eda9eb1630441c8e65a8741a45873 |
22 |
DIST toml-0.5.8.crate 54219 BLAKE2B b4f9f563e5ba4574d4f2dcbe244378a2e1e984bd9fbbbfa5a06bdd5f8b8d677394f0db9cb8696f6936c80a52caa86b1b3ebaf3885c53855af23f03d318785f19 SHA512 26b7901ee4b7cbb4cf8ea57d365a99ed05e0a76e73452e47d4bcb3b4eeb7bbd393c13eea9ea33dc13622942efcda39acdba9425b74b40c920c9f19673a1f2082 |
23 |
DIST tree-sitter-0.20.6.tar.gz 2924556 BLAKE2B 17348717441497ea7fc91419a0e8796d077b9acda2b584e9c3e1ac4a7a3f1fa3f84d5b749f21144d0593aaa7bf2e7ff9665539e91c6e81cda4359850e0fcdb14 SHA512 f0fb1e0073867c2a6e69b230e07e5eec32a2b30d3c711ec188526e287d6a1ef06de266d476482f900ec7c9ff6c11909899fd35a802e96f0befc6e99815502377 |
24 |
+DIST tree-sitter-0.20.7.tar.gz 2928761 BLAKE2B 280083381ce4f5949ab1ca1412026cac79bcf28b488147150d934b70cdc7804466c8032d50254f1ff4457b55a33fe0dceef66fd053cd32bbf844dc8280e896ab SHA512 dd306f7304cb5f87c05eab3bf5c9c4c13bfed7766a164eafe3159adbc6cca4e66fbdb6880f48dfc668408fbefc14b0147aa2231db085a72f526ac51b681b7c26 |
25 |
DIST unicode-bidi-0.3.4.crate 32228 BLAKE2B 853a85b29d1ac2025b7a28af64ead9387e3b4b1e790ad719d4374e349c1853ddbb5959a2890d9d6c94a5c28e4523fc3324deb6b1ed1aeb5e917f21b0e2516f6c SHA512 170ce083fa82bed13ecc62d85cb882fdd6491ae721e1633d3c1a5d3cee69422153afcf6695765c0e8fc7035440d0370d34afac9e978cb27f7506c07cba300e1e |
26 |
DIST unicode-normalization-0.1.17.crate 100345 BLAKE2B 2579748ab87f6d74ab8e845d88c1990e4ef32e46e38f9a1841e3381d257d973f2f8a9da359c8e3f11790a888acf81f548ed3b749a67bb3e95acf3b744dd063f3 SHA512 727b4844a4eb103375dff7d88d620e1fb581cbdf2523f07a5c1673ff333d772d48ffae7658bfe4816a5bb42de5f68a96e15be9341c540a0f746c2990eeccb3d6 |
27 |
DIST unicode-width-0.1.8.crate 16732 BLAKE2B 5aa7b87eef1322e4151a3fcf981ade311b8fa030527d7561815950e58d3f15156163dfe34da6a708c37dccc3f7652bf7fc2cd899fe8bb0118b67c4113ff3a2d2 SHA512 0abba6da6981a2451e01d93bbd47652c46eb6fb07cc0214f33259fb29945bfd5ee2b302e883ddca8f68e921635f222701b7310e7da2a5e225f854980d1e474b0 |
28 |
|
29 |
diff --git a/dev-util/tree-sitter-cli/tree-sitter-cli-0.20.7.ebuild b/dev-util/tree-sitter-cli/tree-sitter-cli-0.20.7.ebuild |
30 |
new file mode 100644 |
31 |
index 000000000000..6ee876a33d2b |
32 |
--- /dev/null |
33 |
+++ b/dev-util/tree-sitter-cli/tree-sitter-cli-0.20.7.ebuild |
34 |
@@ -0,0 +1,144 @@ |
35 |
+# Copyright 1999-2022 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=8 |
39 |
+ |
40 |
+MY_PN=tree-sitter |
41 |
+MY_P=tree-sitter-${PV} |
42 |
+CRATES=" |
43 |
+ aho-corasick-0.7.15 |
44 |
+ ansi_term-0.11.0 |
45 |
+ ansi_term-0.12.1 |
46 |
+ anyhow-1.0.40 |
47 |
+ arrayref-0.3.6 |
48 |
+ arrayvec-0.5.2 |
49 |
+ ascii-1.0.0 |
50 |
+ atty-0.2.14 |
51 |
+ autocfg-1.0.1 |
52 |
+ base64-0.13.0 |
53 |
+ bitflags-1.2.1 |
54 |
+ blake2b_simd-0.5.11 |
55 |
+ bumpalo-3.6.1 |
56 |
+ cc-1.0.67 |
57 |
+ cfg-if-1.0.0 |
58 |
+ chrono-0.4.19 |
59 |
+ chunked_transfer-1.4.0 |
60 |
+ clap-2.33.3 |
61 |
+ constant_time_eq-0.1.5 |
62 |
+ crossbeam-utils-0.8.3 |
63 |
+ ctor-0.1.20 |
64 |
+ diff-0.1.12 |
65 |
+ difference-2.0.0 |
66 |
+ dirs-3.0.1 |
67 |
+ dirs-sys-0.3.5 |
68 |
+ either-1.6.1 |
69 |
+ form_urlencoded-1.0.1 |
70 |
+ getrandom-0.1.16 |
71 |
+ getrandom-0.2.2 |
72 |
+ glob-0.3.0 |
73 |
+ hashbrown-0.9.1 |
74 |
+ hermit-abi-0.1.18 |
75 |
+ html-escape-0.2.6 |
76 |
+ idna-0.2.2 |
77 |
+ indexmap-1.6.1 |
78 |
+ itoa-0.4.7 |
79 |
+ js-sys-0.3.48 |
80 |
+ lazy_static-1.4.0 |
81 |
+ libc-0.2.86 |
82 |
+ libloading-0.7.0 |
83 |
+ log-0.4.14 |
84 |
+ matches-0.1.8 |
85 |
+ memchr-2.3.4 |
86 |
+ num-integer-0.1.44 |
87 |
+ num-traits-0.2.14 |
88 |
+ once_cell-1.7.0 |
89 |
+ output_vt100-0.1.2 |
90 |
+ percent-encoding-2.1.0 |
91 |
+ ppv-lite86-0.2.10 |
92 |
+ pretty_assertions-0.7.2 |
93 |
+ proc-macro2-1.0.24 |
94 |
+ quote-1.0.9 |
95 |
+ rand-0.8.3 |
96 |
+ rand_chacha-0.3.0 |
97 |
+ rand_core-0.6.2 |
98 |
+ rand_hc-0.3.0 |
99 |
+ redox_syscall-0.1.57 |
100 |
+ redox_syscall-0.2.5 |
101 |
+ redox_users-0.3.5 |
102 |
+ regex-1.4.3 |
103 |
+ regex-syntax-0.6.22 |
104 |
+ remove_dir_all-0.5.3 |
105 |
+ rust-argon2-0.8.3 |
106 |
+ rustc-hash-1.1.0 |
107 |
+ ryu-1.0.5 |
108 |
+ same-file-1.0.6 |
109 |
+ semver-1.0.5 |
110 |
+ serde-1.0.130 |
111 |
+ serde_derive-1.0.130 |
112 |
+ serde_json-1.0.63 |
113 |
+ smallbitvec-2.5.1 |
114 |
+ strsim-0.8.0 |
115 |
+ syn-1.0.67 |
116 |
+ tempfile-3.2.0 |
117 |
+ textwrap-0.11.0 |
118 |
+ thiserror-1.0.25 |
119 |
+ thiserror-impl-1.0.25 |
120 |
+ thread_local-1.1.3 |
121 |
+ time-0.1.43 |
122 |
+ tiny_http-0.8.0 |
123 |
+ tinyvec-1.1.1 |
124 |
+ tinyvec_macros-0.1.0 |
125 |
+ toml-0.5.8 |
126 |
+ unicode-bidi-0.3.4 |
127 |
+ unicode-normalization-0.1.17 |
128 |
+ unicode-width-0.1.8 |
129 |
+ unicode-xid-0.2.1 |
130 |
+ url-2.2.1 |
131 |
+ utf8-width-0.1.4 |
132 |
+ vec_map-0.8.2 |
133 |
+ walkdir-2.3.1 |
134 |
+ wasi-0.9.0+wasi-snapshot-preview1 |
135 |
+ wasi-0.10.2+wasi-snapshot-preview1 |
136 |
+ wasm-bindgen-0.2.71 |
137 |
+ wasm-bindgen-backend-0.2.71 |
138 |
+ wasm-bindgen-macro-0.2.71 |
139 |
+ wasm-bindgen-macro-support-0.2.71 |
140 |
+ wasm-bindgen-shared-0.2.71 |
141 |
+ web-sys-0.3.48 |
142 |
+ webbrowser-0.5.5 |
143 |
+ which-4.1.0 |
144 |
+ widestring-0.4.3 |
145 |
+ winapi-0.3.9 |
146 |
+ winapi-i686-pc-windows-gnu-0.4.0 |
147 |
+ winapi-util-0.1.5 |
148 |
+ winapi-x86_64-pc-windows-gnu-0.4.0 |
149 |
+" |
150 |
+ |
151 |
+inherit cargo |
152 |
+ |
153 |
+DESCRIPTION="Command-line tool for creating and testing tree-sitter grammars" |
154 |
+HOMEPAGE="https://github.com/tree-sitter/tree-sitter" |
155 |
+SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${MY_P}.tar.gz |
156 |
+$(cargo_crate_uris)" |
157 |
+S="${WORKDIR}"/${MY_P}/cli |
158 |
+ |
159 |
+LICENSE="Apache-2.0 BSD-2 CC0-1.0 ISC MIT" |
160 |
+SLOT="0" |
161 |
+KEYWORDS="~amd64" |
162 |
+ |
163 |
+# Test seems to require files (grammar definitions) that we don't have. |
164 |
+RESTRICT="test" |
165 |
+ |
166 |
+BDEPEND="~dev-libs/tree-sitter-${PV}" |
167 |
+RDEPEND="${BDEPEND}" |
168 |
+ |
169 |
+QA_FLAGS_IGNORED="usr/bin/${MY_PN}" |
170 |
+ |
171 |
+src_prepare() { |
172 |
+ default |
173 |
+ |
174 |
+ # Existing build.rs file invokes cc to rebuild the tree-sitter library. |
175 |
+ # Link with the system one instead. |
176 |
+ cp "${FILESDIR}"/tree-sitter-cli-0.20.2-r1-build.rs \ |
177 |
+ "${WORKDIR}"/${MY_P}/lib/binding_rust/build.rs || die |
178 |
+} |