# Copyright 2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 CRATES=" adler32-1.0.3 aho-corasick-0.7.3 ansi_colours-1.0.1 ansi_term-0.11.0 argon2rs-0.2.5 arrayvec-0.4.10 assert_cmd-0.11.1 atty-0.2.11 autocfg-0.1.2 backtrace-0.3.16 backtrace-sys-0.1.28 base64-0.10.1 bincode-1.1.4 bitflags-1.0.4 blake2-rfc-0.2.18 build_const-0.2.1 byteorder-1.3.1 cc-1.0.37 cfg-if-0.1.9 clap-2.33.0 clicolors-control-1.0.0 cloudabi-0.0.3 console-0.7.5 constant_time_eq-0.1.3 content_inspector-0.2.4 crc-1.8.1 crc32fast-1.2.0 difference-2.0.0 dirs-1.0.5 encode_unicode-0.3.5 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-tradchinese-1.20141219.5 encoding_index_tests-0.1.4 error-chain-0.12.1 escargot-0.4.0 escargot-0.5.0 failure-0.1.5 failure_derive-0.1.5 flate2-1.0.7 fnv-1.0.6 fuchsia-cprng-0.1.1 git2-0.8.0 glob-0.2.11 humantime-1.2.0 idna-0.1.5 itoa-0.4.4 kernel32-sys-0.2.2 lazy_static-1.3.0 lazycell-1.2.1 libc-0.2.54 libgit2-sys-0.7.11 libz-sys-1.0.25 line-wrap-0.1.1 linked-hash-map-0.5.2 lock_api-0.2.0 log-0.4.6 matches-0.1.8 memchr-2.2.0 miniz-sys-0.1.11 miniz_oxide-0.2.1 miniz_oxide_c_api-0.2.1 nodrop-0.1.13 numtoa-0.1.0 onig-4.3.2 onig_sys-69.1.0 parking_lot-0.8.0 parking_lot_core-0.5.0 percent-encoding-1.0.1 pkg-config-0.3.14 plist-0.4.1 predicates-1.0.1 predicates-core-1.0.0 predicates-tree-1.0.0 proc-macro2-0.4.30 quick-error-1.2.2 quote-0.6.12 rand-0.4.6 rand-0.6.5 rand_chacha-0.1.1 rand_core-0.3.1 rand_core-0.4.0 rand_hc-0.1.0 rand_isaac-0.1.1 rand_jitter-0.1.4 rand_os-0.1.3 rand_pcg-0.1.2 rand_xorshift-0.1.1 rdrand-0.4.0 redox_syscall-0.1.54 redox_termios-0.1.1 redox_users-0.3.0 regex-1.1.6 regex-syntax-0.6.6 remove_dir_all-0.5.1 rustc-demangle-0.1.14 rustc_version-0.2.3 ryu-0.2.8 safemem-0.3.0 same-file-1.0.4 scoped_threadpool-0.1.9 scopeguard-1.0.0 semver-0.9.0 semver-parser-0.7.0 serde-1.0.91 serde_derive-1.0.91 serde_json-1.0.39 shell-words-0.1.0 smallvec-0.6.9 strsim-0.8.0 syn-0.15.34 synstructure-0.10.2 syntect-3.2.0 tempdir-0.3.7 term_size-0.3.1 termion-1.5.2 termios-0.3.1 textwrap-0.11.0 thread_local-0.3.6 treeline-0.1.0 ucd-util-0.1.3 unicode-bidi-0.3.4 unicode-normalization-0.1.8 unicode-width-0.1.5 unicode-xid-0.1.0 url-1.7.2 utf8-ranges-1.0.2 vcpkg-0.2.6 vec_map-0.8.1 version_check-0.1.5 walkdir-2.2.7 wild-2.0.1 winapi-0.2.8 winapi-0.3.7 winapi-build-0.1.1 winapi-i686-pc-windows-gnu-0.4.0 winapi-util-0.1.2 winapi-x86_64-pc-windows-gnu-0.4.0 xml-rs-0.8.0 yaml-rust-0.4.3 " inherit cargo DESCRIPTION="A cat(1) clone with wings" HOMEPAGE="https://github.com/sharkdp/bat" SRC_URI="https://github.com/sharkdp/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz $(cargo_crate_uris ${CRATES})" LICENSE="|| ( MIT Apache-2.0 )" SLOT="0" KEYWORDS="~amd64 ~x86" # >app-backup/bacula-9.2[qt5] has file collisions, #686118 DEPEND="sys-libs/zlib" RDEPEND="${DEPEND} !>app-backup/bacula-9.2[qt5]" BDEPEND=">=virtual/rust-1.31.0" DOCS=( README.md doc/alternatives.md ) QA_FLAGS_IGNORED="/usr/bin/bat" src_install() { cargo_src_install --path=. doman doc/bat.1 einstalldocs insinto /usr/share/fish/vendor_completions.d/ doins assets/completions/bat.fish }