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

# Autogenerated by pycargoebuild 0.10

EAPI=8

CRATES="
	aho-corasick@0.7.18
	atty@0.2.14
	autocfg@1.0.1
	beef@0.5.1
	bitflags@1.2.1
	block@0.1.6
	cc@1.0.69
	cfg-if@0.1.10
	cfg-if@1.0.0
	clap@4.0.26
	clap_derive@4.0.21
	clap_lex@0.3.3
	clipboard-win@2.2.0
	clipboard-win@4.2.1
	clipboard@0.5.0
	dirs-next@2.0.0
	dirs-sys-next@0.1.2
	endian-type@0.1.2
	error-code@2.3.0
	fd-lock@3.0.0
	fnv@1.0.7
	getrandom@0.2.3
	heck@0.4.0
	hermit-abi@0.1.18
	indoc@1.0.4
	isatty@0.1.9
	lazy_static@1.4.0
	libc-stdhandle@0.1.0
	libc@0.2.99
	linked-hash-map@0.5.4
	log@0.4.14
	logos-derive@0.12.0
	logos@0.12.0
	malloc_buf@0.0.6
	memchr@2.4.1
	memoffset@0.6.4
	nibble_vec@0.1.0
	nix@0.22.1
	numtoa@0.1.0
	objc-foundation@0.1.1
	objc@0.2.7
	objc_id@0.1.1
	once_cell@1.18.0
	os_str_bytes@6.0.0
	proc-macro-error-attr@1.0.4
	proc-macro-error@1.0.4
	proc-macro2@1.0.63
	quote@1.0.9
	radix_trie@0.2.1
	redox_syscall@0.1.57
	redox_syscall@0.2.6
	redox_termios@0.1.2
	redox_users@0.4.0
	regex-syntax@0.6.25
	regex@1.5.5
	rustyline@9.0.0
	scopeguard@1.1.0
	signal-hook-registry@1.3.0
	signal-hook@0.3.8
	smallvec@1.6.1
	str-buf@1.0.5
	strsim@0.10.0
	syn@1.0.86
	termcolor@1.1.2
	termion@1.5.6
	unicode-ident@1.0.10
	unicode-segmentation@1.7.1
	unicode-width@0.1.8
	unicode-xid@0.2.1
	unindent@0.1.8
	utf8-ranges@1.0.4
	utf8parse@0.2.0
	version_check@0.9.3
	wasi@0.10.2+wasi-snapshot-preview1
	winapi-i686-pc-windows-gnu@0.4.0
	winapi-util@0.1.5
	winapi-x86_64-pc-windows-gnu@0.4.0
	winapi@0.3.9
	x11-clipboard@0.3.3
	xcb@0.8.2
	yaml-rust@0.4.5
"

inherit cargo

DESCRIPTION="A command-line JSON viewer"
HOMEPAGE="https://jless.io"
SRC_URI="
	https://github.com/PaulJuliusMartinez/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	${CARGO_CRATE_URIS}
"

LICENSE="MIT"
# Dependent crate licenses
LICENSE+=" Boost-1.0 MIT Unicode-DFS-2016"
SLOT="0"
KEYWORDS="~amd64"

BDEPEND=">=virtual/rust-1.67"

DOCS=( {CHANGELOG,README,SEARCH}.md )

# rust does not use *FLAGS from make.conf, silence portage warning
# update with proper path to binaries this crate installs, omit leading /
QA_FLAGS_IGNORED="usr/bin/${PN}"

src_install() {
	cargo_src_install
	einstalldocs
}