PORTNAME=	ghostie
DISTVERSIONPREFIX=	v
DISTVERSION=	0.2.1
PORTREVISION=	7
CATEGORIES=	devel

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Github notifications in your terminal
WWW=		https://github.com/attriaayush/ghostie

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cargo sqlite ssl
USE_GITHUB=	yes
GH_ACCOUNT=	attriaayush

CARGO_CRATES=	ahash-0.7.6 \
		aho-corasick-0.7.20 \
		android_system_properties-0.1.5 \
		anyhow-1.0.66 \
		async-attributes-1.1.2 \
		async-broadcast-0.4.1 \
		async-channel-1.7.1 \
		async-executor-1.5.0 \
		async-global-executor-2.3.1 \
		async-io-1.10.0 \
		async-lock-2.6.0 \
		async-recursion-0.3.2 \
		async-std-1.12.0 \
		async-task-4.3.0 \
		async-trait-0.1.58 \
		atomic-waker-1.0.0 \
		atty-0.2.14 \
		autocfg-1.1.0 \
		base64-0.13.1 \
		bitflags-1.3.2 \
		block-0.1.6 \
		blocking-1.2.0 \
		boxfnonce-0.1.1 \
		bumpalo-3.11.1 \
		byteorder-1.4.3 \
		bytes-1.3.0 \
		cache-padded-1.2.0 \
		cassowary-0.3.0 \
		cc-1.0.77 \
		cfg-if-1.0.0 \
		chrono-0.4.23 \
		clap-3.2.23 \
		clap_derive-3.2.18 \
		clap_lex-0.2.4 \
		codespan-reporting-0.11.1 \
		concurrent-queue-1.2.4 \
		concurrent-queue-2.0.0 \
		console-0.15.2 \
		core-foundation-0.9.3 \
		core-foundation-sys-0.8.3 \
		crossbeam-channel-0.5.6 \
		crossbeam-deque-0.8.2 \
		crossbeam-epoch-0.9.13 \
		crossbeam-utils-0.8.14 \
		crossterm-0.25.0 \
		crossterm_winapi-0.9.0 \
		ctor-0.1.26 \
		cxx-1.0.82 \
		cxx-build-1.0.82 \
		cxxbridge-flags-1.0.82 \
		cxxbridge-macro-1.0.82 \
		daemonize-0.4.1 \
		dashmap-5.4.0 \
		derivative-2.2.0 \
		dialoguer-0.10.2 \
		dirs-4.0.0 \
		dirs-next-2.0.0 \
		dirs-sys-0.3.7 \
		dirs-sys-next-0.1.2 \
		either-1.8.0 \
		encode_unicode-0.3.6 \
		encoding_rs-0.8.31 \
		enumflags2-0.7.5 \
		enumflags2_derive-0.7.4 \
		event-listener-2.5.3 \
		fake-2.5.0 \
		fallible-iterator-0.2.0 \
		fallible-streaming-iterator-0.1.9 \
		fastrand-1.8.0 \
		fnv-1.0.7 \
		foreign-types-0.3.2 \
		foreign-types-shared-0.1.1 \
		form_urlencoded-1.1.0 \
		futures-0.3.25 \
		futures-channel-0.3.25 \
		futures-core-0.3.25 \
		futures-executor-0.3.25 \
		futures-io-0.3.25 \
		futures-lite-1.12.0 \
		futures-macro-0.3.25 \
		futures-sink-0.3.25 \
		futures-task-0.3.25 \
		futures-util-0.3.25 \
		getrandom-0.2.8 \
		gloo-timers-0.2.4 \
		h2-0.3.15 \
		hashbrown-0.12.3 \
		hashlink-0.8.1 \
		heck-0.3.3 \
		heck-0.4.0 \
		hermit-abi-0.1.19 \
		hex-0.4.3 \
		http-0.2.8 \
		http-body-0.4.5 \
		httparse-1.8.0 \
		httpdate-1.0.2 \
		hyper-0.14.23 \
		hyper-tls-0.5.0 \
		iana-time-zone-0.1.53 \
		iana-time-zone-haiku-0.1.1 \
		idna-0.3.0 \
		indexmap-1.9.2 \
		instant-0.1.12 \
		ipnet-2.5.1 \
		itoa-1.0.4 \
		js-sys-0.3.60 \
		kv-log-macro-1.0.7 \
		lazy_static-1.4.0 \
		libc-0.2.137 \
		libsqlite3-sys-0.25.2 \
		link-cplusplus-1.0.7 \
		lock_api-0.4.9 \
		log-0.4.17 \
		mac-notification-sys-0.5.6 \
		malloc_buf-0.0.6 \
		memchr-2.5.0 \
		memoffset-0.6.5 \
		memoffset-0.7.1 \
		mime-0.3.16 \
		mio-0.8.5 \
		native-tls-0.2.11 \
		nix-0.23.1 \
		notify-rust-4.5.10 \
		ntapi-0.4.0 \
		num-integer-0.1.45 \
		num-traits-0.2.15 \
		num_cpus-1.14.0 \
		objc-0.2.7 \
		objc-foundation-0.1.1 \
		objc_id-0.1.1 \
		once_cell-1.16.0 \
		open-3.2.0 \
		openssl-0.10.42 \
		openssl-macros-0.1.0 \
		openssl-probe-0.1.5 \
		openssl-sys-0.9.77 \
		ordered-stream-0.0.1 \
		os_str_bytes-6.4.1 \
		parking-2.0.0 \
		parking_lot-0.12.1 \
		parking_lot_core-0.9.4 \
		pathdiff-0.2.1 \
		percent-encoding-2.2.0 \
		pin-project-lite-0.2.9 \
		pin-utils-0.1.0 \
		pkg-config-0.3.26 \
		polling-2.4.0 \
		ppv-lite86-0.2.17 \
		proc-macro-crate-1.2.1 \
		proc-macro-error-1.0.4 \
		proc-macro-error-attr-1.0.4 \
		proc-macro2-1.0.47 \
		quick-xml-0.23.1 \
		quote-1.0.21 \
		rand-0.8.5 \
		rand_chacha-0.3.1 \
		rand_core-0.6.4 \
		rayon-1.6.0 \
		rayon-core-1.10.1 \
		redox_syscall-0.2.16 \
		redox_users-0.4.3 \
		regex-1.7.0 \
		regex-syntax-0.6.28 \
		remove_dir_all-0.5.3 \
		reqwest-0.11.13 \
		rusqlite-0.28.0 \
		ryu-1.0.11 \
		schannel-0.1.20 \
		scopeguard-1.1.0 \
		scratch-1.0.2 \
		security-framework-2.7.0 \
		security-framework-sys-2.6.1 \
		serde-1.0.147 \
		serde_derive-1.0.147 \
		serde_json-1.0.89 \
		serde_repr-0.1.9 \
		serde_urlencoded-0.7.1 \
		serial_test-0.9.0 \
		serial_test_derive-0.9.0 \
		sha1-0.6.1 \
		sha1_smol-1.0.0 \
		signal-hook-0.3.14 \
		signal-hook-mio-0.2.3 \
		signal-hook-registry-1.4.0 \
		slab-0.4.7 \
		smallvec-1.10.0 \
		socket2-0.4.7 \
		static_assertions-1.1.0 \
		strsim-0.10.0 \
		strum-0.22.0 \
		strum_macros-0.22.0 \
		syn-1.0.103 \
		sysinfo-0.26.7 \
		tauri-winrt-notification-0.1.0 \
		tempfile-3.3.0 \
		termcolor-1.1.3 \
		terminal_size-0.1.17 \
		textwrap-0.16.0 \
		thiserror-1.0.37 \
		thiserror-impl-1.0.37 \
		time-0.3.17 \
		time-core-0.1.0 \
		tinyvec-1.6.0 \
		tinyvec_macros-0.1.0 \
		tokio-1.22.0 \
		tokio-native-tls-0.3.0 \
		tokio-util-0.7.4 \
		toml-0.5.9 \
		tower-service-0.3.2 \
		tracing-0.1.37 \
		tracing-attributes-0.1.23 \
		tracing-core-0.1.30 \
		try-lock-0.2.3 \
		tui-0.19.0 \
		uds_windows-1.0.2 \
		unicode-bidi-0.3.8 \
		unicode-ident-1.0.5 \
		unicode-normalization-0.1.22 \
		unicode-segmentation-1.10.0 \
		unicode-width-0.1.10 \
		url-2.3.1 \
		value-bag-1.0.0-alpha.9 \
		vcpkg-0.2.15 \
		version_check-0.9.4 \
		waker-fn-1.1.0 \
		want-0.3.0 \
		wasi-0.11.0+wasi-snapshot-preview1 \
		wasm-bindgen-0.2.83 \
		wasm-bindgen-backend-0.2.83 \
		wasm-bindgen-futures-0.4.33 \
		wasm-bindgen-macro-0.2.83 \
		wasm-bindgen-macro-support-0.2.83 \
		wasm-bindgen-shared-0.2.83 \
		web-sys-0.3.60 \
		wepoll-ffi-0.1.2 \
		which-4.1.0 \
		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.39.0 \
		windows-sys-0.36.1 \
		windows-sys-0.42.0 \
		windows_aarch64_gnullvm-0.42.0 \
		windows_aarch64_msvc-0.36.1 \
		windows_aarch64_msvc-0.39.0 \
		windows_aarch64_msvc-0.42.0 \
		windows_i686_gnu-0.36.1 \
		windows_i686_gnu-0.39.0 \
		windows_i686_gnu-0.42.0 \
		windows_i686_msvc-0.36.1 \
		windows_i686_msvc-0.39.0 \
		windows_i686_msvc-0.42.0 \
		windows_x86_64_gnu-0.36.1 \
		windows_x86_64_gnu-0.39.0 \
		windows_x86_64_gnu-0.42.0 \
		windows_x86_64_gnullvm-0.42.0 \
		windows_x86_64_msvc-0.36.1 \
		windows_x86_64_msvc-0.39.0 \
		windows_x86_64_msvc-0.42.0 \
		winreg-0.10.1 \
		zbus-2.3.2 \
		zbus_macros-2.3.2 \
		zbus_names-2.3.0 \
		zeroize-1.5.7 \
		zvariant-3.8.0 \
		zvariant_derive-3.8.0 \
		clokwerk@git+https://github.com/attriaayush/clokwerk\#f8180dfe64a98d39a5cded998998a3df8809b92c

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

PLIST_FILES=	bin/${PORTNAME}

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

.include <bsd.port.mk>
