# Copyright 2023 Gabriel Sanches
# Distributed under the terms of the Zero-Clause BSD License

# Auto-Generated by cargo-ebuild 0.5.4

EAPI=8

CRATES="
	adler-1.0.2
	aho-corasick-0.7.20
	anes-0.1.6
	ansi_term-0.12.1
	anstream-0.3.0
	anstyle-1.0.0
	anstyle-parse-0.2.0
	anstyle-query-1.0.0
	anstyle-wincon-1.0.0
	anyhow-1.0.70
	assert_unordered-0.3.5
	atty-0.2.14
	autocfg-1.1.0
	beef-0.5.2
	bitflags-1.3.2
	block-buffer-0.10.4
	bstr-1.4.0
	bumpalo-3.12.0
	cast-0.3.0
	cc-1.0.79
	cfg-if-1.0.0
	chrono-0.4.24
	ciborium-0.2.0
	ciborium-io-0.2.0
	ciborium-ll-0.2.0
	clap-3.2.23
	clap-4.2.2
	clap_builder-4.2.2
	clap_derive-4.2.0
	clap_lex-0.2.4
	clap_lex-0.4.1
	colorchoice-1.0.0
	console-0.15.5
	countme-3.0.1
	cpufeatures-0.2.6
	crc32fast-1.3.2
	criterion-0.4.0
	criterion-plot-0.5.0
	crossbeam-channel-0.5.8
	crossbeam-deque-0.8.3
	crossbeam-epoch-0.9.14
	crossbeam-utils-0.8.15
	crypto-common-0.1.6
	digest-0.10.6
	dirs-5.0.0
	dirs-sys-0.4.0
	either-1.8.1
	encode_unicode-0.3.6
	encoding_rs-0.8.32
	encoding_rs_io-0.1.7
	errno-0.3.1
	errno-dragonfly-0.1.2
	fastrand-1.9.0
	fern-0.6.2
	filetime-0.2.21
	flate2-1.0.25
	fnv-1.0.7
	form_urlencoded-1.1.0
	fsevent-sys-4.1.0
	fuzzy-matcher-0.3.7
	generic-array-0.14.7
	getrandom-0.2.9
	globset-0.4.10
	half-1.8.2
	hashbrown-0.12.3
	heck-0.4.1
	hermit-abi-0.1.19
	hermit-abi-0.2.6
	hermit-abi-0.3.1
	human_name-2.0.1
	idna-0.3.0
	indexmap-1.9.3
	inotify-0.9.6
	inotify-sys-0.1.5
	insta-1.29.0
	instant-0.1.12
	io-lifetimes-1.0.10
	is-terminal-0.4.7
	isocountry-0.3.2
	itertools-0.10.5
	itoa-1.0.6
	joinery-2.1.0
	js-sys-0.3.61
	kqueue-1.0.7
	kqueue-sys-1.0.3
	lazy_static-1.4.0
	libc-0.2.141
	linked-hash-map-0.5.6
	linux-raw-sys-0.3.1
	lock_api-0.4.9
	log-0.4.17
	logos-0.13.0
	logos-codegen-0.13.0
	logos-derive-0.13.0
	lsp-server-0.7.0
	lsp-types-0.94.0
	memchr-2.5.0
	memoffset-0.8.0
	miniz_oxide-0.6.2
	mio-0.8.6
	notify-5.1.0
	num-integer-0.1.45
	num-traits-0.2.15
	num_cpus-1.15.0
	once_cell-1.17.1
	oorandom-11.1.3
	os_str_bytes-6.5.0
	parking_lot-0.12.1
	parking_lot_core-0.9.7
	percent-encoding-2.2.0
	pest-2.5.7
	pest_derive-2.5.7
	pest_generator-2.5.7
	pest_meta-2.5.7
	phf-0.11.1
	phf_codegen-0.11.1
	phf_generator-0.11.1
	phf_shared-0.11.1
	plotters-0.3.4
	plotters-backend-0.3.4
	plotters-svg-0.3.3
	proc-macro2-1.0.56
	quote-1.0.26
	rand-0.8.5
	rand_core-0.6.4
	rayon-1.7.0
	rayon-core-1.11.0
	redox_syscall-0.2.16
	redox_syscall-0.3.5
	redox_users-0.4.3
	regex-1.7.3
	regex-automata-0.1.10
	regex-syntax-0.6.29
	rowan-0.15.11
	rustc-hash-1.1.0
	rustix-0.37.11
	ryu-1.0.13
	same-file-1.0.6
	scopeguard-1.1.0
	serde-1.0.160
	serde_derive-1.0.160
	serde_json-1.0.96
	serde_regex-1.1.0
	serde_repr-0.1.12
	sha2-0.10.6
	similar-2.2.1
	siphasher-0.3.10
	smallstr-0.3.0
	smallvec-1.10.0
	smol_str-0.2.0
	strsim-0.10.0
	syn-1.0.109
	syn-2.0.13
	tempfile-3.5.0
	text-size-1.1.0
	textwrap-0.16.0
	thiserror-1.0.40
	thiserror-impl-1.0.40
	thread_local-1.1.7
	threadpool-1.8.1
	tinytemplate-1.2.1
	tinyvec-1.6.0
	tinyvec_macros-0.1.1
	titlecase-2.2.1
	typenum-1.16.0
	ucd-trie-0.1.5
	unicode-bidi-0.3.13
	unicode-case-mapping-0.4.0
	unicode-ident-1.0.8
	unicode-normalization-0.1.22
	unicode-segmentation-1.10.1
	unidecode-0.3.0
	url-2.3.1
	utf8parse-0.2.1
	version_check-0.9.4
	walkdir-2.3.3
	wasi-0.11.0+wasi-snapshot-preview1
	wasm-bindgen-0.2.84
	wasm-bindgen-backend-0.2.84
	wasm-bindgen-macro-0.2.84
	wasm-bindgen-macro-support-0.2.84
	wasm-bindgen-shared-0.2.84
	web-sys-0.3.61
	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.42.0
	windows-sys-0.45.0
	windows-sys-0.48.0
	windows-targets-0.42.2
	windows-targets-0.48.0
	windows_aarch64_gnullvm-0.42.2
	windows_aarch64_gnullvm-0.48.0
	windows_aarch64_msvc-0.42.2
	windows_aarch64_msvc-0.48.0
	windows_i686_gnu-0.42.2
	windows_i686_gnu-0.48.0
	windows_i686_msvc-0.42.2
	windows_i686_msvc-0.48.0
	windows_x86_64_gnu-0.42.2
	windows_x86_64_gnu-0.48.0
	windows_x86_64_gnullvm-0.42.2
	windows_x86_64_gnullvm-0.48.0
	windows_x86_64_msvc-0.42.2
	windows_x86_64_msvc-0.48.0
	yaml-rust-0.4.5
"

inherit cargo

DESCRIPTION="LaTeX Language Server"
HOMEPAGE="https://github.com/latex-lsp/texlab"
SRC_URI="
	${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz
	$(cargo_crate_uris)
"

# License set may be more restrictive as OR is not respected
# use cargo-license for a more accurate license picture
LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions Artistic-2 BSD Boost-1.0 CC0-1.0 GPL-3 ISC MIT Unicode-DFS-2016 Unlicense ZLIB"
SLOT="0"
KEYWORDS="~amd64"

DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""

# rust does not use *FLAGS from make.conf, silence portage warning
# update with proper path to binaries this crate installs, omit leading /
QA_FLAGS_IGNORED="usr/bin/${PN}"

src_install() {
	cargo_src_install --path ./crates/${PN}
}