mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-11-12 18:50:34 -05:00
45 lines
1.0 KiB
Bash
45 lines
1.0 KiB
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit cargo
|
|
|
|
DESCRIPTION="Spell Checker for Code"
|
|
HOMEPAGE="https://github.com/blopker/codebook"
|
|
SRC_URI="
|
|
https://github.com/blopker/codebook/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
|
https://gitlab.com/api/v4/projects/69517529/packages/generic/${PN}/${PV}/${P}-deps.tar.xz
|
|
"
|
|
|
|
LICENSE="Apache-2.0 BSD CDDL CDLA-Permissive-2.0 ISC MIT MPL-2.0 openssl Unicode-3.0 ZLIB"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
RESTRICT="test"
|
|
PROPERTIES="test_network"
|
|
|
|
src_unpack() {
|
|
cargo_src_unpack
|
|
|
|
cat >> "${ECARGO_HOME}/config.toml" <<- EOF || die
|
|
[patch."https://github.com/jpt13653903/tree-sitter-vhdl"]
|
|
tree-sitter-vhdl = { path = "${ECARGO_VENDOR}/tree-sitter-vhdl" }
|
|
EOF
|
|
}
|
|
|
|
src_test() {
|
|
local skip=(
|
|
--skip test_elixir_module
|
|
--skip test_go_location
|
|
--skip test_java_location
|
|
--skip test_odin_location
|
|
--skip test_php_location
|
|
)
|
|
cargo_src_test -- "${skip[@]}"
|
|
}
|
|
|
|
src_install() {
|
|
cargo_src_install --frozen --path crates/codebook-lsp
|
|
dodoc README.md
|
|
}
|