Install this version:
emerge -a =dev-util/tree-sitter-cli-0.26.8
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-util/tree-sitter-cli-0.26.8
Or alternatively:
emerge --autounmask-write -a =dev-util/tree-sitter-cli-0.26.8
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.26.8 | 8 | ~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES=""
RUST_MIN_VER="1.88.0"
inherit cargo
MY_PN="${PN/-cli}"
MY_P=${MY_PN}-${PV}
DESCRIPTION="Command-line tool for creating and testing tree-sitter grammars"
HOMEPAGE="https://tree-sitter.github.io/"
SRC_URI="
https://github.com/${MY_PN}/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${MY_P}.tar.gz
https://github.com/gentoo-crate-dist/${MY_PN}/releases/download/v${PV}/${MY_P}-crates.tar.xz
"
S="${WORKDIR}/${MY_P}/crates/cli"
LICENSE="MIT"
# Dependent crate licenses
LICENSE+="
Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD CC0-1.0 ISC LGPL-3+
MIT Unicode-3.0 ZLIB
"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
# Test seems to require files (grammar definitions) that we don't have.
RESTRICT="test"
QA_FLAGS_IGNORED="usr/bin/${MY_PN}"
src_configure() {
cargo_src_configure --no-default-features
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | tree-sitter-0.26.8-crates.tar.xz | 21055636 bytes | https://github.com/gentoo-crate-dist/tree-sitter/releases/download/v0.26.8/tree-sitter-0.26.8-crates.tar.xz |
| DIST | tree-sitter-0.26.8.tar.gz | 908286 bytes | https://github.com/tree-sitter//archive/refs/tags/v0.26.8.tar.gz |