# Copyright 2017-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# Auto-Generated by cargo-ebuild 0.3.1

EAPI=7

CRATES="
aho-corasick@0.7.15
ansi_term@0.11.0
arrayref@0.3.6
arrayvec@0.4.12
arrayvec@0.5.1
atty@0.2.14
autocfg@1.0.0
base64@0.11.0
bitflags@1.2.1
blake2b_simd@0.5.10
block-buffer@0.7.3
block-padding@0.1.5
bstr@0.2.13
byte-tools@0.3.1
bytecount@0.6.0
byteorder@1.3.4
cc@1.0.54
cfg-if@0.1.10
cfg-if@1.0.0
chrono@0.4.11
chrono-tz@0.5.2
clap@2.33.3
cloudabi@0.1.0
const_fn@0.4.2
constant_time_eq@0.1.5
crossbeam-channel@0.5.0
crossbeam-deque@0.8.0
crossbeam-epoch@0.9.1
crossbeam-utils@0.7.2
crossbeam-utils@0.8.0
dashmap@4.0.1
deunicode@0.4.3
digest@0.8.1
dirs@3.0.1
dirs-sys@0.3.5
dtoa@0.4.6
either@1.5.3
encoding_rs@0.8.23
encoding_rs_io@0.1.7
env_logger@0.8.2
fake-simd@0.1.2
fnv@1.0.7
generic-array@0.12.3
getrandom@0.1.14
getrandom@0.2.0
git2@0.13.15
globset@0.4.5
globwalk@0.8.1
grep-matcher@0.1.4
grep-searcher@0.1.7
half@1.6.0
hermit-abi@0.1.14
hex@0.4.2
humansize@1.1.0
humantime@2.0.1
idna@0.2.0
ignore@0.4.17
instant@0.1.5
itoa@0.4.6
jobserver@0.1.21
lazy_static@1.4.0
libc@0.2.71
libgit2-sys@0.12.17+1.1.0
libz-sys@1.1.0
linked-hash-map@0.5.3
lock_api@0.4.0
log@0.4.11
maplit@1.0.2
matches@0.1.8
memchr@2.3.3
memmap@0.7.0
memoffset@0.6.1
nodrop@0.1.14
num-format@0.4.0
num-integer@0.1.43
num-traits@0.2.12
num_cpus@1.13.0
once_cell@1.5.2
opaque-debug@0.2.3
parking_lot@0.11.1
parking_lot_core@0.8.0
parse-zoneinfo@0.3.0
percent-encoding@2.1.0
pest@2.1.3
pest_derive@2.1.0
pest_generator@2.1.3
pest_meta@2.1.3
pkg-config@0.3.17
ppv-lite86@0.2.8
proc-macro2@1.0.18
quote@1.0.7
rand@0.7.3
rand@0.8.0
rand_chacha@0.2.2
rand_chacha@0.3.0
rand_core@0.5.1
rand_core@0.6.0
rand_hc@0.2.0
rand_hc@0.3.0
rayon@1.5.0
rayon-core@1.9.0
redox_syscall@0.1.56
redox_users@0.3.4
regex@1.4.3
regex-syntax@0.6.22
remove_dir_all@0.5.3
rust-argon2@0.7.0
ryu@1.0.5
same-file@1.0.6
scopeguard@1.1.0
serde@1.0.118
serde_cbor@0.11.1
serde_derive@1.0.118
serde_json@1.0.61
serde_yaml@0.8.15
sha@1-0.8.2
slug@0.1.4
smallvec@1.4.0
strsim@0.8.0
syn@1.0.33
tempfile@3.1.0
tera@1.6.1
term_size@0.3.2
termcolor@1.1.0
textwrap@0.11.0
thread_local@1.0.1
time@0.1.43
tinyvec@0.3.3
toml@0.5.8
typenum@1.12.0
ucd-trie@0.1.3
unic-char-property@0.9.0
unic-char-range@0.9.0
unic-common@0.9.0
unic-segment@0.9.0
unic-ucd-segment@0.9.0
unic-ucd-version@0.9.0
unicode-bidi@0.3.4
unicode-normalization@0.1.13
unicode-width@0.1.7
unicode-xid@0.2.0
url@2.1.1
vcpkg@0.2.10
vec_map@0.8.2
walkdir@2.3.1
wasi@0.9.0+wasi-snapshot-preview1
winapi@0.3.8
winapi-i686-pc-windows-gnu@0.4.0
winapi-util@0.1.5
winapi-x86_64-pc-windows-gnu@0.4.0
yaml-rust@0.4.5
"

inherit cargo

DESCRIPTION="Count your code, quickly"
HOMEPAGE="https://tokei.rs"
SRC_URI="https://github.com/XAMPPRocky/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
	${CARGO_CRATE_URIS}"

LICENSE="BSD BSD-2 CC0-1.0 MIT ZLIB || ( Apache-2.0 Boost-1.0 )"
SLOT="0"
KEYWORDS="~amd64 ~x86"

QA_FLAGS_IGNORED="usr/bin/tokei"

src_compile() {
	cargo_src_compile --features all
}

src_install() {
	cargo_src_install --features all

	dodoc CHANGELOG.md README.md tokei.example.toml
}