diff options
author | Matthew Smith <matthew@gentoo.org> | 2022-03-12 08:31:33 +0000 |
---|---|---|
committer | Matthew Smith <matthew@gentoo.org> | 2022-03-12 08:33:47 +0000 |
commit | 84c532ec5fec78d6d950c13a4b29e808e27ded69 (patch) | |
tree | e0cb3d2dd0a9726b2e09644f0002d7dddcd9a400 /dev-util/tree-sitter-cli | |
parent | dev-libs/tree-sitter: add 0.20.6 (diff) | |
download | gentoo-84c532ec5fec78d6d950c13a4b29e808e27ded69.tar.gz gentoo-84c532ec5fec78d6d950c13a4b29e808e27ded69.tar.bz2 gentoo-84c532ec5fec78d6d950c13a4b29e808e27ded69.zip |
dev-util/tree-sitter-cli: add 0.20.6
Signed-off-by: Matthew Smith <matthew@gentoo.org>
Diffstat (limited to 'dev-util/tree-sitter-cli')
-rw-r--r-- | dev-util/tree-sitter-cli/Manifest | 2 | ||||
-rw-r--r-- | dev-util/tree-sitter-cli/tree-sitter-cli-0.20.6.ebuild | 144 |
2 files changed, 146 insertions, 0 deletions
diff --git a/dev-util/tree-sitter-cli/Manifest b/dev-util/tree-sitter-cli/Manifest index 3bc188aec918..32487a9d0205 100644 --- a/dev-util/tree-sitter-cli/Manifest +++ b/dev-util/tree-sitter-cli/Manifest @@ -64,6 +64,7 @@ DIST rust-argon2-0.8.3.crate 28313 BLAKE2B 2d3468c7b5dc027fbbf6ceb264d77f4ae9b03 DIST rustc-hash-1.1.0.crate 9331 BLAKE2B 16ac56622897f47a06b661fb59a196b08d48e782ab87549c8bd5c6fe92f374c9bfd44dcb36588512bd9b6125c2fd79a12d648aaa308fd9694bcca3a7c1b49ac9 SHA512 84e673ea9b046f7b989d47f2c4505557fbd5de991e6fc9f56a03605d40e0b4ba5427cd566954890153cc033ccbec6c984306634571935bfe0d4cdfbe56f39544 DIST ryu-1.0.5.crate 49570 BLAKE2B 3bfba4a5f290a429de7ac3b86823b2a973f40eb6f48c15329173d95964d31ada36f2618be4b36774a03f97f2ce61364900c6a3ad5465a294e2df311a1f4104ed SHA512 d1708ffa3112a684edf2956b6730ead040401d38f1457cde074eaaa59c249007dc8b925629e7f6df89f7ea757e9d0826649d685cc8ede0a04d50296048bf476c DIST same-file-1.0.6.crate 10183 BLAKE2B a320c8343e0b38078ba81c4f0159d886bf47764c74efe0d7cd2b3218426e8341b51e523c00a9e5fbc2ee1057618296bd70b576c68751bd55d6ddb352defaca15 SHA512 3ba35309742c8db63210d9ea78bff4ecd80471d69e6238eb96c7bf0673814f221e2d838fe6311bfc5a0e71b4a7ccba33e07859c0b9cff2171969ff08a4214a7c +DIST semver-1.0.5.crate 29943 BLAKE2B 1f5f372764d266c584c37a42a64fa8904603e31d14b0820d293ccd1bcd0576f279e05638b3d01e37a6aeb5f310078eb27fcbe780f65c745811454aa78c0f4fa6 SHA512 f877bab4a8ba61b0467ae6dfd1e0962d367c09e111c614d398824b9a714bbb01cb0695ba380a47b36a657cacf2b81f8e982b1b12e78b9868177e912c263e1e87 DIST serde-1.0.130.crate 75305 BLAKE2B 3973b70d8e06ab7c2f35e19f23739e8e4dd75dcdcddd818771be5daca8c61f6e2a7a830b4ccb8b3e3898769d7afdeb39ff217bcbf40bbd00867c13bc4668f905 SHA512 e6d6444abadcdac95ff15cdab53736adc9ddd1b6441d67158b6b41e68bee4b7763f9c2d80a857f879f40620429e8f04a90b01380c8c88da45a273c3ad13cfff3 DIST serde_derive-1.0.130.crate 54703 BLAKE2B 35db74464913a93da88b80cf29e4983bcc4377e397618064b1cb397ecbc9e6620c863e4d365153d03ab77ec6dbe9b1d03f8f86aba1adb76fc6d697f39ea7316f SHA512 d3ca974bf8856ed8a73af4eaff69941b35eef187d7e348d6d2ef9ee79eccad893e66270c7d814ac3871e09e21e603d34d7d1f24b182d9b39e9219acd42a7baa8 DIST serde_json-1.0.63.crate 115110 BLAKE2B d62655c480702de6ebc772df9ed54e07cd1a0d19fa5d40c95547176ce073370f70f517ee43f63da55055ce15f143be25b4dbb75b67bbf05abe1b0edd1bed7499 SHA512 7de96ee7ac3d7668394cd338efab73550545b8652e0ab412e558470deb8f7cdb85c9de7559cb43f3c79063f80e98c91a8a831d39faa4b0e6393aa0c9cc90d29f @@ -81,6 +82,7 @@ DIST tinyvec-1.1.1.crate 39896 BLAKE2B 7655703bb7c3eda6a4bfb78c46cd10d5bd195ccc9 DIST tinyvec_macros-0.1.0.crate 1817 BLAKE2B a3d1966bf57c11afcd026269135a6189f149f905bb70b47537c0a7bcaef0bfc6c89bdcbdb0f6cb8e5255632855134631c683fc90606a254ec8ba818fd5ef0794 SHA512 d6afc83a3c70cde916a6ff599e2772588e4bbfa7a5b1c7e5c8aa0f4a8a5c9426182497a644e4a88194ece986d38fa64b6c8eda9eb1630441c8e65a8741a45873 DIST toml-0.5.8.crate 54219 BLAKE2B b4f9f563e5ba4574d4f2dcbe244378a2e1e984bd9fbbbfa5a06bdd5f8b8d677394f0db9cb8696f6936c80a52caa86b1b3ebaf3885c53855af23f03d318785f19 SHA512 26b7901ee4b7cbb4cf8ea57d365a99ed05e0a76e73452e47d4bcb3b4eeb7bbd393c13eea9ea33dc13622942efcda39acdba9425b74b40c920c9f19673a1f2082 DIST tree-sitter-0.20.2.tar.gz 2904490 BLAKE2B cae19e3a66778ea72bf5cb0e5153bb6b7dfec0b059c01825377742886fadd52d789f456e82287d71841afad8bd5347361d5ef718b12e20e94c629480c43f4f33 SHA512 4b9a7da47b48b0003daf9af60f9d48aacf7c74d1c9e2645eafd74f62f568bc69e2fb36bb8f0c6b9f1dc85829e146786cc6bf7050ed1402167790b1552990665f +DIST tree-sitter-0.20.6.tar.gz 2924556 BLAKE2B 17348717441497ea7fc91419a0e8796d077b9acda2b584e9c3e1ac4a7a3f1fa3f84d5b749f21144d0593aaa7bf2e7ff9665539e91c6e81cda4359850e0fcdb14 SHA512 f0fb1e0073867c2a6e69b230e07e5eec32a2b30d3c711ec188526e287d6a1ef06de266d476482f900ec7c9ff6c11909899fd35a802e96f0befc6e99815502377 DIST unicode-bidi-0.3.4.crate 32228 BLAKE2B 853a85b29d1ac2025b7a28af64ead9387e3b4b1e790ad719d4374e349c1853ddbb5959a2890d9d6c94a5c28e4523fc3324deb6b1ed1aeb5e917f21b0e2516f6c SHA512 170ce083fa82bed13ecc62d85cb882fdd6491ae721e1633d3c1a5d3cee69422153afcf6695765c0e8fc7035440d0370d34afac9e978cb27f7506c07cba300e1e DIST unicode-normalization-0.1.17.crate 100345 BLAKE2B 2579748ab87f6d74ab8e845d88c1990e4ef32e46e38f9a1841e3381d257d973f2f8a9da359c8e3f11790a888acf81f548ed3b749a67bb3e95acf3b744dd063f3 SHA512 727b4844a4eb103375dff7d88d620e1fb581cbdf2523f07a5c1673ff333d772d48ffae7658bfe4816a5bb42de5f68a96e15be9341c540a0f746c2990eeccb3d6 DIST unicode-width-0.1.8.crate 16732 BLAKE2B 5aa7b87eef1322e4151a3fcf981ade311b8fa030527d7561815950e58d3f15156163dfe34da6a708c37dccc3f7652bf7fc2cd899fe8bb0118b67c4113ff3a2d2 SHA512 0abba6da6981a2451e01d93bbd47652c46eb6fb07cc0214f33259fb29945bfd5ee2b302e883ddca8f68e921635f222701b7310e7da2a5e225f854980d1e474b0 diff --git a/dev-util/tree-sitter-cli/tree-sitter-cli-0.20.6.ebuild b/dev-util/tree-sitter-cli/tree-sitter-cli-0.20.6.ebuild new file mode 100644 index 000000000000..fd19cfa6ac77 --- /dev/null +++ b/dev-util/tree-sitter-cli/tree-sitter-cli-0.20.6.ebuild @@ -0,0 +1,144 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN=tree-sitter +MY_P=tree-sitter-${PV} +CRATES=" + aho-corasick-0.7.15 + ansi_term-0.11.0 + ansi_term-0.12.1 + anyhow-1.0.40 + arrayref-0.3.6 + arrayvec-0.5.2 + ascii-1.0.0 + atty-0.2.14 + autocfg-1.0.1 + base64-0.13.0 + bitflags-1.2.1 + blake2b_simd-0.5.11 + bumpalo-3.6.1 + cc-1.0.67 + cfg-if-1.0.0 + chrono-0.4.19 + chunked_transfer-1.4.0 + clap-2.33.3 + constant_time_eq-0.1.5 + crossbeam-utils-0.8.3 + ctor-0.1.20 + diff-0.1.12 + difference-2.0.0 + dirs-3.0.1 + dirs-sys-0.3.5 + either-1.6.1 + form_urlencoded-1.0.1 + getrandom-0.1.16 + getrandom-0.2.2 + glob-0.3.0 + hashbrown-0.9.1 + hermit-abi-0.1.18 + html-escape-0.2.6 + idna-0.2.2 + indexmap-1.6.1 + itoa-0.4.7 + js-sys-0.3.48 + lazy_static-1.4.0 + libc-0.2.86 + libloading-0.7.0 + log-0.4.14 + matches-0.1.8 + memchr-2.3.4 + num-integer-0.1.44 + num-traits-0.2.14 + once_cell-1.7.0 + output_vt100-0.1.2 + percent-encoding-2.1.0 + ppv-lite86-0.2.10 + pretty_assertions-0.7.2 + proc-macro2-1.0.24 + quote-1.0.9 + rand-0.8.3 + rand_chacha-0.3.0 + rand_core-0.6.2 + rand_hc-0.3.0 + redox_syscall-0.1.57 + redox_syscall-0.2.5 + redox_users-0.3.5 + regex-1.4.3 + regex-syntax-0.6.22 + remove_dir_all-0.5.3 + rust-argon2-0.8.3 + rustc-hash-1.1.0 + ryu-1.0.5 + same-file-1.0.6 + semver-1.0.5 + serde-1.0.130 + serde_derive-1.0.130 + serde_json-1.0.63 + smallbitvec-2.5.1 + strsim-0.8.0 + syn-1.0.67 + tempfile-3.2.0 + textwrap-0.11.0 + thiserror-1.0.25 + thiserror-impl-1.0.25 + thread_local-1.1.3 + time-0.1.43 + tiny_http-0.8.0 + tinyvec-1.1.1 + tinyvec_macros-0.1.0 + toml-0.5.8 + unicode-bidi-0.3.4 + unicode-normalization-0.1.17 + unicode-width-0.1.8 + unicode-xid-0.2.1 + url-2.2.1 + utf8-width-0.1.4 + vec_map-0.8.2 + walkdir-2.3.1 + wasi-0.9.0+wasi-snapshot-preview1 + wasi-0.10.2+wasi-snapshot-preview1 + wasm-bindgen-0.2.71 + wasm-bindgen-backend-0.2.71 + wasm-bindgen-macro-0.2.71 + wasm-bindgen-macro-support-0.2.71 + wasm-bindgen-shared-0.2.71 + web-sys-0.3.48 + webbrowser-0.5.5 + which-4.1.0 + widestring-0.4.3 + winapi-0.3.9 + winapi-i686-pc-windows-gnu-0.4.0 + winapi-util-0.1.5 + winapi-x86_64-pc-windows-gnu-0.4.0 +" + +inherit cargo + +DESCRIPTION="Command-line tool for creating and testing tree-sitter grammars" +HOMEPAGE="https://github.com/tree-sitter/tree-sitter" +SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${MY_P}.tar.gz +$(cargo_crate_uris)" +S="${WORKDIR}"/${MY_P}/cli + +LICENSE="Apache-2.0 BSD-2 CC0-1.0 ISC MIT" +SLOT="0" +KEYWORDS="~amd64" + +# Test seems to require files (grammar definitions) that we don't have. +RESTRICT="test" + +BDEPEND="~dev-libs/tree-sitter-${PV}" +RDEPEND="~dev-libs/tree-sitter-${PV}[-ts-cli(-)]" + +QA_FLAGS_IGNORED="usr/bin/${MY_PN}" + +src_prepare() { + default + + # Existing build.rs file invokes cc to rebuild the tree-sitter library. + # Link with the system one instead. + cp "${FILESDIR}"/tree-sitter-cli-0.20.2-r1-build.rs \ + "${WORKDIR}"/${MY_P}/lib/binding_rust/build.rs || die +} |