PORTNAME=	argc
DISTVERSIONPREFIX=	v
DISTVERSION=	1.22.0
PORTREVISION=	5
CATEGORIES=	devel

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Easily parse command line arguments in bash
WWW=		https://github.com/sigoden/argc

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=	sigoden

CARGO_CRATES=	aho-corasick-1.1.3 \
		anstyle-1.0.10 \
		anyhow-1.0.94 \
		assert_cmd-2.0.16 \
		assert_fs-1.1.2 \
		autocfg-1.4.0 \
		base64-0.22.1 \
		bitflags-2.6.0 \
		bstr-1.11.0 \
		cfg-if-1.0.0 \
		console-0.15.8 \
		convert_case-0.6.0 \
		crossbeam-deque-0.8.5 \
		crossbeam-epoch-0.9.18 \
		crossbeam-utils-0.8.20 \
		difflib-0.4.0 \
		dirs-5.0.1 \
		dirs-sys-0.4.1 \
		doc-comment-0.3.3 \
		either-1.13.0 \
		encode_unicode-0.3.6 \
		equivalent-1.0.1 \
		errno-0.3.10 \
		fastrand-2.3.0 \
		float-cmp-0.9.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 \
		getrandom-0.2.15 \
		glob-0.3.1 \
		globset-0.4.15 \
		globwalk-0.9.1 \
		hashbrown-0.15.2 \
		hermit-abi-0.3.9 \
		home-0.5.9 \
		ignore-0.4.23 \
		indexmap-2.7.0 \
		insta-1.41.1 \
		itoa-1.0.14 \
		lazy_static-1.5.0 \
		libc-0.2.167 \
		libredox-0.1.3 \
		linked-hash-map-0.5.6 \
		linux-raw-sys-0.4.14 \
		log-0.4.22 \
		memchr-2.7.4 \
		minimal-lexical-0.2.1 \
		natord-1.0.9 \
		nom-7.1.3 \
		normalize-line-endings-0.3.0 \
		num-traits-0.2.19 \
		num_cpus-1.16.0 \
		once_cell-1.20.2 \
		option-ext-0.2.0 \
		path-absolutize-3.1.1 \
		path-dedot-3.1.1 \
		pin-project-lite-0.2.15 \
		pin-utils-0.1.0 \
		predicates-3.1.2 \
		predicates-core-1.0.8 \
		predicates-tree-1.0.11 \
		proc-macro-crate-3.2.0 \
		proc-macro2-1.0.92 \
		quote-1.0.37 \
		redox_users-0.4.6 \
		regex-1.11.1 \
		regex-automata-0.4.9 \
		regex-syntax-0.8.5 \
		relative-path-1.9.3 \
		roff-0.2.2 \
		rstest-0.23.0 \
		rstest_macros-0.23.0 \
		rustc_version-0.4.1 \
		rustix-0.38.42 \
		ryu-1.0.18 \
		same-file-1.0.6 \
		semver-1.0.23 \
		serde-1.0.215 \
		serde_derive-1.0.215 \
		serde_json-1.0.133 \
		shell-words-1.1.0 \
		similar-2.6.0 \
		slab-0.4.9 \
		smawk-0.3.2 \
		syn-2.0.90 \
		tempfile-3.14.0 \
		termtree-0.4.1 \
		textwrap-0.16.1 \
		thiserror-1.0.69 \
		thiserror-impl-1.0.69 \
		threadpool-1.8.1 \
		toml_datetime-0.6.8 \
		toml_edit-0.22.22 \
		unicode-ident-1.0.14 \
		unicode-linebreak-0.1.5 \
		unicode-segmentation-1.12.0 \
		unicode-width-0.1.14 \
		wait-timeout-0.2.0 \
		walkdir-2.5.0 \
		wasi-0.11.0+wasi-snapshot-preview1 \
		which-7.0.0 \
		winapi-util-0.1.9 \
		windows-sys-0.48.0 \
		windows-sys-0.52.0 \
		windows-sys-0.59.0 \
		windows-targets-0.48.5 \
		windows-targets-0.52.6 \
		windows_aarch64_gnullvm-0.48.5 \
		windows_aarch64_gnullvm-0.52.6 \
		windows_aarch64_msvc-0.48.5 \
		windows_aarch64_msvc-0.52.6 \
		windows_i686_gnu-0.48.5 \
		windows_i686_gnu-0.52.6 \
		windows_i686_gnullvm-0.52.6 \
		windows_i686_msvc-0.48.5 \
		windows_i686_msvc-0.52.6 \
		windows_x86_64_gnu-0.48.5 \
		windows_x86_64_gnu-0.52.6 \
		windows_x86_64_gnullvm-0.48.5 \
		windows_x86_64_gnullvm-0.52.6 \
		windows_x86_64_msvc-0.48.5 \
		windows_x86_64_msvc-0.52.6 \
		winnow-0.6.20 \
		winsafe-0.0.19

PLIST_FILES=	bin/${PORTNAME}

.include <bsd.port.mk>
