PORTNAME=	starlark-rust
DISTVERSIONPREFIX=	v
DISTVERSION=	0.13.0
PORTREVISION=	4
CATEGORIES=	lang

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Rust implementation of the Starlark language
WWW=		https://github.com/facebook/starlark-rust

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cargo

USE_GITHUB=	yes
GH_ACCOUNT=	facebook

CARGO_CRATES=	Inflector-0.11.4 \
		addr2line-0.24.2 \
		adler2-2.0.0 \
		ahash-0.8.11 \
		aho-corasick-1.1.3 \
		allocator-api2-0.2.21 \
		annotate-snippets-0.9.2 \
		anstream-0.6.18 \
		anstyle-1.0.10 \
		anstyle-parse-0.2.6 \
		anstyle-query-1.1.2 \
		anstyle-wincon-3.0.6 \
		anyhow-1.0.94 \
		argfile-0.1.6 \
		arrayvec-0.7.6 \
		ascii-canvas-3.0.0 \
		autocfg-1.4.0 \
		backtrace-0.3.74 \
		beef-0.5.2 \
		bit-set-0.5.3 \
		bit-vec-0.6.3 \
		bitflags-1.3.2 \
		bitflags-2.6.0 \
		bstr-1.11.1 \
		bumpalo-3.16.0 \
		bytemuck-1.20.0 \
		byteorder-1.5.0 \
		bytes-1.9.0 \
		castaway-0.2.3 \
		cfg-if-1.0.0 \
		cfg_aliases-0.1.1 \
		clap-4.5.23 \
		clap_builder-4.5.23 \
		clap_derive-4.5.18 \
		clap_lex-0.7.4 \
		clipboard-win-5.4.0 \
		colorchoice-1.0.3 \
		compact_str-0.8.0 \
		convert_case-0.6.0 \
		crossbeam-channel-0.5.13 \
		crossbeam-utils-0.8.20 \
		crunchy-0.2.2 \
		ctor-0.1.26 \
		dashmap-5.5.3 \
		debugserver-types-0.5.0 \
		derivative-2.2.0 \
		derive_more-1.0.0 \
		derive_more-impl-1.0.0 \
		diff-0.1.13 \
		dirs-next-2.0.0 \
		dirs-sys-next-0.1.2 \
		displaydoc-0.2.5 \
		either-1.13.0 \
		ena-0.14.3 \
		endian-type-0.1.2 \
		env_logger-0.8.4 \
		equivalent-1.0.1 \
		erased-serde-0.3.31 \
		errno-0.3.10 \
		error-code-3.3.1 \
		fd-lock-4.0.2 \
		fixedbitset-0.4.2 \
		fnv-1.0.7 \
		form_urlencoded-1.2.1 \
		fs-err-2.11.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-util-0.3.31 \
		fxhash-0.2.1 \
		getrandom-0.2.15 \
		gimli-0.31.1 \
		globset-0.4.15 \
		hashbrown-0.14.5 \
		hashbrown-0.15.2 \
		heck-0.5.0 \
		hermit-abi-0.4.0 \
		home-0.5.9 \
		icu_collections-1.5.0 \
		icu_locid-1.5.0 \
		icu_locid_transform-1.5.0 \
		icu_locid_transform_data-1.5.0 \
		icu_normalizer-1.5.0 \
		icu_normalizer_data-1.5.0 \
		icu_properties-1.5.1 \
		icu_properties_data-1.5.0 \
		icu_provider-1.5.0 \
		icu_provider_macros-1.5.0 \
		idna-1.0.3 \
		idna_adapter-1.2.0 \
		indenter-0.3.3 \
		indexmap-2.7.0 \
		inferno-0.11.21 \
		instant-0.1.13 \
		inventory-0.3.15 \
		is-terminal-0.4.13 \
		is_terminal_polyfill-1.70.1 \
		itertools-0.10.5 \
		itertools-0.11.0 \
		itertools-0.13.0 \
		itoa-1.0.14 \
		lalrpop-0.19.12 \
		lalrpop-util-0.19.12 \
		lazy_static-1.5.0 \
		libc-0.2.168 \
		libredox-0.1.3 \
		linux-raw-sys-0.4.14 \
		litemap-0.7.4 \
		lock_api-0.4.12 \
		log-0.4.22 \
		logos-0.12.1 \
		logos-derive-0.12.1 \
		lsp-server-0.7.7 \
		lsp-types-0.94.1 \
		maplit-1.0.2 \
		memchr-2.7.4 \
		memoffset-0.6.5 \
		miniz_oxide-0.8.0 \
		new_debug_unreachable-1.0.6 \
		nibble_vec-0.1.0 \
		nix-0.28.0 \
		num-bigint-0.4.6 \
		num-format-0.4.4 \
		num-integer-0.1.46 \
		num-traits-0.2.19 \
		object-0.36.5 \
		once_cell-1.20.2 \
		os_str_bytes-6.6.1 \
		parking_lot-0.11.2 \
		parking_lot-0.12.3 \
		parking_lot_core-0.8.6 \
		parking_lot_core-0.9.10 \
		paste-1.0.15 \
		percent-encoding-2.3.1 \
		petgraph-0.6.5 \
		phf_shared-0.10.0 \
		pin-project-lite-0.2.15 \
		pin-utils-0.1.0 \
		ppv-lite86-0.2.20 \
		precomputed-hash-0.1.1 \
		proc-macro2-1.0.92 \
		prost-0.11.9 \
		prost-derive-0.11.9 \
		prost-types-0.11.9 \
		quick-xml-0.26.0 \
		quickcheck-1.0.3 \
		quote-1.0.37 \
		radix_trie-0.2.1 \
		rand-0.8.5 \
		rand_chacha-0.3.1 \
		rand_core-0.6.4 \
		redox_syscall-0.2.16 \
		redox_syscall-0.5.8 \
		redox_users-0.4.6 \
		ref-cast-1.0.23 \
		ref-cast-impl-1.0.23 \
		regex-1.11.1 \
		regex-automata-0.4.9 \
		regex-syntax-0.6.29 \
		regex-syntax-0.8.5 \
		relative-path-1.9.3 \
		rgb-0.8.50 \
		rustc-demangle-0.1.24 \
		rustix-0.38.42 \
		rustversion-1.0.18 \
		rustyline-14.0.0 \
		ryu-1.0.18 \
		same-file-1.0.6 \
		schemafy-0.5.2 \
		schemafy_core-0.5.2 \
		schemafy_lib-0.5.2 \
		scopeguard-1.2.0 \
		serde-1.0.216 \
		serde_derive-1.0.216 \
		serde_json-1.0.133 \
		serde_repr-0.1.19 \
		siphasher-0.3.11 \
		slab-0.4.9 \
		smallvec-1.13.2 \
		sorted_vector_map-0.2.0 \
		stable_deref_trait-1.2.0 \
		static_assertions-1.1.0 \
		str_stack-0.1.0 \
		string_cache-0.8.7 \
		strsim-0.10.0 \
		strsim-0.11.1 \
		syn-1.0.109 \
		syn-2.0.90 \
		synstructure-0.13.1 \
		term-0.7.0 \
		terminal_size-0.4.1 \
		textwrap-0.11.0 \
		thiserror-1.0.69 \
		thiserror-impl-1.0.69 \
		tiny-keccak-2.0.2 \
		tinystr-0.7.6 \
		tokio-1.42.0 \
		triomphe-0.1.14 \
		unicode-ident-1.0.14 \
		unicode-segmentation-1.12.0 \
		unicode-width-0.1.14 \
		unicode-xid-0.2.6 \
		url-2.5.4 \
		utf16_iter-1.0.5 \
		utf8_iter-1.0.4 \
		utf8parse-0.2.2 \
		version_check-0.9.5 \
		walkdir-2.5.0 \
		wasi-0.11.0+wasi-snapshot-preview1 \
		winapi-0.3.9 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-util-0.1.9 \
		winapi-x86_64-pc-windows-gnu-0.4.0 \
		windows-sys-0.52.0 \
		windows-sys-0.59.0 \
		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 \
		write16-1.0.0 \
		writeable-0.5.5 \
		yoke-0.7.5 \
		yoke-derive-0.7.5 \
		zerocopy-0.7.35 \
		zerocopy-derive-0.7.35 \
		zerofrom-0.1.5 \
		zerofrom-derive-0.1.5 \
		zerovec-0.10.4 \
		zerovec-derive-0.10.3

PLIST_FILES=	bin/starlark

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

.include <bsd.port.mk>
