# Copyright 2020 Heinrich Kruger # Distributed under the terms of the GNU General Public License v2 EAPI=7 inherit cargo bash-completion-r1 CRATES=" ansi_term-0.11.0 approx-0.3.2 atty-0.2.14 autocfg-0.1.7 autocfg-1.0.0 bitflags-1.2.1 bstr-0.2.13 byteorder-1.3.4 cfg-if-0.1.10 clap-2.33.1 cloudabi-0.0.3 colored-1.9.3 console-0.11.3 csv-1.1.3 csv-core-0.1.10 encode_unicode-0.3.6 fuchsia-cprng-0.1.1 getrandom-0.1.14 hermit-abi-0.1.13 hyperfine-1.10.0 indicatif-0.14.0 itoa-0.4.5 lazy_static-1.4.0 libc-0.2.70 memchr-2.3.3 num-0.2.1 num-bigint-0.2.6 num-complex-0.2.4 num-integer-0.1.42 num-iter-0.1.40 num-rational-0.2.4 num-traits-0.2.11 number_prefix-0.3.0 ppv-lite86-0.2.8 proc-macro2-1.0.17 quote-1.0.6 rand-0.6.5 rand-0.7.3 rand_chacha-0.1.1 rand_chacha-0.2.2 rand_core-0.3.1 rand_core-0.4.2 rand_core-0.5.1 rand_hc-0.1.0 rand_hc-0.2.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 regex-1.3.7 regex-automata-0.1.9 regex-syntax-0.6.17 rust_decimal-1.6.0 ryu-1.0.4 serde-1.0.110 serde_derive-1.0.110 serde_json-1.0.53 statistical-1.0.0 strsim-0.8.0 syn-1.0.24 term_size-0.3.2 terminal_size-0.1.12 termios-0.3.2 textwrap-0.11.0 unicode-width-0.1.7 unicode-xid-0.2.0 vec_map-0.8.2 version_check-0.9.2 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 " DESCRIPTION="A command-line benchmarking tool" HOMEPAGE="https://github.com/sharkdp/hyperfine" SRC_URI="$(cargo_crate_uris ${CRATES})" RESTRICT="mirror" LICENSE="Apache-2.0 MIT" SLOT="0" KEYWORDS="~amd64" IUSE="+bash-completion zsh-completion fish-completion" DEPEND="" RDEPEND=" bash-completion? ( app-shells/bash-completion ) zsh-completion? ( app-shells/zsh-completions ) fish-completion? ( app-shells/fish ) " BDEPEND=">=virtual/rust-1.31.0" src_install() { cargo_src_install insinto /usr/share/hyperfine/scripts doins -r scripts/* doman doc/hyperfine.1 einstalldocs if use bash-completion; then dobashcomp target/release/build/"${PN}"-*/out/"${PN}".bash fi if use fish-completion; then insinto /usr/share/fish/vendor_completions.d/ doins target/release/build/"${PN}"-*/out/"${PN}".fish fi if use zsh-completion; then insinto /usr/share/zsh/vendor_completions.d/ doins target/release/build/"${PN}"-*/out/_"${PN}" fi } pkg_postinst() { elog "You will need to install both 'numpy' and 'matplotlib' to make use of the scripts in '${EROOT%/}/usr/share/hyperfine/scripts'." }