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

EAPI=8

inherit cmake

DESCRIPTION="fast JSON processing from the command line with simdjson"
HOMEPAGE="https://github.com/simdjson/sjq"
SRC_URI="https://github.com/simdjson/sjq/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="|| ( Apache-2.0 MIT ) MIT"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="
	>=dev-libs/simdjson-5.3.0:=
"
RDEPEND="${DEPEND}"

src_configure() {
	local mycmakeargs=(
		-DSJQ_SYSTEM_SIMDJSON:BOOL=ON
		-DSJQ_WERROR:BOOL=OFF
		-DSJQ_SANITIZE:BOOL=OFF
		-DSJQ_FUZZING:BOOL=OFF
	)

	cmake_src_configure
}