From aeec91d83961d12d40f2a95bc85ec60a9db38684 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Wed, 20 Jul 2022 11:48:56 -0400 Subject: dev-util/rust-analyzer: use git sources --- dev-util/rust-analyzer/rust-analyzer-20220718.ebuild | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dev-util/rust-analyzer/rust-analyzer-20220718.ebuild') diff --git a/dev-util/rust-analyzer/rust-analyzer-20220718.ebuild b/dev-util/rust-analyzer/rust-analyzer-20220718.ebuild index 6764dd8..603a4ce 100644 --- a/dev-util/rust-analyzer/rust-analyzer-20220718.ebuild +++ b/dev-util/rust-analyzer/rust-analyzer-20220718.ebuild @@ -13,8 +13,10 @@ if [[ "${PV}" == *9999* ]]; then EGIT_REPO_URI="https://github.com/rust-analyzer/rust-analyzer" else KEYWORDS="~amd64" + inherit git-r3 MY_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}" - SRC_URI="https://github.com/rust-analyzer/rust-analyzer/archive/${MY_PV}.tar.gz -> ${P}.tar.gz $(cargo_crate_uris)" + EGIT_REPO_URI="https://github.com/rust-analyzer/rust-analyzer" + EGIT_COMMIT="${MY_PV}" fi DESCRIPTION="An implementation of Language Server Protocol for the Rust programming language" @@ -47,4 +49,4 @@ src_test() { src_install() { cargo_src_install --path "./crates/rust-analyzer" -} \ No newline at end of file +} -- cgit v1.2.3