From 89f35eec1561cc4be35a492d5a445efec63e4813 Mon Sep 17 00:00:00 2001 From: projectmoon Date: Wed, 21 Jul 2021 21:17:17 +0200 Subject: [PATCH] versioned rust-analyzer build --- ...99.ebuild => rust-analyzer-bin-0_p20210719.ebuild} | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) rename dev-util/rust-analyzer-bin/{rust-analyzer-bin-9999.ebuild => rust-analyzer-bin-0_p20210719.ebuild} (71%) 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"