PORTNAME=	ghgrab
DISTVERSIONPREFIX=	v
DISTVERSION=	2.0.1
PORTREVISION=	1
CATEGORIES=	devel

MAINTAINER=	olgeni@FreeBSD.org
COMMENT=	Browse and download files from Git forges in your terminal
WWW=		https://github.com/abhixdd/ghgrab

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cargo
USE_GITHUB=	yes
GH_ACCOUNT=	abhixdd

CARGO_CRATES=	adler2-2.0.1 \
		aho-corasick-1.1.4 \
		allocator-api2-0.2.21 \
		anstream-0.6.21 \
		anstyle-1.0.13 \
		anstyle-parse-0.2.7 \
		anstyle-query-1.1.5 \
		anstyle-wincon-3.0.11 \
		anyhow-1.0.100 \
		arbitrary-1.4.2 \
		autocfg-1.5.0 \
		base64-0.21.7 \
		base64-0.22.1 \
		bincode-1.3.3 \
		bit-set-0.8.0 \
		bit-vec-0.8.0 \
		bitflags-1.3.2 \
		bitflags-2.10.0 \
		bumpalo-3.19.0 \
		bytes-1.11.1 \
		cassowary-0.3.0 \
		cc-1.2.49 \
		cfg-if-1.0.4 \
		ci_info-0.10.2 \
		clap-4.5.60 \
		clap_builder-4.5.60 \
		clap_derive-4.5.55 \
		clap_lex-1.1.0 \
		colorchoice-1.0.4 \
		core-foundation-0.9.4 \
		core-foundation-sys-0.8.7 \
		crc32fast-1.5.0 \
		crossbeam-utils-0.8.21 \
		crossterm-0.27.0 \
		crossterm_winapi-0.9.1 \
		deranged-0.5.5 \
		derive_arbitrary-1.4.2 \
		dirs-6.0.0 \
		dirs-sys-0.5.0 \
		displaydoc-0.2.5 \
		either-1.15.0 \
		encoding_rs-0.8.35 \
		envmnt-0.8.4 \
		equivalent-1.0.2 \
		errno-0.3.14 \
		fancy-regex-0.16.2 \
		filetime-0.2.27 \
		find-msvc-tools-0.1.5 \
		flate2-1.1.9 \
		fnv-1.0.7 \
		foldhash-0.1.5 \
		form_urlencoded-1.2.2 \
		fsio-0.1.3 \
		futures-0.3.32 \
		futures-channel-0.3.32 \
		futures-core-0.3.32 \
		futures-executor-0.3.32 \
		futures-io-0.3.32 \
		futures-macro-0.3.32 \
		futures-sink-0.3.32 \
		futures-task-0.3.32 \
		futures-util-0.3.32 \
		getopts-0.2.24 \
		getrandom-0.2.16 \
		h2-0.3.27 \
		hashbrown-0.12.3 \
		hashbrown-0.15.5 \
		hashbrown-0.16.1 \
		heck-0.4.1 \
		heck-0.5.0 \
		http-0.2.12 \
		http-body-0.4.6 \
		httparse-1.10.1 \
		httpdate-1.0.3 \
		hyper-0.14.32 \
		hyper-rustls-0.24.2 \
		icu_collections-2.1.1 \
		icu_locale_core-2.1.1 \
		icu_normalizer-2.1.1 \
		icu_normalizer_data-2.1.1 \
		icu_properties-2.1.2 \
		icu_properties_data-2.1.2 \
		icu_provider-2.1.1 \
		idna-1.1.0 \
		idna_adapter-1.2.1 \
		indexmap-1.9.3 \
		indexmap-2.12.1 \
		indoc-2.0.7 \
		ipnet-2.11.0 \
		is_terminal_polyfill-1.70.2 \
		itertools-0.12.1 \
		itoa-1.0.15 \
		js-sys-0.3.83 \
		libc-0.2.178 \
		libredox-0.1.10 \
		linked-hash-map-0.5.6 \
		linux-raw-sys-0.11.0 \
		litemap-0.8.1 \
		lock_api-0.4.14 \
		log-0.4.29 \
		lru-0.12.5 \
		lzma-sys-0.1.20 \
		memchr-2.7.6 \
		mime-0.3.17 \
		miniz_oxide-0.8.9 \
		mio-0.8.11 \
		mio-1.1.1 \
		nias-0.5.0 \
		num-conv-0.1.0 \
		once_cell-1.21.3 \
		once_cell_polyfill-1.70.2 \
		option-ext-0.2.0 \
		parking_lot-0.12.5 \
		parking_lot_core-0.9.12 \
		paste-1.0.15 \
		percent-encoding-2.3.2 \
		pin-project-lite-0.2.16 \
		pkg-config-0.3.32 \
		plist-1.8.0 \
		potential_utf-0.1.4 \
		powerfmt-0.2.0 \
		proc-macro2-1.0.103 \
		quick-xml-0.38.4 \
		quote-1.0.42 \
		ratatui-0.25.0 \
		redox_syscall-0.5.18 \
		redox_users-0.5.2 \
		regex-1.12.3 \
		regex-automata-0.4.14 \
		regex-syntax-0.8.10 \
		reqwest-0.11.27 \
		ring-0.17.14 \
		rustix-1.1.3 \
		rustls-0.21.12 \
		rustls-pemfile-1.0.4 \
		rustls-webpki-0.101.7 \
		rustversion-1.0.22 \
		rusty-hook-0.11.2 \
		ryu-1.0.20 \
		same-file-1.0.6 \
		scopeguard-1.2.0 \
		sct-0.7.1 \
		serde-1.0.228 \
		serde_core-1.0.228 \
		serde_derive-1.0.228 \
		serde_json-1.0.145 \
		serde_spanned-1.1.0 \
		serde_urlencoded-0.7.1 \
		shlex-1.3.0 \
		signal-hook-0.3.18 \
		signal-hook-mio-0.2.5 \
		signal-hook-registry-1.4.7 \
		simd-adler32-0.3.8 \
		slab-0.4.11 \
		smallvec-1.15.1 \
		socket2-0.5.10 \
		socket2-0.6.1 \
		stability-0.1.1 \
		stable_deref_trait-1.2.1 \
		strsim-0.11.1 \
		strum-0.25.0 \
		strum_macros-0.25.3 \
		syn-1.0.109 \
		syn-2.0.111 \
		sync_wrapper-0.1.2 \
		synstructure-0.13.2 \
		syntect-5.3.0 \
		system-configuration-0.5.1 \
		system-configuration-sys-0.5.0 \
		tar-0.4.45 \
		thiserror-1.0.69 \
		thiserror-2.0.17 \
		thiserror-impl-1.0.69 \
		thiserror-impl-2.0.17 \
		time-0.3.44 \
		time-core-0.1.6 \
		time-macros-0.2.24 \
		tinystr-0.8.2 \
		tokio-1.48.0 \
		tokio-macros-2.6.0 \
		tokio-rustls-0.24.1 \
		tokio-util-0.7.17 \
		toml-0.5.11 \
		toml-1.1.0+spec-1.1.0 \
		toml_datetime-1.1.0+spec-1.1.0 \
		toml_parser-1.1.0+spec-1.1.0 \
		toml_writer-1.1.0+spec-1.1.0 \
		tower-service-0.3.3 \
		tracing-0.1.43 \
		tracing-core-0.1.35 \
		try-lock-0.2.5 \
		unicode-ident-1.0.22 \
		unicode-segmentation-1.12.0 \
		unicode-width-0.1.14 \
		unicode-width-0.2.2 \
		untrusted-0.9.0 \
		url-2.5.7 \
		urlencoding-2.1.3 \
		utf8_iter-1.0.4 \
		utf8parse-0.2.2 \
		walkdir-2.5.0 \
		want-0.3.1 \
		wasi-0.11.1+wasi-snapshot-preview1 \
		wasm-bindgen-0.2.106 \
		wasm-bindgen-futures-0.4.56 \
		wasm-bindgen-macro-0.2.106 \
		wasm-bindgen-macro-support-0.2.106 \
		wasm-bindgen-shared-0.2.106 \
		web-sys-0.3.83 \
		webpki-roots-0.25.4 \
		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.48.0 \
		windows-sys-0.52.0 \
		windows-sys-0.60.2 \
		windows-sys-0.61.2 \
		windows-targets-0.48.5 \
		windows-targets-0.52.6 \
		windows-targets-0.53.5 \
		windows_aarch64_gnullvm-0.48.5 \
		windows_aarch64_gnullvm-0.52.6 \
		windows_aarch64_gnullvm-0.53.1 \
		windows_aarch64_msvc-0.48.5 \
		windows_aarch64_msvc-0.52.6 \
		windows_aarch64_msvc-0.53.1 \
		windows_i686_gnu-0.48.5 \
		windows_i686_gnu-0.52.6 \
		windows_i686_gnu-0.53.1 \
		windows_i686_gnullvm-0.52.6 \
		windows_i686_gnullvm-0.53.1 \
		windows_i686_msvc-0.48.5 \
		windows_i686_msvc-0.52.6 \
		windows_i686_msvc-0.53.1 \
		windows_x86_64_gnu-0.48.5 \
		windows_x86_64_gnu-0.52.6 \
		windows_x86_64_gnu-0.53.1 \
		windows_x86_64_gnullvm-0.48.5 \
		windows_x86_64_gnullvm-0.52.6 \
		windows_x86_64_gnullvm-0.53.1 \
		windows_x86_64_msvc-0.48.5 \
		windows_x86_64_msvc-0.52.6 \
		windows_x86_64_msvc-0.53.1 \
		winnow-1.0.0 \
		winreg-0.50.0 \
		writeable-0.6.2 \
		xattr-1.6.1 \
		xz2-0.1.7 \
		yaml-rust-0.4.5 \
		yoke-0.8.1 \
		yoke-derive-0.8.1 \
		zerofrom-0.1.6 \
		zerofrom-derive-0.1.6 \
		zerotrie-0.2.3 \
		zerovec-0.11.5 \
		zerovec-derive-0.11.2 \
		zip-2.4.2 \
		zopfli-0.8.3

PLIST_FILES=	bin/ghg \
		bin/ghgrab

.include <bsd.port.mk>
