summaryrefslogtreecommitdiff
path: root/dev-util/difftastic/difftastic-0.63.0.ebuild
blob: 6f326740d7e1155480b371f87f6344bd6118a785 (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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# Autogenerated by pycargoebuild 0.13.5

EAPI=8

CRATES="
	ahash@0.8.11
	aho-corasick@1.1.3
	allocator-api2@0.2.16
	anstream@0.6.15
	anstyle-parse@0.2.6
	anstyle-query@1.1.1
	anstyle-wincon@3.0.4
	anstyle@1.0.10
	assert_cmd@2.0.8
	autocfg@1.1.0
	bitflags@1.3.2
	bitflags@2.5.0
	bstr@1.9.1
	bumpalo@3.16.0
	cc@1.2.7
	cfg-if@1.0.0
	clap@4.5.23
	clap_builder@4.5.23
	clap_lex@0.7.4
	colorchoice@1.0.3
	crossbeam-deque@0.8.5
	crossbeam-epoch@0.9.18
	crossbeam-utils@0.8.19
	crossterm@0.28.1
	crossterm_winapi@0.9.1
	diff@0.1.13
	difflib@0.4.0
	doc-comment@0.3.3
	either@1.10.0
	encoding_rs@0.8.35
	env_logger@0.10.2
	equivalent@1.0.1
	errno@0.3.8
	fixedbitset@0.4.2
	float-cmp@0.9.0
	fnv@1.0.7
	glob@0.3.1
	globset@0.4.15
	hashbrown@0.14.3
	heck@0.5.0
	hermit-abi@0.3.9
	humansize@2.1.3
	humantime@2.1.0
	ignore@0.4.23
	indexmap@2.2.6
	is-terminal@0.4.12
	is_terminal_polyfill@1.70.1
	itertools@0.10.5
	itertools@0.11.0
	itoa@1.0.10
	lazy_static@1.4.0
	libc@0.2.169
	libm@0.2.8
	libmimalloc-sys@0.1.24
	line-numbers@0.3.0
	linux-raw-sys@0.4.14
	lock_api@0.4.11
	log@0.4.21
	memchr@2.7.1
	mimalloc@0.1.28
	minimal-lexical@0.2.1
	mio@1.0.3
	nom@7.1.3
	normalize-line-endings@0.3.0
	num-traits@0.2.19
	once_cell@1.19.0
	owo-colors@3.5.0
	parking_lot@0.12.1
	parking_lot_core@0.9.9
	petgraph@0.6.4
	predicates-core@1.0.6
	predicates-tree@1.0.9
	predicates@2.1.5
	pretty_assertions@1.4.1
	pretty_env_logger@0.5.0
	proc-macro2@1.0.79
	quote@1.0.35
	radix-heap@0.4.2
	rayon-core@1.12.1
	rayon@1.10.0
	redox_syscall@0.4.1
	regex-automata@0.4.9
	regex-syntax@0.8.5
	regex@1.11.1
	rustc-hash@2.0.0
	rustix@0.38.34
	rustversion@1.0.14
	ryu@1.0.17
	same-file@1.0.6
	scopeguard@1.2.0
	serde@1.0.197
	serde_derive@1.0.197
	serde_json@1.0.114
	shlex@1.3.0
	signal-hook-mio@0.2.4
	signal-hook-registry@1.4.1
	signal-hook@0.3.17
	smallvec@1.13.2
	streaming-iterator@0.1.9
	strsim@0.10.0
	strsim@0.11.1
	strum@0.26.3
	strum_macros@0.26.4
	syn@2.0.55
	termcolor@1.4.1
	terminal_size@0.4.1
	termtree@0.4.1
	tree-sitter-bash@0.23.3
	tree-sitter-c-sharp@0.23.1
	tree-sitter-c@0.23.4
	tree-sitter-cpp@0.23.4
	tree-sitter-css@0.23.1
	tree-sitter-elixir@0.3.4
	tree-sitter-go@0.23.4
	tree-sitter-haskell@0.23.1
	tree-sitter-html@0.23.2
	tree-sitter-java@0.23.4
	tree-sitter-javascript@0.23.1
	tree-sitter-json@0.24.8
	tree-sitter-julia@0.23.1
	tree-sitter-language@0.1.3
	tree-sitter-lua@0.2.0
	tree-sitter-make@1.1.1
	tree-sitter-nix@0.0.2
	tree-sitter-objc@3.0.2
	tree-sitter-ocaml@0.23.2
	tree-sitter-php@0.23.11
	tree-sitter-python@0.23.5
	tree-sitter-ruby@0.23.1
	tree-sitter-rust@0.23.2
	tree-sitter-scala@0.23.3
	tree-sitter-toml-ng@0.7.0
	tree-sitter-typescript@0.23.2
	tree-sitter-xml@0.7.0
	tree-sitter-yaml@0.7.0
	tree-sitter@0.24.5
	tree_magic_mini@3.1.6
	typed-arena@2.0.2
	unicode-ident@1.0.12
	unicode-width@0.1.11
	utf8parse@0.2.2
	version_check@0.9.4
	wait-timeout@0.2.0
	walkdir@2.5.0
	wasi@0.11.0+wasi-snapshot-preview1
	winapi-i686-pc-windows-gnu@0.4.0
	winapi-util@0.1.9
	winapi-x86_64-pc-windows-gnu@0.4.0
	winapi@0.3.9
	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
	wu-diff@0.1.2
	yansi@1.0.1
	zerocopy-derive@0.7.32
	zerocopy@0.7.32
"

inherit cargo flag-o-matic

DESCRIPTION="A structural diff that understands syntax."
HOMEPAGE="http://difftastic.wilfred.me.uk/"
SRC_URI="
	https://github.com/Wilfred/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz
	${CARGO_CRATE_URIS}
"

LICENSE="MIT"
# Dependent crate licenses
LICENSE+=" Apache-2.0 BSD MIT Unicode-DFS-2016"

# owo-colors
LICENSE+=" MIT"

SLOT="0"
KEYWORDS="~amd64 ~arm64"

QA_FLAGS_IGNORED="usr/bin/difft"

DOCS=(
	CHANGELOG.md
	README.md
	manual/
)

src_prepare() {
	rm manual/.gitignore || die

	default
}

src_configure() {
	# Workaround for old bundled mimalloc in mimalloc crate, see
	# bug #944110, but updating it should be done with caution, see
	# https://github.com/purpleprotocol/mimalloc_rust/issues/109.
	append-cflags -std=gnu17
	cargo_src_configure
}

src_install() {
	cargo_src_install
	dodoc -r "${DOCS[@]}"
}