blob: 07e005e352c09988c1fc085318f7998e924eb050 (
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
228
229
230
231
232
233
234
235
236
237
238
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES="
adler-0.2.3
aho-corasick-0.7.18
ansi_colours-1.1.1
ansi_term-0.12.1
approx-0.5.0
arrayvec-0.5.2
atty-0.2.14
autocfg-1.0.1
base64-0.13.0
bat-0.21.0
bincode-1.3.1
bitflags-1.3.2
box_drawing-0.1.2
bstr-0.2.15
bugreport-0.5.0
bytelines-2.4.0
bytemuck-1.7.3
byteorder-1.3.4
bytes-1.1.0
bytesize-1.1.0
cc-1.0.66
cfg-if-0.1.10
cfg-if-1.0.0
chrono-0.4.19
chrono-humanize-0.2.1
clap-2.34.0
clap-3.2.8
clap_derive-3.2.7
clap_lex-0.2.4
clircle-0.3.0
console-0.15.0
content_inspector-0.2.4
core-foundation-sys-0.8.3
crc32fast-1.2.1
ctrlc-3.2.2
dirs-4.0.0
dirs-next-2.0.0
dirs-sys-0.3.6
dirs-sys-next-0.1.1
either-1.6.1
encode_unicode-0.3.6
encoding-0.2.33
encoding-index-japanese-1.20141219.5
encoding-index-korean-1.20141219.5
encoding-index-simpchinese-1.20141219.5
encoding-index-singlebyte-1.20141219.5
encoding_index_tests-0.1.4
encoding-index-tradchinese-1.20141219.5
error-chain-0.12.4
find-crate-0.6.3
flate2-1.0.19
fnv-1.0.7
form_urlencoded-1.0.0
futures-0.3.21
futures-channel-0.3.21
futures-core-0.3.21
futures-executor-0.3.21
futures-io-0.3.21
futures-macro-0.3.21
futures-sink-0.3.21
futures-task-0.3.21
futures-util-0.3.21
getrandom-0.1.16
getrandom-0.2.3
git2-0.14.2
git-version-0.3.5
git-version-macro-0.3.5
glob-0.3.0
globset-0.4.8
grep-cli-0.1.6
hashbrown-0.8.2
heck-0.4.0
hermit-abi-0.1.17
idna-0.2.0
indexmap-1.5.2
itertools-0.10.3
itoa-1.0.1
jobserver-0.1.21
lazy_static-1.4.0
libc-0.2.126
libgit2-sys-0.13.2+1.4.2
libz-sys-1.1.2
line-wrap-0.1.1
linked-hash-map-0.5.3
log-0.4.11
matches-0.1.8
memchr-2.4.1
miniz_oxide-0.4.3
nix-0.24.1
ntapi-0.3.6
num-integer-0.1.44
num_threads-0.1.6
num-traits-0.2.14
once_cell-1.12.1
onig-6.1.1
onig_sys-69.6.0
os_str_bytes-6.0.0
palette-0.6.0
palette_derive-0.6.0
path_abs-0.5.1
pathdiff-0.2.1
percent-encoding-2.1.0
phf-0.9.0
phf_generator-0.9.1
phf_macros-0.9.0
phf_shared-0.9.0
pin-project-lite-0.2.8
pin-utils-0.1.0
pkg-config-0.3.19
plist-1.3.1
ppv-lite86-0.2.15
proc-macro2-1.0.36
proc-macro-error-1.0.4
proc-macro-error-attr-1.0.4
proc-macro-hack-0.5.19
quote-1.0.14
rand-0.8.4
rand_chacha-0.3.1
rand_core-0.6.3
rand_hc-0.3.1
redox_syscall-0.1.57
redox_syscall-0.2.10
redox_users-0.3.5
redox_users-0.4.0
regex-1.5.5
regex-automata-0.1.10
regex-syntax-0.6.25
rgb-0.8.31
ryu-1.0.5
safemem-0.3.3
same-file-1.0.6
semver-1.0.6
serde-1.0.138
serde_derive-1.0.138
serde_json-1.0.82
serde_yaml-0.8.23
shell-escape-0.1.5
shell-words-1.1.0
siphasher-0.3.7
slab-0.4.6
smol_str-0.1.23
std_prelude-0.2.12
strsim-0.10.0
strsim-0.8.0
syn-1.0.94
syntect-5.0.0
sysinfo-0.24.5
sys-info-0.9.1
termcolor-1.1.2
terminal_size-0.1.15
term_size-0.3.2
textwrap-0.11.0
textwrap-0.15.0
thiserror-1.0.30
thiserror-impl-1.0.30
time-0.1.44
time-0.3.9
tinyvec-1.1.0
tinyvec_macros-0.1.0
tokio-1.17.0
toml-0.5.8
unicode-bidi-0.3.4
unicode-normalization-0.1.16
unicode-segmentation-1.9.0
unicode-width-0.1.9
unicode-xid-0.2.1
url-2.2.0
utf8parse-0.2.0
vcpkg-0.2.11
vec_map-0.8.2
version_check-0.9.2
vte-0.10.1
vte_generate_state_changes-0.1.1
walkdir-2.3.1
wasi-0.10.0+wasi-snapshot-preview1
wasi-0.9.0+wasi-snapshot-preview1
wild-2.0.4
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
xdg-2.4.1
xml-rs-0.8.3
yaml-rust-0.4.5
"
inherit bash-completion-r1 cargo
DESCRIPTION="A syntax-highlighting pager for git"
HOMEPAGE="https://github.com/dandavison/delta"
SRC_URI="https://github.com/dandavison/delta/archive/${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" $(cargo_crate_uris ${CRATES})"
S="${WORKDIR}/${P/git-/}"
LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions Boost-1.0 LGPL-3+ MIT Unlicense ZLIB"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv"
BDEPEND="virtual/pkgconfig"
DEPEND="
dev-libs/libgit2:=
dev-libs/oniguruma:=
"
RDEPEND="
${DEPEND}
!app-text/delta
"
QA_FLAGS_IGNORED="usr/bin/delta"
src_configure() {
# Some crates will auto-build and statically link C libraries(!)
# Tracker bug #709568
export RUSTONIG_SYSTEM_LIBONIG=1
export LIBGIT2_SYS_USE_PKG_CONFIG=1
export PKG_CONFIG_ALLOW_CROSS=1
}
src_install() {
cargo_src_install
# No man page (yet?)
# Completions
newbashcomp "${S}"/etc/completion/completion.bash delta
insinto /usr/share/zsh/site-functions
newins "${S}"/etc/completion/completion.zsh _delta
insinto /usr/share/fish/vendor_completions.d
doins "${S}"/etc/completion/completion.fish
}
|