PORTNAME=	amber
DISTVERSIONPREFIX=	v
DISTVERSION=	0.6.0
PORTREVISION=	14
CATEGORIES=	devel
PKGNAMESUFFIX=	-code-search-replace-tool

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Code search/replace tool
WWW=		https://github.com/dalance/amber

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cargo

USE_GITHUB=	yes
GH_ACCOUNT=	dalance

CARGO_CRATES=	aho-corasick-1.1.2 \
		ansi_term-0.12.1 \
		atty-0.2.14 \
		autocfg-1.1.0 \
		bitflags-1.3.2 \
		bitflags-2.4.1 \
		cfg-if-1.0.0 \
		clap-2.34.0 \
		crossbeam-0.8.3 \
		crossbeam-channel-0.5.10 \
		crossbeam-deque-0.8.4 \
		crossbeam-epoch-0.9.17 \
		crossbeam-queue-0.3.10 \
		crossbeam-utils-0.8.18 \
		ctrlc-3.4.2 \
		deranged-0.3.9 \
		directories-5.0.1 \
		dirs-next-2.0.0 \
		dirs-sys-0.4.1 \
		dirs-sys-next-0.1.2 \
		equivalent-1.0.1 \
		errno-0.3.7 \
		fastrand-2.0.1 \
		filetime-0.2.23 \
		getch-0.3.1 \
		getrandom-0.2.11 \
		glob-0.3.1 \
		hashbrown-0.14.3 \
		heck-0.3.3 \
		hermit-abi-0.1.19 \
		hermit-abi-0.3.3 \
		indexmap-2.1.0 \
		lazy_static-1.4.0 \
		libc-0.2.150 \
		libredox-0.0.1 \
		linux-raw-sys-0.4.11 \
		memchr-2.6.4 \
		memmap-0.7.0 \
		nix-0.27.1 \
		num_cpus-1.16.0 \
		option-ext-0.2.0 \
		powerfmt-0.2.0 \
		ppv-lite86-0.2.17 \
		proc-macro-error-1.0.4 \
		proc-macro-error-attr-1.0.4 \
		proc-macro2-1.0.70 \
		quote-1.0.33 \
		rand-0.8.5 \
		rand_chacha-0.3.1 \
		rand_core-0.6.4 \
		redox_syscall-0.4.1 \
		redox_users-0.4.4 \
		regex-1.10.2 \
		regex-automata-0.4.3 \
		regex-syntax-0.8.2 \
		rlibc-1.0.0 \
		rustix-0.38.25 \
		rustversion-1.0.14 \
		serde-1.0.193 \
		serde_derive-1.0.193 \
		serde_spanned-0.6.4 \
		strsim-0.8.0 \
		structopt-0.3.26 \
		structopt-derive-0.4.18 \
		syn-1.0.109 \
		syn-2.0.39 \
		tempfile-3.8.1 \
		term-0.7.0 \
		termios-0.3.3 \
		textwrap-0.11.0 \
		thiserror-1.0.50 \
		thiserror-impl-1.0.50 \
		time-0.3.31 \
		time-core-0.1.2 \
		toml-0.8.8 \
		toml_datetime-0.6.5 \
		toml_edit-0.21.0 \
		unicode-ident-1.0.12 \
		unicode-segmentation-1.10.1 \
		unicode-width-0.1.11 \
		vec_map-0.8.2 \
		version_check-0.9.4 \
		wasi-0.11.0+wasi-snapshot-preview1 \
		winapi-0.3.9 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-x86_64-pc-windows-gnu-0.4.0 \
		windows-sys-0.48.0 \
		windows-sys-0.52.0 \
		windows-targets-0.48.5 \
		windows-targets-0.52.0 \
		windows_aarch64_gnullvm-0.48.5 \
		windows_aarch64_gnullvm-0.52.0 \
		windows_aarch64_msvc-0.48.5 \
		windows_aarch64_msvc-0.52.0 \
		windows_i686_gnu-0.48.5 \
		windows_i686_gnu-0.52.0 \
		windows_i686_msvc-0.48.5 \
		windows_i686_msvc-0.52.0 \
		windows_x86_64_gnu-0.48.5 \
		windows_x86_64_gnu-0.52.0 \
		windows_x86_64_gnullvm-0.48.5 \
		windows_x86_64_gnullvm-0.52.0 \
		windows_x86_64_msvc-0.48.5 \
		windows_x86_64_msvc-0.52.0 \
		winnow-0.5.19

PLIST_FILES=	bin/ambr \
		bin/ambs

.include <bsd.port.mk>
