From fbd97c7306eec311f6cc1beb2ac6d73a384639b8 Mon Sep 17 00:00:00 2001 From: James Kalyan Date: Fri, 28 May 2021 11:30:22 -0600 Subject: [PATCH] dev-util/rust-analyzer-bin: add live binary release Signed-off-by: James Kalyan --- dev-util/rust-analyzer-bin/Manifest | 1 + dev-util/rust-analyzer-bin/metadata.xml | 12 ++++++++++++ .../rust-analyzer-bin-9999.ebuild | 19 +++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 dev-util/rust-analyzer-bin/Manifest create mode 100644 dev-util/rust-analyzer-bin/metadata.xml create mode 100644 dev-util/rust-analyzer-bin/rust-analyzer-bin-9999.ebuild diff --git a/dev-util/rust-analyzer-bin/Manifest b/dev-util/rust-analyzer-bin/Manifest new file mode 100644 index 0000000000..af372a7c97 --- /dev/null +++ b/dev-util/rust-analyzer-bin/Manifest @@ -0,0 +1 @@ +DIST rust-analyzer-linux.gz 11238720 BLAKE2B 70145477970d78d2dd68ddf332040aa7bc653bbaf3d8942a5df6c44589cdeb98a580bf6385bc1c91b06681027f494c69a89ba7c9dfe3ee24634c79e81c09a262 SHA512 5b8f49a878b67f75250c61cfaaf7bf401f87debdb131a4a1bb6026747d906031c934abe6fc8687222a2736cbcf2c862a130bca3f73828849e2b5e7a8fda47ea5 diff --git a/dev-util/rust-analyzer-bin/metadata.xml b/dev-util/rust-analyzer-bin/metadata.xml new file mode 100644 index 0000000000..e2fc8785a8 --- /dev/null +++ b/dev-util/rust-analyzer-bin/metadata.xml @@ -0,0 +1,12 @@ + + + + + rust-analyzer/rust-analyzer + https://github.com/rust-analyzer/rust-analyzer/issues + + + contrib_x@protonmail.com + James Kalyan + + diff --git a/dev-util/rust-analyzer-bin/rust-analyzer-bin-9999.ebuild b/dev-util/rust-analyzer-bin/rust-analyzer-bin-9999.ebuild new file mode 100644 index 0000000000..23d87932d3 --- /dev/null +++ b/dev-util/rust-analyzer-bin/rust-analyzer-bin-9999.ebuild @@ -0,0 +1,19 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +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-linux.gz" + +LICENSE="Apache-2.0" +SLOT="0" +PROPERTIES="live" + +S=${WORKDIR} + +src_install() { + newbin rust-analyzer-linux rust-analyzer + elog "Make sure to add your desired rust toolchain (e.g. with rustup) for rust-analyzer to work correctly" +}