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

# Auto-Generated by cargo-ebuild 0.3.1

EAPI=7

CRATES="
ansi_term-0.11.0
assert_cmd-1.0.1
atty-0.2.11
bitflags-1.0.4
clap-2.32.0
difference-2.0.0
doc-comment-0.3.3
libc-0.2.47
predicates-1.0.5
predicates-core-1.0.0
predicates-tree-1.0.0
redox_syscall-0.1.50
redox_termios-0.1.1
strsim-0.7.0
termion-1.5.1
textwrap-0.10.0
treeline-0.1.0
unicode-width-0.1.5
vec_map-0.8.1
wait-timeout-0.2.0
winapi-0.3.6
winapi-i686-pc-windows-gnu-0.4.0
winapi-x86_64-pc-windows-gnu-0.4.0
"

inherit cargo

DESCRIPTION="Futuristic take on hexdump"
HOMEPAGE="https://github.com/sitkevij/hex"
SRC_URI="https://github.com/sitkevij/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
	$(cargo_crate_uris ${CRATES})"
# Prevent portage from trying to fetch bunch of *.crate from mirror despite they are not mirrored.
RESTRICT="mirror"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=""
RDEPEND=""

QA_FLAGS_IGNORED="usr/bin/hx"

src_install() {
	cargo_src_install

	dodoc README.md
}
