4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
6 |
CRATES="
|
7 |
|
adler-1.0.2
|
8 |
|
aho-corasick-0.7.18
|
9 |
|
ansi_colours-1.1.1
|
10 |
|
ansi_term-0.12.1
|
11 |
|
assert_cmd-2.0.4
|
12 |
|
atty-0.2.14
|
13 |
|
autocfg-1.0.1
|
14 |
|
base64-0.13.0
|
15 |
|
bincode-1.3.3
|
16 |
|
bit-set-0.5.2
|
17 |
|
bit-vec-0.6.3
|
18 |
|
bitflags-1.3.2
|
19 |
|
bstr-0.2.17
|
20 |
|
bugreport-0.5.0
|
21 |
|
bytemuck-1.7.3
|
22 |
|
bytesize-1.1.0
|
23 |
|
cc-1.0.72
|
24 |
|
cfg-if-1.0.0
|
25 |
|
clap-3.2.20
|
26 |
|
clap_lex-0.2.4
|
27 |
|
clircle-0.3.0
|
28 |
|
console-0.15.1
|
29 |
|
content_inspector-0.2.4
|
30 |
|
crc32fast-1.3.0
|
31 |
|
difflib-0.4.0
|
32 |
|
dirs-next-2.0.0
|
33 |
|
dirs-sys-next-0.1.2
|
34 |
|
doc-comment-0.3.3
|
35 |
|
either-1.6.1
|
36 |
|
encode_unicode-0.3.6
|
37 |
|
encoding-0.2.33
|
38 |
|
encoding-index-japanese-1.20141219.5
|
39 |
|
encoding-index-korean-1.20141219.5
|
40 |
|
encoding-index-simpchinese-1.20141219.5
|
41 |
|
encoding-index-singlebyte-1.20141219.5
|
42 |
|
encoding-index-tradchinese-1.20141219.5
|
43 |
|
encoding_index_tests-0.1.4
|
44 |
|
fancy-regex-0.7.1
|
45 |
|
fastrand-1.7.0
|
46 |
|
flate2-1.0.24
|
47 |
|
float-cmp-0.9.0
|
48 |
|
fnv-1.0.7
|
49 |
|
form_urlencoded-1.0.1
|
50 |
|
getrandom-0.2.3
|
51 |
|
git-version-0.3.5
|
52 |
|
git-version-macro-0.3.5
|
53 |
|
git2-0.15.0
|
54 |
|
glob-0.3.0
|
55 |
|
globset-0.4.9
|
56 |
|
grep-cli-0.1.6
|
57 |
|
hashbrown-0.11.2
|
58 |
|
hermit-abi-0.1.19
|
59 |
|
idna-0.2.3
|
60 |
|
indexmap-1.7.0
|
61 |
|
instant-0.1.12
|
62 |
|
itertools-0.10.3
|
63 |
|
itoa-0.4.8
|
64 |
|
itoa-1.0.1
|
65 |
|
jobserver-0.1.24
|
66 |
|
lazy_static-1.4.0
|
67 |
|
libc-0.2.125
|
68 |
|
libgit2-sys-0.14.0+1.5.0
|
69 |
|
libz-sys-1.1.3
|
70 |
|
line-wrap-0.1.1
|
71 |
|
linked-hash-map-0.5.4
|
72 |
|
lock_api-0.4.5
|
73 |
|
log-0.4.14
|
74 |
|
matches-0.1.9
|
75 |
|
memchr-2.4.1
|
76 |
|
miniz_oxide-0.5.1
|
77 |
|
nix-0.24.2
|
78 |
|
normalize-line-endings-0.3.0
|
79 |
|
num-traits-0.2.14
|
80 |
|
once_cell-1.13.1
|
81 |
|
onig-6.3.1
|
82 |
|
onig_sys-69.7.1
|
83 |
|
os_str_bytes-6.3.0
|
84 |
|
parking_lot-0.11.2
|
85 |
|
parking_lot_core-0.8.5
|
86 |
|
path_abs-0.5.1
|
87 |
|
percent-encoding-2.1.0
|
88 |
|
pkg-config-0.3.24
|
89 |
|
plist-1.3.1
|
90 |
|
predicates-2.1.1
|
91 |
|
predicates-core-1.0.2
|
92 |
|
predicates-tree-1.0.4
|
93 |
|
proc-macro-error-1.0.4
|
94 |
|
proc-macro-error-attr-1.0.4
|
95 |
|
proc-macro-hack-0.5.19
|
96 |
|
proc-macro2-1.0.39
|
97 |
|
quote-1.0.14
|
98 |
|
redox_syscall-0.2.10
|
99 |
|
redox_users-0.4.0
|
100 |
|
regex-1.6.0
|
101 |
|
regex-automata-0.1.10
|
102 |
|
regex-syntax-0.6.27
|
103 |
|
remove_dir_all-0.5.3
|
104 |
|
rgb-0.8.31
|
105 |
|
rustversion-1.0.6
|
106 |
|
ryu-1.0.9
|
107 |
|
safemem-0.3.3
|
108 |
|
same-file-1.0.6
|
109 |
|
scopeguard-1.1.0
|
110 |
|
semver-1.0.13
|
111 |
|
serde-1.0.144
|
112 |
|
serde_derive-1.0.144
|
113 |
|
serde_json-1.0.74
|
114 |
|
serde_yaml-0.8.24
|
115 |
|
serial_test-0.6.0
|
116 |
|
serial_test_derive-0.6.0
|
117 |
|
shell-escape-0.1.5
|
118 |
|
shell-words-1.1.0
|
119 |
|
smallvec-1.7.0
|
120 |
|
std_prelude-0.2.12
|
121 |
|
strsim-0.10.0
|
122 |
|
syn-1.0.95
|
123 |
|
syntect-5.0.0
|
124 |
|
sys-info-0.9.1
|
125 |
|
tempfile-3.3.0
|
126 |
|
termcolor-1.1.2
|
127 |
|
terminal_size-0.1.17
|
128 |
|
termtree-0.2.3
|
129 |
|
textwrap-0.15.0
|
130 |
|
thiserror-1.0.33
|
131 |
|
thiserror-impl-1.0.33
|
132 |
|
time-0.3.5
|
133 |
|
tinyvec-1.5.1
|
134 |
|
tinyvec_macros-0.1.0
|
135 |
|
unicode-bidi-0.3.7
|
136 |
|
unicode-ident-1.0.0
|
137 |
|
unicode-normalization-0.1.19
|
138 |
|
unicode-width-0.1.9
|
139 |
|
url-2.2.2
|
140 |
|
vcpkg-0.2.15
|
141 |
|
version_check-0.9.4
|
142 |
|
wait-timeout-0.2.0
|
143 |
|
walkdir-2.3.2
|
144 |
|
wasi-0.10.2+wasi-snapshot-preview1
|
145 |
|
wild-2.1.0
|
146 |
|
winapi-0.3.9
|
147 |
|
winapi-i686-pc-windows-gnu-0.4.0
|
148 |
|
winapi-util-0.1.5
|
149 |
|
winapi-x86_64-pc-windows-gnu-0.4.0
|
150 |
|
xml-rs-0.8.4
|
151 |
|
yaml-rust-0.4.5
|
|
7 |
adler@1.0.2
|
|
8 |
aho-corasick@0.7.19
|
|
9 |
ansi_colours@1.2.1
|
|
10 |
assert_cmd@2.0.8
|
|
11 |
atty@0.2.14
|
|
12 |
autocfg@1.1.0
|
|
13 |
base64@0.13.0
|
|
14 |
bincode@1.3.3
|
|
15 |
bit-set@0.5.3
|
|
16 |
bit-vec@0.6.3
|
|
17 |
bitflags@1.3.2
|
|
18 |
bstr@1.1.0
|
|
19 |
bugreport@0.5.0
|
|
20 |
bytemuck@1.12.1
|
|
21 |
bytesize@1.1.0
|
|
22 |
cc@1.0.73
|
|
23 |
cfg-if@1.0.0
|
|
24 |
clap@4.1.8
|
|
25 |
clap_lex@0.3.2
|
|
26 |
clircle@0.3.0
|
|
27 |
console@0.15.5
|
|
28 |
content_inspector@0.2.4
|
|
29 |
crc32fast@1.3.2
|
|
30 |
difflib@0.4.0
|
|
31 |
dirs-sys@0.4.0
|
|
32 |
dirs@5.0.0
|
|
33 |
dissimilar@1.0.5
|
|
34 |
doc-comment@0.3.3
|
|
35 |
either@1.8.0
|
|
36 |
encode_unicode@0.3.6
|
|
37 |
encoding-index-japanese@1.20141219.5
|
|
38 |
encoding-index-korean@1.20141219.5
|
|
39 |
encoding-index-simpchinese@1.20141219.5
|
|
40 |
encoding-index-singlebyte@1.20141219.5
|
|
41 |
encoding-index-tradchinese@1.20141219.5
|
|
42 |
encoding@0.2.33
|
|
43 |
encoding_index_tests@0.1.4
|
|
44 |
errno-dragonfly@0.1.2
|
|
45 |
errno@0.2.8
|
|
46 |
expect-test@1.4.0
|
|
47 |
fancy-regex@0.7.1
|
|
48 |
fastrand@1.8.0
|
|
49 |
flate2@1.0.25
|
|
50 |
float-cmp@0.9.0
|
|
51 |
fnv@1.0.7
|
|
52 |
form_urlencoded@1.1.0
|
|
53 |
getrandom@0.2.7
|
|
54 |
git-version-macro@0.3.5
|
|
55 |
git-version@0.3.5
|
|
56 |
git2@0.16.1
|
|
57 |
glob@0.3.0
|
|
58 |
globset@0.4.10
|
|
59 |
grep-cli@0.1.7
|
|
60 |
hashbrown@0.12.3
|
|
61 |
hermit-abi@0.1.19
|
|
62 |
hermit-abi@0.3.1
|
|
63 |
idna@0.3.0
|
|
64 |
indexmap@1.9.1
|
|
65 |
instant@0.1.12
|
|
66 |
io-lifetimes@1.0.5
|
|
67 |
is-terminal@0.4.4
|
|
68 |
itertools@0.10.5
|
|
69 |
itoa@1.0.3
|
|
70 |
jobserver@0.1.25
|
|
71 |
lazy_static@1.4.0
|
|
72 |
libc@0.2.137
|
|
73 |
libgit2-sys@0.14.2+1.5.1
|
|
74 |
libz-sys@1.1.8
|
|
75 |
line-wrap@0.1.1
|
|
76 |
linked-hash-map@0.5.6
|
|
77 |
linux-raw-sys@0.1.4
|
|
78 |
lock_api@0.4.9
|
|
79 |
log@0.4.17
|
|
80 |
memchr@2.5.0
|
|
81 |
miniz_oxide@0.6.2
|
|
82 |
nix@0.26.2
|
|
83 |
normalize-line-endings@0.3.0
|
|
84 |
nu-ansi-term@0.47.0
|
|
85 |
num-traits@0.2.15
|
|
86 |
num_threads@0.1.6
|
|
87 |
once_cell@1.17.0
|
|
88 |
onig@6.4.0
|
|
89 |
onig_sys@69.8.1
|
|
90 |
os_str_bytes@6.3.0
|
|
91 |
parking_lot@0.11.2
|
|
92 |
parking_lot_core@0.8.5
|
|
93 |
path_abs@0.5.1
|
|
94 |
percent-encoding@2.2.0
|
|
95 |
pkg-config@0.3.25
|
|
96 |
plist@1.3.1
|
|
97 |
predicates-core@1.0.3
|
|
98 |
predicates-tree@1.0.5
|
|
99 |
predicates@2.1.5
|
|
100 |
proc-macro-error-attr@1.0.4
|
|
101 |
proc-macro-error@1.0.4
|
|
102 |
proc-macro-hack@0.5.19
|
|
103 |
proc-macro2@1.0.46
|
|
104 |
quote@1.0.21
|
|
105 |
redox_syscall@0.2.16
|
|
106 |
redox_users@0.4.3
|
|
107 |
regex-automata@0.1.10
|
|
108 |
regex-syntax@0.6.27
|
|
109 |
regex@1.7.0
|
|
110 |
remove_dir_all@0.5.3
|
|
111 |
rgb@0.8.34
|
|
112 |
rustix@0.36.8
|
|
113 |
rustversion@1.0.9
|
|
114 |
ryu@1.0.11
|
|
115 |
safemem@0.3.3
|
|
116 |
same-file@1.0.6
|
|
117 |
scopeguard@1.1.0
|
|
118 |
semver@1.0.16
|
|
119 |
serde@1.0.152
|
|
120 |
serde_derive@1.0.152
|
|
121 |
serde_json@1.0.85
|
|
122 |
serde_yaml@0.8.26
|
|
123 |
serial_test@0.6.0
|
|
124 |
serial_test_derive@0.6.0
|
|
125 |
shell-escape@0.1.5
|
|
126 |
shell-words@1.1.0
|
|
127 |
smallvec@1.10.0
|
|
128 |
static_assertions@1.1.0
|
|
129 |
std_prelude@0.2.12
|
|
130 |
strsim@0.10.0
|
|
131 |
syn@1.0.104
|
|
132 |
syntect@5.0.0
|
|
133 |
sys-info@0.9.1
|
|
134 |
tempfile@3.3.0
|
|
135 |
termcolor@1.1.3
|
|
136 |
terminal_size@0.2.5
|
|
137 |
termtree@0.2.4
|
|
138 |
thiserror-impl@1.0.38
|
|
139 |
thiserror@1.0.38
|
|
140 |
time@0.3.14
|
|
141 |
tinyvec@1.6.0
|
|
142 |
tinyvec_macros@0.1.0
|
|
143 |
unicode-bidi@0.3.8
|
|
144 |
unicode-ident@1.0.4
|
|
145 |
unicode-normalization@0.1.22
|
|
146 |
unicode-width@0.1.10
|
|
147 |
url@2.3.1
|
|
148 |
vcpkg@0.2.15
|
|
149 |
version_check@0.9.4
|
|
150 |
wait-timeout@0.2.0
|
|
151 |
walkdir@2.3.2
|
|
152 |
wasi@0.11.0+wasi-snapshot-preview1
|
|
153 |
wild@2.1.0
|
|
154 |
winapi-i686-pc-windows-gnu@0.4.0
|
|
155 |
winapi-util@0.1.5
|
|
156 |
winapi-x86_64-pc-windows-gnu@0.4.0
|
|
157 |
winapi@0.3.9
|
|
158 |
windows-sys@0.42.0
|
|
159 |
windows-sys@0.45.0
|
|
160 |
windows-targets@0.42.1
|
|
161 |
windows_aarch64_gnullvm@0.42.1
|
|
162 |
windows_aarch64_msvc@0.42.1
|
|
163 |
windows_i686_gnu@0.42.1
|
|
164 |
windows_i686_msvc@0.42.1
|
|
165 |
windows_x86_64_gnu@0.42.1
|
|
166 |
windows_x86_64_gnullvm@0.42.1
|
|
167 |
windows_x86_64_msvc@0.42.1
|
|
168 |
xml-rs@0.8.4
|
|
169 |
yaml-rust@0.4.5
|
152 |
170 |
"
|
153 |
171 |
|
154 |
|
inherit bash-completion-r1 cargo
|
|
172 |
inherit cargo shell-completion
|
155 |
173 |
|
156 |
174 |
DESCRIPTION="cat(1) clone with syntax highlighting and Git integration"
|
157 |
175 |
HOMEPAGE="https://github.com/sharkdp/bat"
|
158 |
176 |
SRC_URI="
|
159 |
177 |
https://github.com/sharkdp/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
160 |
|
$(cargo_crate_uris)
|
|
178 |
${CARGO_CRATE_URIS}
|
161 |
179 |
"
|
162 |
180 |
|
163 |
181 |
LICENSE="|| ( MIT Apache-2.0 )"
|
164 |
182 |
# Dependent crate licenses
|
165 |
|
LICENSE+=" Apache-2.0 BSD-2 BSD CC0-1.0 LGPL-3+ MIT"
|
|
183 |
LICENSE+=" Apache-2.0 BSD-2 BSD CC0-1.0 LGPL-3+ MIT Unicode-DFS-2016"
|
166 |
184 |
SLOT="0"
|
167 |
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
|
|
185 |
KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
|
168 |
186 |
|
169 |
187 |
BDEPEND="virtual/pkgconfig"
|
170 |
188 |
DEPEND="
|
... | ... | |
185 |
203 |
export RUSTONIG_SYSTEM_LIBONIG=1
|
186 |
204 |
export LIBGIT2_SYS_USE_PKG_CONFIG=1
|
187 |
205 |
export PKG_CONFIG_ALLOW_CROSS=1
|
|
206 |
sed -i -e 's/strip = true/strip = false/g' Cargo.toml || die
|
188 |
207 |
}
|
189 |
208 |
|
190 |
209 |
src_install() {
|
... | ... | |
198 |
217 |
doman assets/manual/bat.1
|
199 |
218 |
|
200 |
219 |
newbashcomp assets/completions/${PN}.bash ${PN}
|
201 |
|
|
202 |
|
insinto /usr/share/zsh/site-functions
|
203 |
|
newins assets/completions/${PN}.zsh _${PN}
|
204 |
|
|
205 |
|
insinto /usr/share/fish/vendor_completions.d
|
206 |
|
doins assets/completions/${PN}.fish
|
|
220 |
newzshcomp assets/completions/${PN}.zsh _${PN}
|
|
221 |
dofishcomp assets/completions/${PN}.fish
|
207 |
222 |
}
|