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

# Auto-Generated by cargo-ebuild 0.5.4-r1

EAPI=8

CRATES="
	ansi_term@0.11.0
	atty@0.2.14
	bitflags@1.3.2
	byteorder@1.4.3
	cfg-if@1.0.0
	clap@2.33.3
	convert_case@0.4.0
	cssparser@0.27.2
	cssparser-macros@0.6.0
	derive_more@0.99.16
	dtoa@0.4.8
	dtoa-short@0.3.3
	form_urlencoded@1.0.1
	futf@0.1.4
	fxhash@0.2.1
	getrandom@0.1.16
	hermit-abi@0.1.19
	html5ever@0.25.1
	idna@0.2.3
	itoa@0.4.8
	kuchiki@0.8.1
	lazy_static@1.4.0
	libc@0.2.101
	log@0.4.14
	mac@0.1.1
	markup5ever@0.10.1
	matches@0.1.9
	new_debug_unreachable@1.0.4
	nodrop@0.1.14
	percent-encoding@2.1.0
	pest@2.1.3
	phf@0.8.0
	phf_codegen@0.8.0
	phf_generator@0.8.0
	phf_macros@0.8.0
	phf_shared@0.8.0
	ppv-lite86@0.2.10
	precomputed-hash@0.1.1
	proc-macro-hack@0.5.19
	proc-macro2@1.0.29
	quote@1.0.9
	rand@0.7.3
	rand_chacha@0.2.2
	rand_core@0.5.1
	rand_hc@0.2.0
	rand_pcg@0.2.1
	rustc_version@0.3.3
	selectors@0.22.0
	semver@0.11.0
	semver-parser@0.10.2
	serde@1.0.130
	servo_arc@0.1.1
	siphasher@0.3.7
	smallvec@1.6.1
	stable_deref_trait@1.2.0
	string_cache@0.8.1
	string_cache_codegen@0.5.1
	strsim@0.8.0
	syn@1.0.76
	tendril@0.4.2
	textwrap@0.11.0
	thin-slice@0.1.1
	tinyvec@1.3.1
	tinyvec_macros@0.1.0
	ucd-trie@0.1.3
	unicode-bidi@0.3.6
	unicode-normalization@0.1.19
	unicode-width@0.1.8
	unicode-xid@0.2.2
	url@2.2.2
	utf-8@0.7.6
	vec_map@0.8.2
	wasi@0.9.0+wasi-snapshot-preview1
	winapi@0.3.9
	winapi-i686-pc-windows-gnu@0.4.0
	winapi-x86_64-pc-windows-gnu@0.4.0
"

inherit cargo

DESCRIPTION="Like jq, but for HTML."
# Double check the homepage as the cargo_metadata crate
# does not provide this value so instead repository is used
HOMEPAGE="https://github.com/mgdm/htmlq"
SRC_URI="
	https://github.com/mgdm/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
	${CARGO_CRATE_URIS}
"

LICENSE="MIT"
# Dependent crate licenses
LICENSE+=" MIT MPL-2.0"
SLOT="0"
KEYWORDS="~amd64"

# 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}"