# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# Autogenerated by pycargoebuild 0.15.0

EAPI=8

CRATES="
"

RUST_MIN_VER="1.82.0"

inherit cargo

DESCRIPTION="blazing fast terminal-ui for git"
HOMEPAGE="https://github.com/gitui-org/gitui"
SRC_URI="
	https://github.com/gitui-org/gitui/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	${CARGO_CRATE_URIS}
"
if [[ ${PKGBUMPING} != ${PVR} ]]; then
	SRC_URI+="
		mirror://gentoo/${P}-crates.tar.xz
	"
fi

LICENSE="MIT"
# Dependent crate licenses
LICENSE+="
	Apache-2.0 BSD-2 BSD CC0-1.0 ISC MIT MPL-2.0 Unicode-3.0 ZLIB
"
SLOT="0"
KEYWORDS="~amd64"

DOCS=(
	CHANGELOG.md
	CONTRIBUTING.md
	FAQ.md
	KEY_CONFIG.md
	README.md
	THEMES.md
)

src_install() {
	cargo_src_install

	dodoc -r "${DOCS[@]}"
}