versioned rust-analyzer build

This commit is contained in:
projectmoon 2021-07-21 21:17:17 +02:00
parent 188958a0ea
commit 89f35eec15
1 changed files with 10 additions and 1 deletions

View File

@ -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"