PORTNAME=	replibyte
DISTVERSIONPREFIX=	v
DISTVERSION=	0.10.0
PORTREVISION=	7
CATEGORIES=	databases

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Seed your databases with your production data
WWW=		https://www.replibyte.com/docs/introduction

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/../LICENSE

BROKEN_i386=	error: unsupported platform; error[E0308]: mismatched type, see https://github.com/Qovery/Replibyte/issues/255

USES=		cargo
USE_GITHUB=	yes
GH_ACCOUNT=	Qovery
GH_PROJECT=	Replibyte

WRKSRC_SUBDIR=	replibyte

CARGO_CRATES=	addr2line-0.17.0 \
		adler-1.0.2 \
		aead-0.4.3 \
		aes-0.7.5 \
		aes-gcm-0.9.4 \
		ahash-0.7.6 \
		aho-corasick-0.7.18 \
		anyhow-1.0.57 \
		arrayref-0.3.6 \
		arrayvec-0.5.2 \
		atty-0.2.14 \
		autocfg-0.1.8 \
		autocfg-1.1.0 \
		aws-config-0.9.0 \
		aws-endpoint-0.9.0 \
		aws-http-0.9.0 \
		aws-sdk-s3-0.9.0 \
		aws-sdk-sso-0.9.0 \
		aws-sdk-sts-0.9.0 \
		aws-sig-auth-0.9.0 \
		aws-sigv4-0.9.0 \
		aws-smithy-async-0.39.0 \
		aws-smithy-client-0.39.0 \
		aws-smithy-eventstream-0.39.0 \
		aws-smithy-http-0.39.0 \
		aws-smithy-http-tower-0.39.0 \
		aws-smithy-json-0.39.0 \
		aws-smithy-query-0.39.0 \
		aws-smithy-types-0.39.0 \
		aws-smithy-xml-0.39.0 \
		aws-types-0.9.0 \
		backtrace-0.3.65 \
		base-x-0.2.10 \
		base64-0.13.0 \
		bitflags-1.3.2 \
		blake2b_simd-0.5.11 \
		bson-2.2.0 \
		bstr-0.2.17 \
		build_const-0.2.2 \
		bumpalo-3.9.1 \
		bytecheck-0.6.8 \
		bytecheck_derive-0.6.8 \
		byteorder-1.4.3 \
		bytes-1.1.0 \
		bytes-utils-0.1.2 \
		cc-1.0.73 \
		cfg-if-0.1.10 \
		cfg-if-1.0.0 \
		chrono-0.4.19 \
		cipher-0.3.0 \
		clap-3.1.18 \
		clap_derive-3.1.18 \
		clap_lex-0.2.0 \
		cloudabi-0.0.3 \
		console-0.15.0 \
		console_error_panic_hook-0.1.7 \
		const_fn-0.4.9 \
		constant_time_eq-0.1.5 \
		core-foundation-0.9.3 \
		core-foundation-sys-0.8.3 \
		cpufeatures-0.2.2 \
		cranelift-bforest-0.76.0 \
		cranelift-codegen-0.76.0 \
		cranelift-codegen-meta-0.76.0 \
		cranelift-codegen-shared-0.76.0 \
		cranelift-entity-0.76.0 \
		cranelift-frontend-0.76.0 \
		crc-1.8.1 \
		crc32fast-1.3.2 \
		crossbeam-channel-0.5.4 \
		crossbeam-deque-0.8.1 \
		crossbeam-epoch-0.9.8 \
		crossbeam-utils-0.8.8 \
		csv-1.1.6 \
		csv-core-0.1.10 \
		ct-logs-0.8.0 \
		ctr-0.8.0 \
		ctrlc-3.2.2 \
		darling-0.13.4 \
		darling_core-0.13.4 \
		darling_macro-0.13.4 \
		dirs-1.0.5 \
		discard-1.0.4 \
		either-1.6.1 \
		encode_unicode-0.3.6 \
		encoding_rs-0.8.31 \
		enum-iterator-0.7.0 \
		enum-iterator-derive-0.7.0 \
		enumset-1.0.11 \
		enumset_derive-0.6.0 \
		env_logger-0.9.0 \
		failure-0.1.8 \
		failure_derive-0.1.8 \
		fake-2.4.3 \
		fallible-iterator-0.2.0 \
		fastrand-1.7.0 \
		flate2-1.0.23 \
		fnv-1.0.7 \
		foreign-types-0.3.2 \
		foreign-types-shared-0.1.1 \
		form_urlencoded-1.0.1 \
		fuchsia-cprng-0.1.1 \
		futures-channel-0.3.21 \
		futures-core-0.3.21 \
		futures-io-0.3.21 \
		futures-macro-0.3.21 \
		futures-sink-0.3.21 \
		futures-task-0.3.21 \
		futures-util-0.3.21 \
		generational-arena-0.2.8 \
		generic-array-0.14.5 \
		getrandom-0.1.16 \
		getrandom-0.2.6 \
		ghash-0.4.4 \
		gimli-0.25.0 \
		gimli-0.26.1 \
		h2-0.3.13 \
		hashbrown-0.11.2 \
		hashbrown-0.12.1 \
		heck-0.4.0 \
		hermit-abi-0.1.19 \
		hex-0.4.3 \
		http-0.2.7 \
		http-body-0.4.4 \
		httparse-1.7.1 \
		httpdate-1.0.2 \
		humantime-2.1.0 \
		hyper-0.14.18 \
		hyper-rustls-0.22.1 \
		hyper-tls-0.5.0 \
		ident_case-1.0.1 \
		idna-0.2.3 \
		indexmap-1.8.1 \
		indicatif-0.16.2 \
		instant-0.1.12 \
		ipnet-2.5.0 \
		isolang-1.0.0 \
		itoa-0.4.8 \
		itoa-1.0.2 \
		js-sys-0.3.57 \
		lazy_static-1.4.0 \
		leb128-0.2.5 \
		libc-0.2.125 \
		libloading-0.7.3 \
		linked-hash-map-0.5.4 \
		lock_api-0.4.7 \
		log-0.4.17 \
		loupe-0.1.3 \
		loupe-derive-0.1.3 \
		mach-0.3.2 \
		machine-uid-0.2.0 \
		matches-0.1.9 \
		md5-0.7.0 \
		memchr-2.5.0 \
		memmap2-0.5.3 \
		memoffset-0.6.5 \
		memory_units-0.4.0 \
		mime-0.3.16 \
		miniz_oxide-0.5.1 \
		mio-0.8.3 \
		more-asserts-0.2.2 \
		native-tls-0.2.10 \
		nix-0.24.1 \
		num-integer-0.1.45 \
		num-traits-0.2.15 \
		num_cpus-1.13.1 \
		num_threads-0.1.6 \
		number_prefix-0.4.0 \
		object-0.28.4 \
		once_cell-1.10.0 \
		opaque-debug-0.3.0 \
		openssl-0.10.40 \
		openssl-macros-0.1.0 \
		openssl-probe-0.1.5 \
		openssl-sys-0.9.73 \
		os_str_bytes-6.0.1 \
		parking_lot-0.12.0 \
		parking_lot_core-0.9.3 \
		percent-encoding-2.1.0 \
		phf-0.7.24 \
		phf_codegen-0.7.24 \
		phf_generator-0.7.24 \
		phf_shared-0.7.24 \
		pin-project-1.0.10 \
		pin-project-internal-1.0.10 \
		pin-project-lite-0.2.9 \
		pin-utils-0.1.0 \
		pkg-config-0.3.25 \
		polyval-0.5.3 \
		ppv-lite86-0.2.16 \
		prettytable-rs-0.8.0 \
		proc-macro-error-1.0.4 \
		proc-macro-error-attr-1.0.4 \
		proc-macro-hack-0.5.19 \
		proc-macro2-1.0.38 \
		ptr_meta-0.1.4 \
		ptr_meta_derive-0.1.4 \
		quote-1.0.18 \
		rand-0.6.5 \
		rand-0.8.5 \
		rand_chacha-0.1.1 \
		rand_chacha-0.3.1 \
		rand_core-0.3.1 \
		rand_core-0.4.2 \
		rand_core-0.6.3 \
		rand_hc-0.1.0 \
		rand_isaac-0.1.1 \
		rand_jitter-0.1.4 \
		rand_os-0.1.3 \
		rand_pcg-0.1.2 \
		rand_xorshift-0.1.1 \
		rayon-1.5.3 \
		rayon-core-1.9.3 \
		rdrand-0.4.0 \
		redox_syscall-0.1.57 \
		redox_syscall-0.2.13 \
		redox_users-0.3.5 \
		regalloc-0.0.31 \
		regex-1.5.5 \
		regex-automata-0.1.10 \
		regex-syntax-0.6.25 \
		region-3.0.0 \
		remove_dir_all-0.5.3 \
		rend-0.3.6 \
		reqwest-0.11.10 \
		ring-0.16.20 \
		rkyv-0.7.38 \
		rkyv_derive-0.7.38 \
		rust-argon2-0.8.3 \
		rustc-demangle-0.1.21 \
		rustc-hash-1.1.0 \
		rustc_version-0.2.3 \
		rustc_version-0.4.0 \
		rustls-0.19.1 \
		rustls-0.20.5 \
		rustls-native-certs-0.5.0 \
		rustversion-1.0.6 \
		ryu-1.0.10 \
		schannel-0.1.19 \
		scoped-tls-1.0.0 \
		scopeguard-1.1.0 \
		sct-0.6.1 \
		sct-0.7.0 \
		seahash-4.1.0 \
		security-framework-2.6.1 \
		security-framework-sys-2.6.1 \
		semver-0.9.0 \
		semver-1.0.9 \
		semver-parser-0.7.0 \
		serde-1.0.137 \
		serde_bytes-0.11.6 \
		serde_derive-1.0.137 \
		serde_json-1.0.81 \
		serde_urlencoded-0.7.1 \
		serde_yaml-0.8.24 \
		sha1-0.6.1 \
		sha1_smol-1.0.0 \
		signal-hook-registry-1.4.0 \
		siphasher-0.2.3 \
		slab-0.4.6 \
		smallvec-1.8.0 \
		socket2-0.4.4 \
		spin-0.5.2 \
		stable_deref_trait-1.2.0 \
		standback-0.2.17 \
		stdweb-0.4.20 \
		stdweb-derive-0.5.3 \
		stdweb-internal-macros-0.2.9 \
		stdweb-internal-runtime-0.1.5 \
		strsim-0.10.0 \
		subtle-2.4.1 \
		syn-1.0.94 \
		synstructure-0.12.6 \
		target-lexicon-0.12.3 \
		tempfile-3.3.0 \
		term-0.5.2 \
		termcolor-1.1.3 \
		terminal_size-0.1.17 \
		textwrap-0.15.0 \
		thiserror-1.0.31 \
		thiserror-impl-1.0.31 \
		time-0.1.43 \
		time-0.2.27 \
		time-0.3.9 \
		time-macros-0.1.1 \
		time-macros-impl-0.1.2 \
		timeago-0.3.1 \
		tinyvec-1.6.0 \
		tinyvec_macros-0.1.0 \
		tokio-1.18.2 \
		tokio-macros-1.7.0 \
		tokio-native-tls-0.3.0 \
		tokio-rustls-0.22.0 \
		tokio-stream-0.1.8 \
		tokio-util-0.6.10 \
		tokio-util-0.7.2 \
		tower-0.4.12 \
		tower-layer-0.3.1 \
		tower-service-0.3.1 \
		tracing-0.1.34 \
		tracing-attributes-0.1.21 \
		tracing-core-0.1.26 \
		try-lock-0.2.3 \
		typenum-1.15.0 \
		unicode-bidi-0.3.8 \
		unicode-normalization-0.1.19 \
		unicode-width-0.1.9 \
		unicode-xid-0.2.3 \
		universal-hash-0.4.1 \
		untrusted-0.7.1 \
		url-2.2.2 \
		urlencoding-1.3.3 \
		uuid-0.8.2 \
		vcpkg-0.2.15 \
		version_check-0.9.4 \
		want-0.3.0 \
		wasi-0.9.0+wasi-snapshot-preview1 \
		wasi-0.10.2+wasi-snapshot-preview1 \
		wasi-0.11.0+wasi-snapshot-preview1 \
		wasm-bindgen-0.2.80 \
		wasm-bindgen-backend-0.2.80 \
		wasm-bindgen-futures-0.4.30 \
		wasm-bindgen-macro-0.2.80 \
		wasm-bindgen-macro-support-0.2.80 \
		wasm-bindgen-shared-0.2.80 \
		wasm-bindgen-test-0.3.30 \
		wasm-bindgen-test-macro-0.3.30 \
		wasmer-2.2.1 \
		wasmer-compiler-2.2.1 \
		wasmer-compiler-cranelift-2.2.1 \
		wasmer-derive-2.2.1 \
		wasmer-engine-2.2.1 \
		wasmer-engine-dylib-2.2.1 \
		wasmer-engine-universal-2.2.1 \
		wasmer-object-2.2.1 \
		wasmer-types-2.2.1 \
		wasmer-vfs-2.2.1 \
		wasmer-vm-2.2.1 \
		wasmer-wasi-2.2.1 \
		wasmer-wasi-types-2.2.1 \
		wasmparser-0.78.2 \
		wast-40.0.0 \
		wat-1.0.42 \
		web-sys-0.3.57 \
		webpki-0.21.4 \
		webpki-0.22.0 \
		wee_alloc-0.4.5 \
		which-4.2.5 \
		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-sys-0.36.1 \
		windows_aarch64_msvc-0.36.1 \
		windows_i686_gnu-0.36.1 \
		windows_i686_msvc-0.36.1 \
		windows_x86_64_gnu-0.36.1 \
		windows_x86_64_msvc-0.36.1 \
		winreg-0.6.2 \
		winreg-0.10.1 \
		xmlparser-0.13.3 \
		yaml-rust-0.4.5 \
		zeroize-1.5.5 \
		mongodb-schema-parser@git+https://github.com/mongodb-rust/mongodb-schema-parser.git?rev=2d489307dd70b63b216a9968f7dec7c217108b32\#2d489307dd70b63b216a9968f7dec7c217108b32

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

PLIST_FILES=	bin/${PORTNAME}

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

.include <bsd.port.mk>
