From 4b9a84f2b453b0c4e6b0bc27418c3045a801b664 Mon Sep 17 00:00:00 2001 From: projectmoon Date: Thu, 5 Aug 2021 08:44:15 +0200 Subject: [PATCH] new rust-analyzer-bin 2021-08-02 --- .../rust-analyzer-bin-0_p20210802.ebuild | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 dev-util/rust-analyzer-bin/rust-analyzer-bin-0_p20210802.ebuild diff --git a/dev-util/rust-analyzer-bin/rust-analyzer-bin-0_p20210802.ebuild b/dev-util/rust-analyzer-bin/rust-analyzer-bin-0_p20210802.ebuild new file mode 100644 index 0000000..7b6ddb3 --- /dev/null +++ b/dev-util/rust-analyzer-bin/rust-analyzer-bin-0_p20210802.ebuild @@ -0,0 +1,31 @@ +# 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" +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" +PROPERTIES="live" + +S=${WORKDIR} + +src_install() { + newbin rust-analyzer-x86_64-unknown-linux-gnu rust-analyzer +} + +pkg_postinst() { + elog "Make sure to add your desired rust toolchain (e.g. with rustup) for rust-analyzer to work correctly" +}