summaryrefslogtreecommitdiff
path: root/dev-util/rust-analyzer/rust-analyzer-99999999.ebuild
blob: fc4854b6e91b08f84a00aabd951319d643051787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

CRATES=""

inherit cargo git-r3

DESCRIPTION="A language server for the Rust programming language"
HOMEPAGE="https://rust-analyzer.github.io/"
EGIT_REPO_URI="https://github.com/rust-analyzer/rust-analyzer"
EGIT_BRANCH="master"
EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}"
S="${EGIT_CHECKOUT_DIR}"

LICENSE="0BSD Apache-2.0 Artistic-2 BSD Boost-1.0 CC0-1.0 ISC MIT Unlicense ZLIB"
SLOT="0"

BDEPEND="${BDEPEND}
	>=dev-lang/rust-1.55.0"

RESTRICT="test"
DOCS=( README.md PRIVACY.md )

src_unpack() {
	git-r3_src_unpack
	cargo_live_src_unpack
}

src_configure() {
	cargo_src_configure --no-default-features
}

src_compile () {
	cargo_src_compile --manifest-path "${S}"/crates/${PN}/Cargo.toml
}

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