PORTNAME=	jql
DISTVERSIONPREFIX=	jql-v
DISTVERSION=	8.1.2
PORTREVISION=	3
CATEGORIES=	textproc

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	JSON Query Language CLI tool built with Rust
WWW=		https://github.com/yamafaktory/jql

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE-MIT

BROKEN_i386=	fails to link: ld: error: undefined symbol: __atomic_load

USES=		cargo

USE_GITHUB=	yes
GH_ACCOUNT=	yamafaktory

CARGO_CRATES=	aho-corasick-1.1.4 \
		alloca-0.4.0 \
		anes-0.1.6 \
		anstream-1.0.0 \
		anstyle-1.0.13 \
		anstyle-parse-1.0.0 \
		anstyle-query-1.1.5 \
		anstyle-wincon-3.0.11 \
		anyhow-1.0.102 \
		ar_archive_writer-0.2.0 \
		autocfg-1.5.0 \
		bumpalo-3.19.1 \
		bytes-1.11.1 \
		cast-0.3.0 \
		cc-1.2.53 \
		cfg-if-1.0.4 \
		ciborium-0.2.2 \
		ciborium-io-0.2.2 \
		ciborium-ll-0.2.2 \
		clap-4.6.0 \
		clap_builder-4.6.0 \
		clap_derive-4.6.0 \
		clap_lex-1.1.0 \
		colorchoice-1.0.4 \
		colored_json-5.0.0 \
		criterion-0.8.2 \
		criterion-plot-0.8.2 \
		crossbeam-deque-0.8.6 \
		crossbeam-epoch-0.9.18 \
		crossbeam-utils-0.8.21 \
		crunchy-0.2.4 \
		either-1.15.0 \
		equivalent-1.0.2 \
		find-msvc-tools-0.1.8 \
		half-2.7.1 \
		hashbrown-0.16.1 \
		heck-0.5.0 \
		indexmap-2.13.0 \
		is_terminal_polyfill-1.70.2 \
		itertools-0.13.0 \
		itoa-1.0.17 \
		js-sys-0.3.85 \
		libc-0.2.180 \
		libmimalloc-sys-0.1.44 \
		memchr-2.7.6 \
		mimalloc-0.1.48 \
		num-traits-0.2.19 \
		object-0.32.2 \
		once_cell-1.21.3 \
		once_cell_polyfill-1.70.2 \
		oorandom-11.1.5 \
		page_size-0.6.0 \
		pin-project-lite-0.2.16 \
		plotters-0.3.7 \
		plotters-backend-0.3.7 \
		plotters-svg-0.3.7 \
		proc-macro2-1.0.106 \
		psm-0.1.28 \
		quote-1.0.45 \
		rayon-1.11.0 \
		rayon-core-1.13.0 \
		regex-1.12.2 \
		regex-automata-0.4.13 \
		regex-syntax-0.8.8 \
		rustversion-1.0.22 \
		same-file-1.0.6 \
		serde-1.0.228 \
		serde_core-1.0.228 \
		serde_derive-1.0.228 \
		serde_json-1.0.149 \
		serde_stacker-0.1.14 \
		shlex-1.3.0 \
		stacker-0.1.22 \
		strsim-0.11.1 \
		syn-2.0.117 \
		thiserror-2.0.18 \
		thiserror-impl-2.0.18 \
		tinytemplate-1.2.1 \
		tokio-1.50.0 \
		tokio-macros-2.6.0 \
		unicode-ident-1.0.22 \
		utf8parse-0.2.2 \
		walkdir-2.5.0 \
		wasm-bindgen-0.2.108 \
		wasm-bindgen-macro-0.2.108 \
		wasm-bindgen-macro-support-0.2.108 \
		wasm-bindgen-shared-0.2.108 \
		web-sys-0.3.85 \
		winapi-0.3.9 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-util-0.1.11 \
		winapi-x86_64-pc-windows-gnu-0.4.0 \
		windows-link-0.2.1 \
		windows-sys-0.59.0 \
		windows-sys-0.61.2 \
		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 \
		winnow-1.0.0 \
		yansi-1.0.1 \
		zerocopy-0.8.33 \
		zerocopy-derive-0.8.33 \
		zmij-1.0.16
PLIST_FILES=	bin/${PORTNAME}

do-install:
	${INSTALL_PROGRAM} ${WRKDIR}/target/release/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} # otherwise there's error: found a virtual manifest at `xx` instead of a package manifest

.include <bsd.port.mk>
