diff --git a/dev-util/rust-analyzer-bin/rust-analyzer-bin-9999.ebuild b/dev-util/rust-analyzer-bin/rust-analyzer-bin-0_p20210719.ebuild similarity index 71% rename from dev-util/rust-analyzer-bin/rust-analyzer-bin-9999.ebuild rename to dev-util/rust-analyzer-bin/rust-analyzer-bin-0_p20210719.ebuild index 4fda953..7b6ddb3 100644 --- a/dev-util/rust-analyzer-bin/rust-analyzer-bin-9999.ebuild +++ b/dev-util/rust-analyzer-bin/rust-analyzer-bin-0_p20210719.ebuild @@ -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"