PORTNAME=	quake
DISTVERSIONPREFIX=	v
DISTVERSION=	0.5.1
PORTREVISION=	7
CATEGORIES=	databases
PKGNAMESUFFIX=	-framework

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Quake is a knowledge management meta-framework for geeks
WWW=		https://github.com/phodal/quake

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cargo

USE_GITHUB=	yes
GH_ACCOUNT=	phodal

CARGO_CRATES=	adler-1.0.2 \
		adobe-cmap-parser-0.3.3 \
		ahash-0.7.6 \
		aho-corasick-0.7.18 \
		ansi_term-0.12.1 \
		arrayvec-0.5.2 \
		async-channel-1.6.1 \
		async-executor-1.4.1 \
		async-global-executor-2.0.2 \
		async-io-1.6.0 \
		async-lock-2.4.0 \
		async-mutex-1.4.0 \
		async-std-1.10.0 \
		async-stream-0.3.2 \
		async-stream-impl-0.3.2 \
		async-task-4.0.3 \
		async-trait-0.1.51 \
		atomic-0.5.1 \
		atomic-waker-1.0.0 \
		atty-0.2.14 \
		autocfg-1.0.1 \
		base-x-0.2.8 \
		base64-0.13.0 \
		binascii-0.1.4 \
		bincode-1.3.3 \
		bit-set-0.5.2 \
		bit-vec-0.6.3 \
		bitflags-1.3.2 \
		block-buffer-0.7.3 \
		block-padding-0.1.5 \
		blocking-1.1.0 \
		bstr-0.2.17 \
		bumpalo-3.8.0 \
		byte-tools-0.3.1 \
		bytecount-0.6.2 \
		byteorder-1.4.3 \
		bytes-1.1.0 \
		bzip2-0.4.3 \
		bzip2-sys-0.1.11+1.0.8 \
		cache-padded-1.1.1 \
		cassowary-0.3.0 \
		cc-1.0.72 \
		cesu8-1.1.0 \
		cfg-if-0.1.10 \
		cfg-if-1.0.0 \
		chrono-0.4.19 \
		clap-3.1.14 \
		clap_derive-3.1.7 \
		clap_lex-0.2.0 \
		combine-4.6.4 \
		comfy-table-4.1.1 \
		concurrent-queue-1.2.2 \
		config-0.11.0 \
		const_fn-0.4.8 \
		cookie-0.15.1 \
		core-foundation-0.9.2 \
		core-foundation-sys-0.8.3 \
		crc32fast-1.3.0 \
		crossbeam-channel-0.4.4 \
		crossbeam-channel-0.5.1 \
		crossbeam-utils-0.7.2 \
		crossbeam-utils-0.8.5 \
		crossterm-0.20.0 \
		crossterm-0.22.1 \
		crossterm_winapi-0.8.0 \
		crossterm_winapi-0.9.0 \
		csv-1.1.6 \
		csv-core-0.1.10 \
		ctor-0.1.21 \
		darling-0.13.4 \
		darling_core-0.13.4 \
		darling_macro-0.13.4 \
		devise-0.3.1 \
		devise_codegen-0.3.1 \
		devise_core-0.3.1 \
		digest-0.8.1 \
		discard-1.0.4 \
		dtoa-0.4.8 \
		either-1.6.1 \
		encoding-0.2.33 \
		encoding-index-japanese-1.20141219.5 \
		encoding-index-korean-1.20141219.5 \
		encoding-index-simpchinese-1.20141219.5 \
		encoding-index-singlebyte-1.20141219.5 \
		encoding-index-tradchinese-1.20141219.5 \
		encoding_index_tests-0.1.4 \
		encoding_rs-0.8.29 \
		encoding_rs_io-0.1.7 \
		euclid-0.20.14 \
		event-listener-2.5.1 \
		fake-simd-0.1.2 \
		fallible-iterator-0.2.0 \
		fallible-streaming-iterator-0.1.9 \
		fancy-regex-0.7.1 \
		fastrand-1.5.0 \
		figment-0.10.6 \
		filetime-0.2.15 \
		flate2-1.0.22 \
		fnv-1.0.7 \
		foreign-types-0.3.2 \
		foreign-types-shared-0.1.1 \
		form_urlencoded-1.0.1 \
		fsevent-sys-4.0.0 \
		futures-0.3.18 \
		futures-channel-0.3.18 \
		futures-core-0.3.18 \
		futures-executor-0.3.18 \
		futures-io-0.3.18 \
		futures-lite-1.12.0 \
		futures-macro-0.3.18 \
		futures-sink-0.3.18 \
		futures-task-0.3.18 \
		futures-util-0.3.18 \
		generator-0.7.0 \
		generic-array-0.12.4 \
		getopts-0.2.21 \
		getrandom-0.2.3 \
		glob-0.3.0 \
		gloo-timers-0.2.2 \
		grep-matcher-0.1.5 \
		grep-regex-0.1.9 \
		grep-searcher-0.1.8 \
		h2-0.3.7 \
		hashbrown-0.11.2 \
		hashlink-0.7.0 \
		heck-0.3.3 \
		heck-0.4.0 \
		hermit-abi-0.1.19 \
		http-0.2.5 \
		http-body-0.4.4 \
		httparse-1.5.1 \
		httpdate-1.0.2 \
		hyper-0.14.15 \
		hyper-tls-0.5.0 \
		ident_case-1.0.1 \
		idna-0.2.3 \
		indexmap-1.7.0 \
		inlinable_string-0.1.14 \
		inotify-0.9.6 \
		inotify-sys-0.1.5 \
		instant-0.1.12 \
		ipnet-2.3.1 \
		itoa-0.4.8 \
		jni-0.19.0 \
		jni-sys-0.3.0 \
		js-sys-0.3.55 \
		json-0.12.4 \
		kqueue-1.0.4 \
		kqueue-sys-1.0.3 \
		kv-log-macro-1.0.7 \
		lazy_static-1.4.0 \
		lazycell-1.3.0 \
		lexical-core-0.7.6 \
		libc-0.2.109 \
		libsqlite3-sys-0.22.2 \
		line-wrap-0.1.1 \
		linked-hash-map-0.5.3 \
		lock_api-0.4.5 \
		log-0.4.14 \
		loom-0.5.4 \
		lopdf-0.26.0 \
		lzw-0.10.0 \
		maplit-1.0.2 \
		matchers-0.0.1 \
		matchers-0.1.0 \
		matches-0.1.9 \
		maybe-uninit-2.0.0 \
		memchr-2.4.1 \
		memmap2-0.3.1 \
		mime-0.3.16 \
		miniz_oxide-0.4.4 \
		mio-0.7.14 \
		mio-0.8.2 \
		miow-0.3.7 \
		multer-2.0.1 \
		native-tls-0.2.8 \
		ndk-0.6.0 \
		ndk-context-0.1.1 \
		ndk-glue-0.6.2 \
		ndk-macro-0.3.0 \
		ndk-sys-0.3.0 \
		nom-5.1.2 \
		notify-5.0.0-pre.15 \
		ntapi-0.3.6 \
		num-integer-0.1.44 \
		num-traits-0.1.43 \
		num-traits-0.2.14 \
		num_cpus-1.13.0 \
		num_enum-0.5.7 \
		num_enum_derive-0.5.7 \
		once_cell-1.8.0 \
		opaque-debug-0.2.3 \
		openssl-0.10.38 \
		openssl-probe-0.1.4 \
		openssl-sys-0.9.71 \
		os_str_bytes-6.0.0 \
		parking-2.0.0 \
		parking_lot-0.11.2 \
		parking_lot_core-0.8.5 \
		pdf-extract-0.6.3 \
		pear-0.2.3 \
		pear_codegen-0.2.3 \
		percent-encoding-2.1.0 \
		pest-2.1.3 \
		pest_derive-2.1.0 \
		pest_generator-2.1.3 \
		pest_meta-2.1.3 \
		pin-project-lite-0.2.7 \
		pin-utils-0.1.0 \
		pkg-config-0.3.23 \
		plist-1.3.1 \
		polling-2.2.0 \
		pom-1.1.0 \
		pom-3.2.0 \
		postscript-0.11.1 \
		ppv-lite86-0.2.15 \
		proc-macro-crate-1.1.3 \
		proc-macro-error-1.0.4 \
		proc-macro-error-attr-1.0.4 \
		proc-macro-hack-0.5.19 \
		proc-macro2-1.0.33 \
		proc-macro2-diagnostics-0.9.1 \
		pulldown-cmark-0.8.0 \
		pulldown-cmark-to-cmark-7.1.1 \
		quake_microsoft_todo-0.1.1 \
		quote-1.0.10 \
		rand-0.8.4 \
		rand_chacha-0.3.1 \
		rand_core-0.6.3 \
		rand_hc-0.3.1 \
		redox_syscall-0.2.10 \
		ref-cast-1.0.6 \
		ref-cast-impl-1.0.6 \
		regex-1.5.4 \
		regex-automata-0.1.10 \
		regex-syntax-0.6.25 \
		remove_dir_all-0.5.3 \
		reqwest-0.11.7 \
		rocket-0.5.0-rc.1 \
		rocket-multipart-form-data-0.10.0 \
		rocket_codegen-0.5.0-rc.1 \
		rocket_http-0.5.0-rc.1 \
		rstest-0.12.0 \
		rusqlite-0.25.3 \
		rust-ini-0.13.0 \
		rustc_version-0.2.3 \
		rustc_version-0.4.0 \
		rustversion-1.0.6 \
		ryu-1.0.6 \
		safemem-0.3.3 \
		same-file-1.0.6 \
		schannel-0.1.19 \
		scoped-tls-1.0.0 \
		scopeguard-1.1.0 \
		security-framework-2.4.2 \
		security-framework-sys-2.4.2 \
		semver-0.9.0 \
		semver-1.0.4 \
		semver-parser-0.7.0 \
		serde-0.8.23 \
		serde-1.0.130 \
		serde-hjson-0.9.1 \
		serde_derive-1.0.130 \
		serde_json-1.0.72 \
		serde_urlencoded-0.7.0 \
		serde_yaml-0.8.21 \
		sha-1-0.8.2 \
		sha1-0.6.0 \
		sharded-slab-0.1.4 \
		signal-hook-0.3.11 \
		signal-hook-mio-0.2.1 \
		signal-hook-registry-1.4.0 \
		slab-0.4.5 \
		smallvec-1.7.0 \
		socket2-0.4.2 \
		spin-0.9.2 \
		stable-pattern-0.1.0 \
		standback-0.2.17 \
		state-0.5.2 \
		static_assertions-1.1.0 \
		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 \
		strum-0.21.0 \
		strum_macros-0.21.1 \
		syn-1.0.82 \
		syntect-4.6.0 \
		tempfile-3.2.0 \
		termcolor-1.1.2 \
		textwrap-0.15.0 \
		thiserror-1.0.30 \
		thiserror-impl-1.0.30 \
		thread_local-1.1.3 \
		time-0.1.43 \
		time-0.2.27 \
		time-0.3.5 \
		time-macros-0.1.1 \
		time-macros-impl-0.1.2 \
		tinyvec-1.5.1 \
		tinyvec_macros-0.1.0 \
		tokio-1.14.0 \
		tokio-macros-1.6.0 \
		tokio-native-tls-0.3.0 \
		tokio-stream-0.1.8 \
		tokio-util-0.6.9 \
		toml-0.5.8 \
		tower-service-0.3.1 \
		tracing-0.1.29 \
		tracing-attributes-0.1.18 \
		tracing-core-0.1.21 \
		tracing-log-0.1.2 \
		tracing-serde-0.1.2 \
		tracing-subscriber-0.2.25 \
		tracing-subscriber-0.3.3 \
		try-lock-0.2.3 \
		tui-0.16.0 \
		twoway-0.2.2 \
		type1-encoding-parser-0.1.0 \
		typenum-1.14.0 \
		ubyte-0.10.1 \
		ucd-trie-0.1.3 \
		uncased-0.9.6 \
		unchecked-index-0.2.2 \
		unicase-2.6.0 \
		unicode-bidi-0.3.7 \
		unicode-normalization-0.1.19 \
		unicode-segmentation-1.8.0 \
		unicode-width-0.1.9 \
		unicode-xid-0.2.2 \
		url-2.2.2 \
		value-bag-1.0.0-alpha.8 \
		vcpkg-0.2.15 \
		version_check-0.9.3 \
		waker-fn-1.1.0 \
		walkdir-2.3.2 \
		want-0.3.0 \
		wasi-0.10.2+wasi-snapshot-preview1 \
		wasi-0.11.0+wasi-snapshot-preview1 \
		wasm-bindgen-0.2.78 \
		wasm-bindgen-backend-0.2.78 \
		wasm-bindgen-futures-0.4.28 \
		wasm-bindgen-macro-0.2.78 \
		wasm-bindgen-macro-support-0.2.78 \
		wasm-bindgen-shared-0.2.78 \
		web-sys-0.3.55 \
		webbrowser-0.7.1 \
		wepoll-ffi-0.1.2 \
		widestring-0.5.1 \
		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 \
		winreg-0.7.0 \
		xml-rs-0.8.4 \
		yaml-rust-0.4.5 \
		yansi-0.5.0 \
		zip-0.5.13

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

PLIST_FILES=	bin/${PORTNAME}

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

.include <bsd.port.mk>
