summaryrefslogtreecommitdiff
path: root/app-misc/television/television-0.13.11.ebuild
blob: 2a993f84eb2ce763edafbebb3fa9b7dd4144c85e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 2025-2026 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.90.0"

inherit cargo

DESCRIPTION="Cross-platform, fast and extensible general purpose fuzzy finder TUI"
HOMEPAGE="https://github.com/alexpasmantier/television"
SRC_URI="
	https://github.com/alexpasmantier/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/pastalian/distfiles/releases/download/${P}/${P}-crates.tar.xz
"

LICENSE="MIT"
# Dependent crate licenses
LICENSE+="
	Apache-2.0 BSD Boost-1.0 CDLA-Permissive-2.0 ISC MIT MPL-2.0
	Unicode-3.0 ZLIB
"

SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"

BDEPEND="
	test? (
		sys-apps/bat
		sys-apps/fd
	)
"

src_install() {
	cargo_src_install
	doman man/tv.1
}

src_test() {
	local -x TV_BIN_PATH="${S}/$(cargo_target_dir)/tv"
	cargo_src_test
}