summaryrefslogtreecommitdiff
blob: 1b2b63185ad03a53652269d717860927df749fc2 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# Auto-Generated by cargo-ebuild 0.5.4

EAPI=8

CRATES="
	aho-corasick-1.0.1
	ansi_term-0.12.1
	anstyle-1.0.0
	assert_cmd-2.0.11
	atty-0.2.14
	autocfg-1.1.0
	bitflags-1.3.2
	bstr-1.4.0
	cc-1.0.79
	cfg-if-1.0.0
	clap-3.2.25
	clap_complete-3.2.5
	clap_lex-0.2.4
	clap_mangen-0.1.11
	config-file-0.2.3
	core-foundation-sys-0.8.4
	crossbeam-channel-0.5.8
	crossbeam-deque-0.8.3
	crossbeam-epoch-0.9.14
	crossbeam-utils-0.8.15
	difflib-0.4.0
	directories-4.0.1
	dirs-sys-0.3.7
	doc-comment-0.3.3
	either-1.8.1
	errno-0.3.1
	errno-dragonfly-0.1.2
	fastrand-1.9.0
	getrandom-0.2.9
	hashbrown-0.12.3
	hermit-abi-0.1.19
	hermit-abi-0.2.6
	hermit-abi-0.3.1
	indexmap-1.9.3
	instant-0.1.12
	io-lifetimes-1.0.10
	itertools-0.10.5
	lazy_static-1.4.0
	libc-0.2.142
	linux-raw-sys-0.3.7
	lscolors-0.13.0
	memchr-2.5.0
	memoffset-0.8.0
	ntapi-0.4.1
	nu-ansi-term-0.46.0
	num_cpus-1.15.0
	once_cell-1.17.1
	os_str_bytes-6.5.0
	overload-0.1.1
	predicates-3.0.3
	predicates-core-1.0.6
	predicates-tree-1.0.9
	proc-macro2-1.0.56
	quote-1.0.26
	rayon-1.7.0
	rayon-core-1.11.0
	redox_syscall-0.2.16
	redox_syscall-0.3.5
	redox_users-0.4.3
	regex-1.8.1
	regex-automata-0.1.10
	regex-syntax-0.7.1
	roff-0.2.1
	rustix-0.37.19
	scopeguard-1.1.0
	serde-1.0.162
	serde_derive-1.0.162
	stfu8-0.2.6
	strsim-0.10.0
	syn-2.0.15
	sysinfo-0.27.8
	tempfile-3.5.0
	termcolor-1.2.0
	terminal_size-0.2.6
	termtree-0.4.1
	textwrap-0.16.0
	thiserror-1.0.40
	thiserror-impl-1.0.40
	thousands-0.2.0
	toml-0.5.11
	unicode-ident-1.0.8
	unicode-width-0.1.10
	wait-timeout-0.2.0
	wasi-0.11.0+wasi-snapshot-preview1
	winapi-0.3.9
	winapi-i686-pc-windows-gnu-0.4.0
	winapi-util-0.1.5
	winapi-x86_64-pc-windows-gnu-0.4.0
	windows-sys-0.45.0
	windows-sys-0.48.0
	windows-targets-0.42.2
	windows-targets-0.48.0
	windows_aarch64_gnullvm-0.42.2
	windows_aarch64_gnullvm-0.48.0
	windows_aarch64_msvc-0.42.2
	windows_aarch64_msvc-0.48.0
	windows_i686_gnu-0.42.2
	windows_i686_gnu-0.48.0
	windows_i686_msvc-0.42.2
	windows_i686_msvc-0.48.0
	windows_x86_64_gnu-0.42.2
	windows_x86_64_gnu-0.48.0
	windows_x86_64_gnullvm-0.42.2
	windows_x86_64_gnullvm-0.48.0
	windows_x86_64_msvc-0.42.2
	windows_x86_64_msvc-0.48.0
"

inherit bash-completion-r1 cargo

DESCRIPTION="A more intuitive version of du"
# Double check the homepage as the cargo_metadata crate
# does not provide this value so instead repository is used
HOMEPAGE="https://github.com/bootandy/dust"
SRC_URI="
	https://github.com/bootandy/dust/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz
	$(cargo_crate_uris)
"

# License set may be more restrictive as OR is not respected
# use cargo-license for a more accurate license picture
LICENSE="Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 MIT Unicode-DFS-2016 Unlicense"
SLOT="0"
KEYWORDS="~amd64 ~ppc64"

# 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/dust"

DOCS=(
	README.md
)

src_install() {
	cargo_src_install
	doman man-page/dust.1

	newbashcomp completions/dust.bash dust

	insinto /usr/share/fish/completions
	doins completions/dust.fish

	insinto /usr/share/zsh/site-functions
	doins completions/_dust
}