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

# Autogenerated by pycargoebuild 0.15.0

EAPI=8

CRATES="
	aho-corasick@1.1.5
	arbitrary@1.5.0
	arraydeque@0.5.1
	autocfg@1.5.1
	base64@0.22.1
	bitflags@2.13.2
	bstr@1.13.1
	bumpalo@3.14.0
	bytes@1.12.1
	cc@1.4.0
	cfg-if@1.0.5
	cfg_aliases@0.2.2
	ciborium-io@0.2.2
	ciborium-ll@0.2.2
	clipboard-win@5.4.3
	codesnake@0.3.0
	console_log@1.1.0
	crunchy@0.2.4
	dirs-sys@0.5.0
	dirs@7.0.0
	dyn-clone@1.0.20
	env_logger@0.10.2
	equivalent@1.0.3
	errno@0.3.15
	error-code@3.4.0
	fastrand@2.5.0
	find-msvc-tools@0.1.15
	foldhash@0.1.5
	getrandom@0.3.3
	half@2.4.1
	hashbrown@0.15.5
	hifijson@0.5.1
	indexmap@2.10.0
	itoa@1.0.19
	jiff-core@0.1.8
	jiff-static@0.2.46
	jiff-tzdb-platform@0.1.3
	jiff-tzdb@0.1.10
	jiff@0.2.46
	js-sys@0.3.82
	libc@0.2.191
	libm@0.2.16
	libmimalloc-sys@0.1.49
	libredox@0.1.25
	linux-raw-sys@0.12.1
	log@0.4.29
	memchr@2.8.3
	memmap2@0.9.12
	mimalloc@0.1.52
	nix@0.31.3
	num-bigint@0.4.8
	num-integer@0.1.47
	num-traits@0.2.19
	once_cell@1.21.4
	option-ext@0.2.0
	portable-atomic-util@0.2.8
	portable-atomic@1.15.0
	proc-macro2@1.0.106
	quote@1.0.41
	r-efi@5.3.0
	redox_users@0.5.3
	regex-automata@0.4.18
	regex-bites@0.1.6
	rustix@1.1.6
	rustversion@1.0.23
	rustyline@18.0.1
	ryu@1.0.20
	saphyr-parser@0.0.8
	self_cell@1.3.0
	serde@1.0.228
	serde_core@1.0.228
	serde_derive@1.0.228
	serde_json@1.0.149
	shlex@2.0.1
	smallvec@1.16.5
	syn@2.0.108
	tempfile@3.27.0
	thiserror-impl@2.0.18
	thiserror@2.0.18
	toml-span@0.7.2
	typed-arena@2.0.2
	unicode-ident@1.0.18
	unicode-segmentation@1.13.3
	unicode-width@0.1.14
	unicode-width@0.2.3
	urlencoding@2.1.3
	utf8parse@0.2.2
	wasi@0.14.2+wasi-0.2.4
	wasm-bindgen-macro-support@0.2.105
	wasm-bindgen-macro@0.2.105
	wasm-bindgen-shared@0.2.105
	wasm-bindgen@0.2.105
	web-sys@0.3.82
	windows-link@0.2.1
	windows-sys@0.61.2
	wit-bindgen-rt@0.39.0
	xmlparser@0.13.6
	zmij@1.0.23
"

#RUST_MIN_VER="1.70.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}
"
S="${WORKDIR}/${PN}-${PV/_/-}"

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

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

DOCS=(
	README.md
	CONTRIBUTING.md
	examples/
	docs/
)

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

	default
}
