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

EAPI=7

CRATES="
ab_glyph_rasterizer-0.1.4
adler-1.0.2
adler32-1.2.0
aho-corasick-0.7.15
ansi_term-0.11.0
anyhow-1.0.38
arbitrary-0.4.7
arg_enum_proc_macro-0.3.1
arrayvec-0.5.2
atty-0.2.14
autocfg-1.0.1
avif-serialize-0.6.5
bitflags-1.2.1
bitstream-io-1.0.0
block-buffer-0.7.3
block-padding-0.1.5
bstr-0.2.15
byte-tools-0.3.1
bytemuck-1.5.1
byteorder-1.4.2
cc-1.0.67
cfg-if-0.1.10
cfg-if-1.0.0
chrono-0.4.19
clap-2.33.3
color_quant-1.1.0
conv-0.3.3
crc32fast-1.2.1
crossbeam-channel-0.5.0
crossbeam-deque-0.8.0
crossbeam-epoch-0.9.3
crossbeam-utils-0.8.3
custom_derive-0.1.7
deflate-0.8.6
digest-0.8.1
either-1.6.1
fake-simd-0.1.2
flate2-1.0.14
fnv-1.0.7
generic-array-0.12.4
getrandom-0.1.16
getrandom-0.2.2
gif-0.11.1
globset-0.4.6
globwalk-0.8.1
heck-0.3.2
hermit-abi-0.1.18
ignore-0.4.17
image-0.23.14
imageproc-0.22.0
imgref-1.7.1
interpolate_name-0.2.3
itertools-0.10.0
itertools-0.9.0
jobserver-0.1.21
jpeg-decoder-0.1.22
lazy_static-1.4.0
libc-0.2.88
libfuzzer-sys-0.3.5
linked-hash-map-0.5.4
log-0.4.14
loop9-0.1.3
maplit-1.0.2
matrixmultiply-0.1.15
memchr-2.3.4
memoffset-0.6.1
miniz_oxide-0.3.7
miniz_oxide-0.4.4
nasm-rs-0.2.0
noop_proc_macro-0.3.0
num-0.1.42
num-0.3.1
num-bigint-0.3.2
num-complex-0.3.1
num-derive-0.3.3
num-integer-0.1.44
num-iter-0.1.42
num-rational-0.3.2
num-traits-0.2.14
num_cpus-1.13.0
once_cell-1.7.2
opaque-debug-0.2.3
open-1.5.1
owned_ttf_parser-0.6.0
parameterized-0.3.1
parameterized-macro-0.3.1
paste-1.0.4
pest-2.1.3
pest_derive-2.1.0
pest_generator-2.1.3
pest_meta-2.1.3
png-0.16.8
ppv-lite86-0.2.10
proc-macro2-1.0.24
quote-1.0.9
rand-0.7.3
rand-0.8.3
rand_chacha-0.2.2
rand_chacha-0.3.0
rand_core-0.5.1
rand_core-0.6.2
rand_distr-0.2.2
rand_hc-0.2.0
rand_hc-0.3.0
rav1e-0.4.0
ravif-0.6.4
rawpointer-0.1.0
rayon-1.5.0
rayon-core-1.9.0
regex-1.4.3
regex-syntax-0.6.22
rgb-0.8.25
rulinalg-0.4.2
rust_hawktracer-0.7.0
rust_hawktracer_normal_macro-0.4.1
rust_hawktracer_proc_macro-0.4.1
rustc_version-0.3.3
rusttype-0.9.2
same-file-1.0.6
scoped_threadpool-0.1.9
scopeguard-1.1.0
semver-0.11.0
semver-parser-0.10.2
sha-1-0.8.2
simd_helpers-0.1.0
strsim-0.8.0
strum-0.20.0
strum_macros-0.20.1
syn-1.0.62
textwrap-0.11.0
thiserror-1.0.24
thiserror-impl-1.0.24
thread_local-1.1.3
tiff-0.6.1
time-0.1.43
ttf-parser-0.6.2
typenum-1.12.0
ucd-trie-0.1.3
unicode-segmentation-1.7.1
unicode-width-0.1.8
unicode-xid-0.2.1
v_frame-0.2.0
vec_map-0.8.2
vergen-3.2.0
walkdir-2.3.1
wasi-0.10.2+wasi-snapshot-preview1
wasi-0.9.0+wasi-snapshot-preview1
weezl-0.1.4
which-4.0.2
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
xshell-0.1.9
xshell-macros-0.1.9
zip-0.5.11
"

inherit cargo

S="${WORKDIR}/${P}"
DESCRIPTION="Accessible image processing and conversion from the terminal tool."
HOMEPAGE="https://github.com/foresterre/sic"
SRC_URI="https://www.github.com/foresterre/sic/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" $(cargo_crate_uris ${CRATES})"
RESTRICT="mirror"
LICENSE="Apache-2.0 MIT"
SLOT="0"
KEYWORDS="~amd64"
QA_FLAGS_IGNORED="usr/bin/sic"
DEPEND=">=dev-lang/nasm-2.14.02"
