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

# Autogenerated by pycargoebuild 0.13.4

EAPI=8

CRATES="
	aho-corasick@1.1.3
	autocfg@1.4.0
	base64@0.22.1
	bitflags@2.7.0
	bumpalo@3.14.0
	cc@1.2.9
	cfg-if@1.0.0
	chrono@0.4.39
	codesnake@0.2.1
	console_log@1.0.0
	dyn-clone@1.0.17
	env_logger@0.10.2
	equivalent@1.0.1
	errno@0.3.10
	fastrand@2.3.0
	foldhash@0.1.4
	getrandom@0.2.15
	hashbrown@0.15.2
	hermit-abi@0.4.0
	hifijson@0.2.2
	indexmap@2.7.0
	is-terminal@0.4.13
	itoa@1.0.14
	js-sys@0.3.77
	libc@0.2.169
	libm@0.2.11
	libmimalloc-sys@0.1.39
	linux-raw-sys@0.4.15
	log@0.4.25
	memchr@2.7.4
	memmap2@0.9.5
	mimalloc@0.1.43
	num-traits@0.2.19
	once_cell@1.20.2
	proc-macro2@1.0.93
	quote@1.0.38
	regex-lite@0.1.6
	rustix@0.38.43
	rustversion@1.0.19
	ryu@1.0.18
	serde@1.0.217
	serde_derive@1.0.217
	serde_json@1.0.135
	shlex@1.3.0
	syn@2.0.96
	tempfile@3.15.0
	typed-arena@2.0.2
	unicode-ident@1.0.14
	unicode-width@0.1.13
	urlencoding@2.1.3
	wasi@0.11.0+wasi-snapshot-preview1
	wasm-bindgen-backend@0.2.100
	wasm-bindgen-macro-support@0.2.100
	wasm-bindgen-macro@0.2.100
	wasm-bindgen-shared@0.2.100
	wasm-bindgen@0.2.100
	web-sys@0.3.77
	windows-sys@0.52.0
	windows-sys@0.59.0
	windows-targets@0.52.6
	windows_aarch64_gnullvm@0.52.6
	windows_aarch64_msvc@0.52.6
	windows_i686_gnu@0.52.6
	windows_i686_gnullvm@0.52.6
	windows_i686_msvc@0.52.6
	windows_x86_64_gnu@0.52.6
	windows_x86_64_gnullvm@0.52.6
	windows_x86_64_msvc@0.52.6
	yansi@1.0.1
"

#RUST_MIN_VER="1.65.0"
inherit cargo

DESCRIPTION="Just another JSON query tool"
HOMEPAGE="https://github.com/01mf02/jaq"
SRC_URI="
	https://github.com/01mf02/jaq/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz
	${CARGO_CRATE_URIS}
"

LICENSE="MIT"
# Dependent crate licenses
LICENSE+="
	MIT Unicode-3.0 ZLIB
	|| ( Apache-2.0 Boost-1.0 )
"
SLOT="0"
KEYWORDS="~amd64"

QA_FLAGS_IGNORED="usr/bin/jaq"
QA_PRESTRIPPED="usr/bin/jaq"

DOCS=(
	README.md
	examples/
)

src_install() {
	pushd "${S}/jaq" >/dev/null || die
	cargo_src_install
	popd >/dev/null || die

	default
}