PORTNAME=	prql
DISTVERSION=	0.13.4
PORTREVISION=	4
CATEGORIES=	lang databases
PKGNAMESUFFIX=	-compiler

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Language for transforming data: powerful, pipelined SQL replacement
WWW=		https://prql-lang.org \
		https://github.com/PRQL/prql

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cargo python:build

USE_GITHUB=	yes
GH_ACCOUNT=	PRQL

CARGO_CRATES=	addr2line-0.21.0 \
		adler-1.0.2 \
		ahash-0.7.8 \
		ahash-0.8.11 \
		aho-corasick-1.1.3 \
		allocator-api2-0.2.18 \
		android-tzdata-0.1.1 \
		android_system_properties-0.1.5 \
		anes-0.1.6 \
		ansi-to-html-0.2.2 \
		anstream-0.6.18 \
		anstyle-1.0.7 \
		anstyle-parse-0.2.4 \
		anstyle-query-1.0.3 \
		anstyle-wincon-3.0.6 \
		anyhow-1.0.95 \
		ariadne-0.5.0 \
		arrayvec-0.7.4 \
		arrow-53.2.0 \
		arrow-arith-53.2.0 \
		arrow-array-53.2.0 \
		arrow-buffer-53.2.0 \
		arrow-cast-53.2.0 \
		arrow-data-53.2.0 \
		arrow-ord-53.2.0 \
		arrow-row-53.2.0 \
		arrow-schema-53.2.0 \
		arrow-select-53.2.0 \
		arrow-string-53.2.0 \
		async-trait-0.1.80 \
		asynchronous-codec-0.6.2 \
		atoi-2.0.0 \
		autocfg-1.3.0 \
		backtrace-0.3.71 \
		base64-0.21.7 \
		base64-0.22.1 \
		bigdecimal-0.3.1 \
		bigdecimal-0.4.3 \
		bindgen-0.69.4 \
		bitflags-1.3.2 \
		bitflags-2.6.0 \
		bitvec-1.0.1 \
		block-buffer-0.10.4 \
		borsh-1.5.0 \
		borsh-derive-1.5.0 \
		bstr-1.9.1 \
		btoi-0.4.3 \
		bufstream-0.1.4 \
		bumpalo-3.16.0 \
		bytecheck-0.6.12 \
		bytecheck_derive-0.6.12 \
		byteorder-1.5.0 \
		bytes-1.6.0 \
		cast-0.3.0 \
		cc-1.2.13 \
		cesu8-1.1.0 \
		cexpr-0.6.0 \
		cfg-if-1.0.0 \
		cfg_aliases-0.1.1 \
		chrono-0.4.39 \
		chumsky-0.9.3 \
		ciborium-0.2.2 \
		ciborium-io-0.2.2 \
		ciborium-ll-0.2.2 \
		clang-sys-1.8.2 \
		clap-2.34.0 \
		clap-4.4.18 \
		clap_builder-4.4.18 \
		clap_complete-4.4.10 \
		clap_complete_command-0.5.1 \
		clap_complete_fig-4.4.2 \
		clap_complete_nushell-0.1.11 \
		clap_derive-4.4.7 \
		clap_lex-0.6.0 \
		clio-0.3.5 \
		cmake-0.1.50 \
		color-eyre-0.6.3 \
		color-spantrace-0.2.1 \
		colorchoice-1.0.1 \
		colorchoice-clap-1.0.4 \
		combine-4.6.7 \
		comfy-table-7.1.1 \
		connection-string-0.2.0 \
		connector_arrow-0.6.0 \
		console-0.15.8 \
		console_error_panic_hook-0.1.7 \
		const-random-0.1.18 \
		const-random-macro-0.1.16 \
		core-foundation-0.9.4 \
		core-foundation-sys-0.8.6 \
		cpufeatures-0.2.12 \
		crc32fast-1.4.2 \
		criterion-0.5.1 \
		criterion-plot-0.5.0 \
		crossbeam-0.8.4 \
		crossbeam-channel-0.5.13 \
		crossbeam-deque-0.8.5 \
		crossbeam-epoch-0.9.18 \
		crossbeam-queue-0.3.11 \
		crossbeam-utils-0.8.20 \
		crunchy-0.2.2 \
		crypto-common-0.1.6 \
		csv-1.3.1 \
		csv-core-0.1.11 \
		darling-0.20.9 \
		darling_core-0.20.9 \
		darling_macro-0.20.9 \
		dbus-0.9.7 \
		deranged-0.3.11 \
		derive_builder-0.20.0 \
		derive_builder_core-0.20.0 \
		derive_builder_macro-0.20.0 \
		derive_utils-0.14.1 \
		digest-0.10.7 \
		duckdb-1.1.1 \
		dyn-clone-1.0.17 \
		either-1.12.0 \
		encode_unicode-0.3.6 \
		encoding_rs-0.8.34 \
		enum-as-inner-0.6.1 \
		enumflags2-0.7.9 \
		enumflags2_derive-0.7.9 \
		env_filter-0.1.2 \
		env_logger-0.11.5 \
		equivalent-1.0.1 \
		errno-0.3.9 \
		eyre-0.6.12 \
		fallible-iterator-0.2.0 \
		fallible-iterator-0.3.0 \
		fallible-streaming-iterator-0.1.9 \
		fastrand-2.1.1 \
		filetime-0.2.23 \
		flate2-1.0.30 \
		fnv-1.0.7 \
		foreign-types-0.3.2 \
		foreign-types-shared-0.1.1 \
		form_urlencoded-1.2.1 \
		frunk-0.4.2 \
		frunk_core-0.4.2 \
		frunk_derives-0.4.2 \
		frunk_proc_macro_helpers-0.1.2 \
		frunk_proc_macros-0.1.2 \
		fsevent-sys-4.1.0 \
		funty-2.0.0 \
		futures-0.3.31 \
		futures-channel-0.3.31 \
		futures-core-0.3.31 \
		futures-executor-0.3.31 \
		futures-io-0.3.31 \
		futures-macro-0.3.31 \
		futures-sink-0.3.31 \
		futures-task-0.3.31 \
		futures-timer-3.0.3 \
		futures-util-0.3.31 \
		generic-array-0.14.7 \
		getrandom-0.2.15 \
		getrandom-0.3.1 \
		getset-0.1.2 \
		gimli-0.28.1 \
		glob-0.3.2 \
		globset-0.4.15 \
		half-2.4.1 \
		handlebars-6.2.0 \
		hashbrown-0.12.3 \
		hashbrown-0.14.5 \
		hashbrown-0.15.0 \
		hashlink-0.9.1 \
		heck-0.4.1 \
		heck-0.5.0 \
		hermit-abi-0.3.9 \
		hermit-abi-0.4.0 \
		hex-0.4.3 \
		hmac-0.12.1 \
		humantime-2.1.0 \
		iana-time-zone-0.1.60 \
		iana-time-zone-haiku-0.1.2 \
		ident_case-1.0.1 \
		idna-0.5.0 \
		indenter-0.3.3 \
		indexmap-2.6.0 \
		indoc-2.0.5 \
		inotify-0.10.2 \
		inotify-sys-0.1.5 \
		insta-1.41.1 \
		insta-cmd-0.6.0 \
		instant-0.1.13 \
		inventory-0.3.15 \
		io-enum-1.1.3 \
		is-terminal-0.4.15 \
		is_terminal_polyfill-1.70.0 \
		itertools-0.10.5 \
		itertools-0.13.0 \
		itoa-1.0.11 \
		jni-0.21.1 \
		jni-sys-0.3.0 \
		jobserver-0.1.31 \
		js-sys-0.3.74 \
		kqueue-1.0.8 \
		kqueue-sys-1.0.4 \
		lazy_static-1.4.0 \
		lazycell-1.3.0 \
		lexical-core-1.0.2 \
		lexical-parse-float-1.0.2 \
		lexical-parse-integer-1.0.2 \
		lexical-util-1.0.3 \
		lexical-write-float-1.0.2 \
		lexical-write-integer-1.0.2 \
		libc-0.2.169 \
		libdbus-sys-0.2.5 \
		libduckdb-sys-1.1.1 \
		libloading-0.8.3 \
		libm-0.2.8 \
		libsqlite3-sys-0.30.1 \
		libz-sys-1.1.18 \
		linked-hash-map-0.5.6 \
		linux-raw-sys-0.4.14 \
		lock_api-0.4.12 \
		log-0.4.25 \
		lru-0.12.3 \
		md-5-0.10.6 \
		mdbook-0.4.44 \
		mdbook-preprocessor-boilerplate-0.1.2 \
		memchr-2.7.4 \
		memoffset-0.9.1 \
		minicov-0.3.5 \
		minijinja-2.7.0 \
		minimal-lexical-0.2.1 \
		miniz_oxide-0.7.3 \
		mio-1.0.1 \
		mysql-25.0.1 \
		mysql-common-derive-0.31.1 \
		mysql_common-0.32.3 \
		named_pipe-0.4.1 \
		native-tls-0.2.12 \
		nom-7.1.3 \
		normpath-1.2.0 \
		notify-7.0.0 \
		notify-types-1.0.0 \
		num-0.4.3 \
		num-bigint-0.4.5 \
		num-complex-0.4.6 \
		num-conv-0.1.0 \
		num-integer-0.1.46 \
		num-iter-0.1.45 \
		num-modular-0.6.1 \
		num-order-1.2.0 \
		num-rational-0.4.2 \
		num-traits-0.2.19 \
		num_threads-0.1.7 \
		object-0.32.2 \
		once_cell-1.19.0 \
		oorandom-11.1.3 \
		opener-0.7.2 \
		openssl-0.10.70 \
		openssl-macros-0.1.1 \
		openssl-probe-0.1.5 \
		openssl-sys-0.9.105 \
		owo-colors-3.5.0 \
		pac_cell-0.1.1 \
		parking_lot-0.12.3 \
		parking_lot_core-0.9.10 \
		pem-3.0.4 \
		percent-encoding-2.3.1 \
		pest-2.7.10 \
		pest_derive-2.7.10 \
		pest_generator-2.7.10 \
		pest_meta-2.7.10 \
		phf-0.11.2 \
		phf_shared-0.11.2 \
		pin-project-lite-0.2.14 \
		pin-utils-0.1.0 \
		pkg-config-0.3.30 \
		portable-atomic-1.6.0 \
		postgres-0.19.10 \
		postgres-protocol-0.6.8 \
		postgres-types-0.2.9 \
		powerfmt-0.2.0 \
		ppv-lite86-0.2.17 \
		pretty-hex-0.3.0 \
		proc-macro-crate-3.2.0 \
		proc-macro-error-1.0.4 \
		proc-macro-error-attr-1.0.4 \
		proc-macro2-1.0.92 \
		psm-0.1.21 \
		ptr_meta-0.1.4 \
		ptr_meta_derive-0.1.4 \
		pulldown-cmark-0.10.3 \
		pulldown-cmark-escape-0.10.1 \
		pulldown-cmark-to-cmark-14.0.1 \
		pyo3-0.22.6 \
		pyo3-build-config-0.22.6 \
		pyo3-ffi-0.22.6 \
		pyo3-macros-0.22.6 \
		pyo3-macros-backend-0.22.6 \
		quote-1.0.37 \
		radium-0.7.0 \
		rand-0.8.5 \
		rand-0.9.0 \
		rand_chacha-0.3.1 \
		rand_chacha-0.9.0 \
		rand_core-0.6.4 \
		rand_core-0.9.0 \
		redox_syscall-0.4.1 \
		redox_syscall-0.5.1 \
		ref-cast-1.0.23 \
		ref-cast-impl-1.0.23 \
		regex-1.11.1 \
		regex-automata-0.4.8 \
		regex-lite-0.1.6 \
		regex-syntax-0.8.5 \
		relative-path-1.9.3 \
		rend-0.4.2 \
		ring-0.17.13 \
		rkyv-0.7.44 \
		rkyv_derive-0.7.44 \
		rstest-0.24.0 \
		rstest_macros-0.24.0 \
		rusqlite-0.32.1 \
		rust_decimal-1.35.0 \
		rustc-demangle-0.1.24 \
		rustc-hash-1.1.0 \
		rustc_version-0.4.1 \
		rustix-0.38.40 \
		rustler-0.36.1 \
		rustler_codegen-0.36.1 \
		rustls-0.21.12 \
		rustls-native-certs-0.6.3 \
		rustls-pemfile-1.0.4 \
		rustls-webpki-0.101.7 \
		rustversion-1.0.17 \
		ryu-1.0.18 \
		same-file-1.0.6 \
		saturating-0.1.0 \
		schannel-0.1.23 \
		schemars-1.0.0-alpha.17 \
		schemars_derive-1.0.0-alpha.17 \
		scoped-tls-1.0.1 \
		scopeguard-1.2.0 \
		sct-0.7.1 \
		seahash-4.1.0 \
		security-framework-2.11.0 \
		security-framework-sys-2.11.0 \
		semver-1.0.25 \
		serde-1.0.217 \
		serde_derive-1.0.217 \
		serde_derive_internals-0.29.1 \
		serde_json-1.0.138 \
		serde_yaml-0.9.34+deprecated \
		sha1-0.10.6 \
		sha2-0.10.8 \
		sharded-slab-0.1.7 \
		shlex-1.3.0 \
		signal-hook-registry-1.4.2 \
		simdutf8-0.1.4 \
		similar-2.7.0 \
		similar-asserts-1.6.1 \
		siphasher-0.3.11 \
		slab-0.4.9 \
		smallvec-1.13.2 \
		socket2-0.5.7 \
		sqlformat-0.3.5 \
		sqlparser-0.53.0 \
		stacker-0.1.18 \
		static_assertions-1.1.0 \
		stringprep-0.1.5 \
		strsim-0.10.0 \
		strsim-0.11.1 \
		strum-0.25.0 \
		strum-0.26.3 \
		strum-0.27.0 \
		strum_macros-0.25.3 \
		strum_macros-0.26.4 \
		strum_macros-0.27.0 \
		subprocess-0.2.9 \
		subtle-2.5.0 \
		syn-1.0.109 \
		syn-2.0.98 \
		syn_derive-0.1.8 \
		tap-1.0.1 \
		tar-0.4.40 \
		target-lexicon-0.12.14 \
		tempfile-3.17.1 \
		termcolor-1.4.1 \
		terminal_size-0.3.0 \
		test_each_file-0.3.4 \
		textwrap-0.11.0 \
		thiserror-1.0.61 \
		thiserror-impl-1.0.61 \
		thread_local-1.1.8 \
		tiberius-0.12.3 \
		time-0.3.36 \
		time-core-0.1.2 \
		time-macros-0.2.18 \
		tiny-keccak-2.0.2 \
		tinytemplate-1.2.1 \
		tinyvec-1.6.0 \
		tinyvec_macros-0.1.1 \
		tokio-1.43.0 \
		tokio-macros-2.5.0 \
		tokio-postgres-0.7.13 \
		tokio-rustls-0.24.1 \
		tokio-util-0.7.13 \
		toml-0.5.11 \
		toml_datetime-0.6.8 \
		toml_edit-0.22.22 \
		topological-sort-0.2.2 \
		tracing-0.1.40 \
		tracing-attributes-0.1.27 \
		tracing-core-0.1.32 \
		tracing-error-0.2.0 \
		tracing-subscriber-0.3.18 \
		twox-hash-1.6.3 \
		typenum-1.17.0 \
		ucd-trie-0.1.6 \
		unicase-2.7.0 \
		unicode-bidi-0.3.15 \
		unicode-ident-1.0.13 \
		unicode-normalization-0.1.23 \
		unicode-properties-0.1.1 \
		unicode-segmentation-1.11.0 \
		unicode-width-0.1.12 \
		unicode_categories-0.1.1 \
		unindent-0.2.3 \
		unsafe-libyaml-0.2.11 \
		untrusted-0.9.0 \
		url-2.5.2 \
		utf8parse-0.2.1 \
		uuid-0.8.2 \
		uuid-1.8.0 \
		valuable-0.1.0 \
		vcpkg-0.2.15 \
		vergen-9.0.0 \
		vergen-gitcl-1.0.0 \
		vergen-lib-0.1.3 \
		version_check-0.9.4 \
		walkdir-2.5.0 \
		wasi-0.11.0+wasi-snapshot-preview1 \
		wasi-0.13.3+wasi-0.2.2 \
		wasite-0.1.0 \
		wasm-bindgen-0.2.97 \
		wasm-bindgen-backend-0.2.97 \
		wasm-bindgen-futures-0.4.47 \
		wasm-bindgen-macro-0.2.97 \
		wasm-bindgen-macro-support-0.2.97 \
		wasm-bindgen-shared-0.2.97 \
		wasm-bindgen-test-0.3.47 \
		wasm-bindgen-test-macro-0.3.47 \
		web-sys-0.3.74 \
		whoami-1.5.1 \
		winapi-0.3.9 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-util-0.1.8 \
		winapi-x86_64-pc-windows-gnu-0.4.0 \
		windows-core-0.52.0 \
		windows-sys-0.42.0 \
		windows-sys-0.45.0 \
		windows-sys-0.48.0 \
		windows-sys-0.52.0 \
		windows-sys-0.59.0 \
		windows-targets-0.42.2 \
		windows-targets-0.48.5 \
		windows-targets-0.52.6 \
		windows_aarch64_gnullvm-0.42.2 \
		windows_aarch64_gnullvm-0.48.5 \
		windows_aarch64_gnullvm-0.52.6 \
		windows_aarch64_msvc-0.42.2 \
		windows_aarch64_msvc-0.48.5 \
		windows_aarch64_msvc-0.52.6 \
		windows_i686_gnu-0.42.2 \
		windows_i686_gnu-0.48.5 \
		windows_i686_gnu-0.52.6 \
		windows_i686_gnullvm-0.52.6 \
		windows_i686_msvc-0.42.2 \
		windows_i686_msvc-0.48.5 \
		windows_i686_msvc-0.52.6 \
		windows_x86_64_gnu-0.42.2 \
		windows_x86_64_gnu-0.48.5 \
		windows_x86_64_gnu-0.52.6 \
		windows_x86_64_gnullvm-0.42.2 \
		windows_x86_64_gnullvm-0.48.5 \
		windows_x86_64_gnullvm-0.52.6 \
		windows_x86_64_msvc-0.42.2 \
		windows_x86_64_msvc-0.48.5 \
		windows_x86_64_msvc-0.52.6 \
		winnow-0.6.24 \
		wit-bindgen-rt-0.33.0 \
		wyz-0.5.1 \
		xattr-1.3.1 \
		yansi-1.0.1 \
		zerocopy-0.7.34 \
		zerocopy-0.8.14 \
		zerocopy-derive-0.7.34 \
		zerocopy-derive-0.8.14 \
		zstd-0.13.1 \
		zstd-safe-7.1.0 \
		zstd-sys-2.0.10+zstd.1.5.6

BINARY_ALIAS=	python3=${PYTHON_CMD}

PLIST_FILES=	bin/prqlc

do-install:
	# workaround for error: found a virtual manifest at `xx` instead of a package manifest
	${INSTALL_PROGRAM} \
		${WRKDIR}/target/release/prqlc \
		${STAGEDIR}${PREFIX}/bin/prqlc

.include <bsd.port.mk>
