PORTNAME=	inferno
DISTVERSIONPREFIX=	v
DISTVERSION=	0.12.2
PORTREVISION=	2
CATEGORIES=	benchmarks

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Stack trace visualizer, a Rust port of flamegraph
WWW=		https://github.com/jonhoo/inferno

LICENSE=	CDDL
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cargo

USE_GITHUB=	yes
GH_ACCOUNT=	jonhoo

CARGO_CRATES=	adler32-1.2.0 \
		ahash-0.8.11 \
		aho-corasick-1.1.3 \
		allocator-api2-0.2.21 \
		anes-0.1.6 \
		anstream-0.6.18 \
		anstyle-1.0.10 \
		anstyle-parse-0.2.6 \
		anstyle-query-1.1.2 \
		anstyle-wincon-3.0.7 \
		arrayvec-0.7.6 \
		assert_cmd-2.0.16 \
		autocfg-1.4.0 \
		bitflags-2.9.0 \
		bstr-1.11.3 \
		bumpalo-3.17.0 \
		bytemuck-1.22.0 \
		cast-0.3.0 \
		cfg-if-1.0.0 \
		ciborium-0.2.2 \
		ciborium-io-0.2.2 \
		ciborium-ll-0.2.2 \
		clap-4.4.18 \
		clap_builder-4.4.18 \
		clap_derive-4.4.7 \
		clap_lex-0.6.0 \
		colorchoice-1.0.3 \
		core2-0.4.0 \
		crc32fast-1.4.2 \
		criterion-0.5.1 \
		criterion-plot-0.5.0 \
		crossbeam-channel-0.5.14 \
		crossbeam-deque-0.8.6 \
		crossbeam-epoch-0.9.18 \
		crossbeam-utils-0.8.21 \
		crunchy-0.2.3 \
		dary_heap-0.3.7 \
		dashmap-6.1.0 \
		diff-0.1.13 \
		difflib-0.4.0 \
		doc-comment-0.3.3 \
		either-1.15.0 \
		env_filter-0.1.3 \
		env_logger-0.11.7 \
		equivalent-1.0.2 \
		getrandom-0.2.15 \
		getrandom-0.3.2 \
		half-2.5.0 \
		hashbrown-0.14.5 \
		hashbrown-0.15.2 \
		heck-0.4.1 \
		hermit-abi-0.5.0 \
		indexmap-2.8.0 \
		is-terminal-0.4.16 \
		is_terminal_polyfill-1.70.1 \
		itertools-0.10.5 \
		itoa-1.0.15 \
		js-sys-0.3.77 \
		libc-0.2.171 \
		libflate-2.1.0 \
		libflate_lz77-2.1.0 \
		lock_api-0.4.12 \
		log-0.4.26 \
		maplit-1.0.2 \
		memchr-2.7.4 \
		num-format-0.4.4 \
		num-traits-0.2.19 \
		once_cell-1.21.1 \
		oorandom-11.1.5 \
		parking_lot_core-0.9.10 \
		plotters-0.3.7 \
		plotters-backend-0.3.7 \
		plotters-svg-0.3.7 \
		ppv-lite86-0.2.21 \
		predicates-3.1.3 \
		predicates-core-1.0.9 \
		predicates-tree-1.0.12 \
		pretty_assertions-1.4.1 \
		proc-macro2-1.0.94 \
		quick-xml-0.37.2 \
		quote-1.0.40 \
		r-efi-5.2.0 \
		rand-0.9.0 \
		rand_chacha-0.9.0 \
		rand_core-0.9.3 \
		rayon-1.10.0 \
		rayon-core-1.12.1 \
		redox_syscall-0.5.10 \
		regex-1.11.1 \
		regex-automata-0.4.9 \
		regex-syntax-0.8.5 \
		rgb-0.8.50 \
		rle-decode-fast-1.0.3 \
		rustversion-1.0.20 \
		ryu-1.0.20 \
		same-file-1.0.6 \
		scopeguard-1.2.0 \
		serde-1.0.219 \
		serde_derive-1.0.219 \
		serde_json-1.0.140 \
		smallvec-1.14.0 \
		str_stack-0.1.0 \
		strsim-0.10.0 \
		syn-2.0.100 \
		termtree-0.5.1 \
		testing_logger-0.1.1 \
		tinytemplate-1.2.1 \
		unicode-ident-1.0.18 \
		utf8parse-0.2.2 \
		version_check-0.9.5 \
		wait-timeout-0.2.1 \
		walkdir-2.5.0 \
		wasi-0.11.0+wasi-snapshot-preview1 \
		wasi-0.14.2+wasi-0.2.4 \
		wasm-bindgen-0.2.100 \
		wasm-bindgen-backend-0.2.100 \
		wasm-bindgen-macro-0.2.100 \
		wasm-bindgen-macro-support-0.2.100 \
		wasm-bindgen-shared-0.2.100 \
		web-sys-0.3.77 \
		winapi-util-0.1.9 \
		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 \
		wit-bindgen-rt-0.39.0 \
		yansi-1.0.1 \
		zerocopy-0.7.35 \
		zerocopy-0.8.24 \
		zerocopy-derive-0.7.35 \
		zerocopy-derive-0.8.24
EXECUTABLES=	inferno-collapse-dtrace \
		inferno-collapse-ghcprof \
		inferno-collapse-guess \
		inferno-collapse-perf \
		inferno-collapse-recursive \
		inferno-collapse-sample \
		inferno-collapse-vsprof \
		inferno-collapse-vtune \
		inferno-collapse-xctrace \
		inferno-diff-folded \
		inferno-flamegraph

PLIST_FILES=	${EXECUTABLES:S/inferno-/bin\/&/}

.include <bsd.port.mk>
