PORTNAME=	twitch-tui
DISTVERSIONPREFIX=	v
DISTVERSION=	2.5.1
PORTREVISION=	1
CATEGORIES=	net-p2p

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Twitch chat in the terminal
WWW=		https://xithrius.github.io/twitch-tui/

LICENSE=	APACHE20 MIT
LICENSE_COMB=	dual
LICENSE_FILE_APACHE20=	${WRKSRC}/LICENSE-APACHE
LICENSE_FILE_MIT=	${WRKSRC}/LICENSE-MIT

USES=		cargo

USE_GITHUB=	yes
GH_ACCOUNT=	Xithrius

CARGO_CRATES=	addr2line-0.20.0 \
		adler-1.0.2 \
		ahash-0.7.6 \
		aho-corasick-1.0.2 \
		android-tzdata-0.1.1 \
		android_system_properties-0.1.5 \
		anstream-0.3.2 \
		anstyle-1.0.1 \
		anstyle-parse-0.2.1 \
		anstyle-query-1.0.0 \
		anstyle-wincon-1.0.1 \
		anyhow-1.0.72 \
		autocfg-1.1.0 \
		backtrace-0.3.68 \
		base64-0.21.2 \
		bit_field-0.10.2 \
		bitflags-1.3.2 \
		bitflags-2.3.3 \
		bumpalo-3.13.0 \
		bytemuck-1.13.1 \
		byteorder-1.4.3 \
		bytes-1.4.0 \
		cassowary-0.3.0 \
		cc-1.0.79 \
		cesu8-1.1.0 \
		cfg-if-1.0.0 \
		chrono-0.4.26 \
		clap-4.3.19 \
		clap_builder-4.3.19 \
		clap_derive-4.3.12 \
		clap_lex-0.5.0 \
		clipboard-win-4.5.0 \
		color-eyre-0.6.2 \
		color-spantrace-0.2.0 \
		color_quant-1.1.0 \
		colorchoice-1.0.0 \
		combine-4.6.6 \
		console-0.15.7 \
		core-foundation-0.9.3 \
		core-foundation-sys-0.8.4 \
		crc32fast-1.3.2 \
		crossbeam-channel-0.5.8 \
		crossbeam-deque-0.8.3 \
		crossbeam-epoch-0.9.15 \
		crossbeam-utils-0.8.16 \
		crossterm-0.26.1 \
		crossterm_winapi-0.9.1 \
		crunchy-0.2.2 \
		darling-0.20.3 \
		darling_core-0.20.3 \
		darling_macro-0.20.3 \
		dialoguer-0.10.4 \
		dirs-next-2.0.0 \
		dirs-sys-next-0.1.2 \
		either-1.9.0 \
		encode_unicode-0.3.6 \
		encoding-0.2.33 \
		encoding-index-japanese-1.20141219.5 \
		encoding-index-korean-1.20141219.5 \
		encoding-index-simpchinese-1.20141219.5 \
		encoding-index-singlebyte-1.20141219.5 \
		encoding-index-tradchinese-1.20141219.5 \
		encoding_index_tests-0.1.4 \
		encoding_rs-0.8.32 \
		endian-type-0.1.2 \
		equivalent-1.0.1 \
		errno-0.3.1 \
		errno-dragonfly-0.1.2 \
		error-code-2.3.1 \
		exr-1.7.0 \
		eyre-0.6.8 \
		fastrand-2.0.0 \
		fd-lock-3.0.13 \
		fdeflate-0.3.0 \
		fern-0.6.2 \
		flate2-1.0.26 \
		flume-0.10.14 \
		fnv-1.0.7 \
		foreign-types-0.3.2 \
		foreign-types-shared-0.1.1 \
		form_urlencoded-1.2.0 \
		futures-0.3.28 \
		futures-channel-0.3.28 \
		futures-core-0.3.28 \
		futures-executor-0.3.28 \
		futures-io-0.3.28 \
		futures-macro-0.3.28 \
		futures-sink-0.3.28 \
		futures-task-0.3.28 \
		futures-util-0.3.28 \
		fuzzy-matcher-0.3.7 \
		getrandom-0.2.10 \
		gif-0.12.0 \
		gimli-0.27.3 \
		h2-0.3.20 \
		half-2.2.1 \
		hashbrown-0.12.3 \
		hashbrown-0.14.0 \
		heck-0.4.1 \
		hermit-abi-0.3.2 \
		hex-0.4.3 \
		home-0.5.5 \
		http-0.2.9 \
		http-body-0.4.5 \
		httparse-1.8.0 \
		httpdate-1.0.2 \
		hyper-0.14.27 \
		hyper-tls-0.5.0 \
		iana-time-zone-0.1.57 \
		iana-time-zone-haiku-0.1.2 \
		ident_case-1.0.1 \
		idna-0.4.0 \
		image-0.24.6 \
		indenter-0.3.3 \
		indexmap-1.9.3 \
		indexmap-2.0.0 \
		indoc-2.0.3 \
		instant-0.1.12 \
		ipnet-2.8.0 \
		irc-0.15.0 \
		irc-proto-0.15.0 \
		is-terminal-0.4.9 \
		itoa-1.0.9 \
		jni-0.21.1 \
		jni-sys-0.3.0 \
		jpeg-decoder-0.3.0 \
		js-sys-0.3.64 \
		lazy_static-1.4.0 \
		lebe-0.5.2 \
		libc-0.2.147 \
		linux-raw-sys-0.4.3 \
		lock_api-0.4.10 \
		log-0.4.19 \
		malloc_buf-0.0.6 \
		memchr-2.5.0 \
		memoffset-0.9.0 \
		mime-0.3.17 \
		miniz_oxide-0.7.1 \
		mio-0.8.8 \
		nanorand-0.7.0 \
		native-tls-0.2.11 \
		ndk-context-0.1.1 \
		nibble_vec-0.1.0 \
		nix-0.25.1 \
		num-integer-0.1.45 \
		num-rational-0.4.1 \
		num-traits-0.2.16 \
		num_cpus-1.16.0 \
		objc-0.2.7 \
		object-0.31.1 \
		once_cell-1.18.0 \
		openssl-0.10.55 \
		openssl-macros-0.1.1 \
		openssl-probe-0.1.5 \
		openssl-sys-0.9.90 \
		owo-colors-3.5.0 \
		parking_lot-0.11.2 \
		parking_lot-0.12.1 \
		parking_lot_core-0.8.6 \
		parking_lot_core-0.9.8 \
		paste-1.0.14 \
		percent-encoding-2.3.0 \
		pin-project-1.1.2 \
		pin-project-internal-1.1.2 \
		pin-project-lite-0.2.10 \
		pin-utils-0.1.0 \
		pkg-config-0.3.27 \
		png-0.17.9 \
		proc-macro2-1.0.66 \
		qoi-0.4.1 \
		quote-1.0.32 \
		radix_trie-0.2.1 \
		ratatui-0.22.0 \
		raw-window-handle-0.5.2 \
		rayon-1.7.0 \
		rayon-core-1.11.0 \
		redox_syscall-0.2.16 \
		redox_syscall-0.3.5 \
		redox_users-0.4.3 \
		regex-1.9.1 \
		regex-automata-0.3.3 \
		regex-syntax-0.7.4 \
		reqwest-0.11.18 \
		rustc-demangle-0.1.23 \
		rustix-0.38.4 \
		rustyline-10.1.1 \
		ryu-1.0.15 \
		same-file-1.0.6 \
		schannel-0.1.22 \
		scopeguard-1.2.0 \
		security-framework-2.9.2 \
		security-framework-sys-2.9.1 \
		serde-1.0.175 \
		serde_derive-1.0.175 \
		serde_json-1.0.103 \
		serde_spanned-0.6.3 \
		serde_urlencoded-0.7.1 \
		serde_with-3.1.0 \
		serde_with_macros-3.1.0 \
		sharded-slab-0.1.4 \
		shell-words-1.1.0 \
		signal-hook-0.3.17 \
		signal-hook-mio-0.2.3 \
		signal-hook-registry-1.4.1 \
		simd-adler32-0.3.7 \
		slab-0.4.8 \
		smallvec-1.11.0 \
		smawk-0.3.1 \
		socket2-0.4.9 \
		spin-0.9.8 \
		str-buf-1.0.6 \
		strsim-0.10.0 \
		syn-2.0.27 \
		tempfile-3.7.0 \
		textwrap-0.16.0 \
		thiserror-1.0.44 \
		thiserror-impl-1.0.44 \
		thread_local-1.1.7 \
		tiff-0.8.1 \
		time-0.1.45 \
		time-0.3.23 \
		time-core-0.1.1 \
		time-macros-0.2.10 \
		tinyvec-1.6.0 \
		tinyvec_macros-0.1.1 \
		tokio-1.29.1 \
		tokio-macros-2.1.0 \
		tokio-native-tls-0.3.1 \
		tokio-stream-0.1.14 \
		tokio-util-0.6.10 \
		tokio-util-0.7.8 \
		toml-0.5.11 \
		toml-0.7.6 \
		toml_datetime-0.6.3 \
		toml_edit-0.19.14 \
		tower-service-0.3.2 \
		tracing-0.1.37 \
		tracing-core-0.1.31 \
		tracing-error-0.2.0 \
		tracing-subscriber-0.3.17 \
		try-lock-0.2.4 \
		unicode-bidi-0.3.13 \
		unicode-ident-1.0.11 \
		unicode-linebreak-0.1.4 \
		unicode-normalization-0.1.22 \
		unicode-segmentation-1.10.1 \
		unicode-width-0.1.10 \
		url-2.4.0 \
		utf8parse-0.2.1 \
		valuable-0.1.0 \
		vcpkg-0.2.15 \
		version_check-0.9.4 \
		walkdir-2.3.3 \
		want-0.3.1 \
		wasi-0.10.0+wasi-snapshot-preview1 \
		wasi-0.11.0+wasi-snapshot-preview1 \
		wasm-bindgen-0.2.87 \
		wasm-bindgen-backend-0.2.87 \
		wasm-bindgen-futures-0.4.37 \
		wasm-bindgen-macro-0.2.87 \
		wasm-bindgen-macro-support-0.2.87 \
		wasm-bindgen-shared-0.2.87 \
		web-sys-0.3.64 \
		webbrowser-0.8.10 \
		weezl-0.1.7 \
		winapi-0.3.9 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-util-0.1.5 \
		winapi-x86_64-pc-windows-gnu-0.4.0 \
		windows-0.48.0 \
		windows-sys-0.45.0 \
		windows-sys-0.48.0 \
		windows-targets-0.42.2 \
		windows-targets-0.48.1 \
		windows_aarch64_gnullvm-0.42.2 \
		windows_aarch64_gnullvm-0.48.0 \
		windows_aarch64_msvc-0.42.2 \
		windows_aarch64_msvc-0.48.0 \
		windows_i686_gnu-0.42.2 \
		windows_i686_gnu-0.48.0 \
		windows_i686_msvc-0.42.2 \
		windows_i686_msvc-0.48.0 \
		windows_x86_64_gnu-0.42.2 \
		windows_x86_64_gnu-0.48.0 \
		windows_x86_64_gnullvm-0.42.2 \
		windows_x86_64_gnullvm-0.48.0 \
		windows_x86_64_msvc-0.42.2 \
		windows_x86_64_msvc-0.48.0 \
		winnow-0.5.1 \
		winreg-0.10.1 \
		zune-inflate-0.2.54

OPENSSLINC=	/usr/include
OPENSSLLIB=	/usr/lib

PLIST_FILES=	bin/twt

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/twt

.include <bsd.port.mk>
