versioned rust-analyzer build
This commit is contained in:
parent
188958a0ea
commit
89f35eec15
|
@ -5,7 +5,16 @@ EAPI=7
|
|||
|
||||
DESCRIPTION="An implementation of Language Server Protocol for the Rust programming language"
|
||||
HOMEPAGE="https://rust-analyzer.github.io"
|
||||
SRC_URI="https://github.com/rust-analyzer/rust-analyzer/releases/latest/download/rust-analyzer-x86_64-unknown-linux-gnu.gz"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
# rust-analyzer makes date-based releases at the moment.
|
||||
DATE=${PV:3:8}
|
||||
YEAR=${DATE:0:4}
|
||||
MONTH=${DATE:4:2}
|
||||
DAY=${DATE:6:2}
|
||||
VERSION="${YEAR}-${MONTH}-${DAY}"
|
||||
|
||||
SRC_URI="https://github.com/rust-analyzer/rust-analyzer/releases/${VERSION}/download/rust-analyzer-x86_64-unknown-linux-gnu.gz"
|
||||
|
||||
LICENSE="Apache-2.0 MIT-with-advertising"
|
||||
SLOT="0"
|
Loading…
Reference in New Issue