34 lines
670 B
Shell
34 lines
670 B
Shell
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
CRATES="lexopt@0.3.2"
|
|
RUST_MIN_VER="1.85.0"
|
|
inherit cargo
|
|
|
|
DESCRIPTION="View potentially malformed text files in the terminal"
|
|
|
|
HOMEPAGE="https://ahti.space/git/nortti/kato"
|
|
|
|
SRC_URI="https://ahti.space/git/nortti/kato/releases/download/${PV}/${P}.tar.xz"
|
|
SRC_URI+=" ${CARGO_CRATE_URIS}"
|
|
|
|
LICENSE="CC0-1.0"
|
|
# lexopt
|
|
LICENSE+=" MIT"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
sed -i -E 's|, path = "vendor/lexopt"||' Cargo.toml || die 'Failed to patch Cargo.toml for lexopt from crates.io'
|
|
}
|
|
|
|
src_install() {
|
|
cargo_src_install
|
|
doman kato.1
|
|
}
|