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

# Autogenerated by pycargoebuild 0.13.5

EAPI=8

CRATES="
	addr2line@0.24.2
	adler2@2.0.0
	anstream@0.6.17
	anstyle-parse@0.2.6
	anstyle-query@1.1.2
	anstyle-wincon@3.0.6
	anstyle@1.0.9
	async-trait@0.1.83
	autocfg@1.4.0
	backtrace@0.3.74
	base64@0.21.7
	bitflags@1.3.2
	bitflags@2.6.0
	bumpalo@3.16.0
	bytes@1.8.0
	cc@1.1.31
	cfg-if@1.0.0
	clap@4.5.20
	clap_builder@4.5.20
	clap_derive@4.5.18
	clap_lex@0.7.2
	colorchoice@1.0.3
	colored@2.1.0
	core-foundation-sys@0.8.7
	core-foundation@0.9.4
	dirs-sys@0.5.0
	dirs@6.0.0
	encoding_rs@0.8.35
	equivalent@1.0.1
	errno@0.3.9
	fastrand@2.1.1
	fnv@1.0.7
	foreign-types-shared@0.1.1
	foreign-types@0.3.2
	form_urlencoded@1.2.1
	futures-channel@0.3.31
	futures-core@0.3.31
	futures-sink@0.3.31
	futures-task@0.3.31
	futures-util@0.3.31
	getrandom@0.2.15
	gimli@0.31.1
	h2@0.3.26
	hashbrown@0.15.0
	heck@0.5.0
	hermit-abi@0.3.9
	http-body@0.4.6
	http@0.2.12
	httparse@1.9.5
	httpdate@1.0.3
	hyper-tls@0.5.0
	hyper@0.14.31
	idna@0.5.0
	indexmap@2.6.0
	indoc@2.0.5
	ipnet@2.10.1
	is_terminal_polyfill@1.70.1
	itoa@1.0.11
	js-sys@0.3.72
	lazy_static@1.5.0
	libc@0.2.161
	libredox@0.1.3
	linux-raw-sys@0.4.14
	lock_api@0.4.12
	log@0.4.22
	memchr@2.7.4
	mime@0.3.17
	miniz_oxide@0.8.0
	mio@1.0.2
	native-tls@0.2.12
	object@0.36.5
	once_cell@1.20.2
	openssl-macros@0.1.1
	openssl-probe@0.1.5
	openssl-sys@0.9.104
	openssl@0.10.68
	option-ext@0.2.0
	parking_lot@0.12.3
	parking_lot_core@0.9.10
	paste@1.0.15
	percent-encoding@2.3.1
	pin-project-lite@0.2.15
	pin-utils@0.1.0
	pkg-config@0.3.31
	proc-macro2@1.0.94
	quote@1.0.37
	redox_syscall@0.5.7
	redox_users@0.5.0
	reqwest@0.11.27
	rustc-demangle@0.1.24
	rustix@0.38.38
	rustls-pemfile@1.0.4
	ryu@1.0.18
	schannel@0.1.26
	scopeguard@1.2.0
	security-framework-sys@2.12.0
	security-framework@2.11.1
	serde@1.0.214
	serde_derive@1.0.214
	serde_json@1.0.132
	serde_urlencoded@0.7.1
	shlex@1.3.0
	signal-hook-registry@1.4.2
	slab@0.4.9
	smallvec@1.13.2
	socket2@0.5.7
	spinoff@0.8.0
	strsim@0.11.1
	syn@2.0.100
	sync_wrapper@0.1.2
	system-configuration-sys@0.5.0
	system-configuration@0.5.1
	tempfile@3.13.0
	thiserror-impl@1.0.65
	thiserror-impl@2.0.12
	thiserror@1.0.65
	thiserror@2.0.12
	tinyvec@1.8.0
	tinyvec_macros@0.1.1
	tokio-macros@2.4.0
	tokio-native-tls@0.3.1
	tokio-util@0.7.12
	tokio@1.41.0
	tower-service@0.3.3
	tracing-core@0.1.32
	tracing@0.1.40
	try-lock@0.2.5
	unicode-bidi@0.3.17
	unicode-ident@1.0.13
	unicode-normalization@0.1.24
	url@2.5.2
	utf8parse@0.2.2
	vcpkg@0.2.15
	want@0.3.1
	wasi@0.11.0+wasi-snapshot-preview1
	wasm-bindgen-backend@0.2.95
	wasm-bindgen-futures@0.4.45
	wasm-bindgen-macro-support@0.2.95
	wasm-bindgen-macro@0.2.95
	wasm-bindgen-shared@0.2.95
	wasm-bindgen@0.2.95
	web-sys@0.3.72
	windows-sys@0.48.0
	windows-sys@0.52.0
	windows-sys@0.59.0
	windows-targets@0.48.5
	windows-targets@0.52.6
	windows_aarch64_gnullvm@0.48.5
	windows_aarch64_gnullvm@0.52.6
	windows_aarch64_msvc@0.48.5
	windows_aarch64_msvc@0.52.6
	windows_i686_gnu@0.48.5
	windows_i686_gnu@0.52.6
	windows_i686_gnullvm@0.52.6
	windows_i686_msvc@0.48.5
	windows_i686_msvc@0.52.6
	windows_x86_64_gnu@0.48.5
	windows_x86_64_gnu@0.52.6
	windows_x86_64_gnullvm@0.48.5
	windows_x86_64_gnullvm@0.52.6
	windows_x86_64_msvc@0.48.5
	windows_x86_64_msvc@0.52.6
	winreg@0.50.0
"

inherit cargo

DESCRIPTION="A CLI tool uses AI to generate commit messages, summarise git diffs"
HOMEPAGE="https://github.com/jnsahaj/lumen"
SRC_URI="
	https://github.com/jnsahaj/${PN}/archive/v${PV}/${P}.tar.gz
	${CARGO_CRATE_URIS}
"

LICENSE="MIT"
# Dependent crate licenses
LICENSE+=" Apache-2.0 BSD MIT MPL-2.0 Unicode-DFS-2016"
SLOT="0"
KEYWORDS="~amd64"

# fzf is required for lumen list command
RDEPEND="
	app-shells/fzf
"
DEPEND="${RDEPEND}"

# rust does not use *FLAGS from make.conf, silence portage warning
# update with proper path to binaries this crate installs, omit leading /
QA_FLAGS_IGNORED="usr/bin/${PN}"

PATCHES=(
	"${FILESDIR}/${PN}-1.8.0-global-config.patch"
)