From 17f301d3c0899589136861a79db35136756290c9 Mon Sep 17 00:00:00 2001 From: projectmoon Date: Wed, 14 Dec 2022 11:00:36 +0100 Subject: [PATCH] dev-util/rust-analyzer-bin: add 0_p20221212 --- dev-util/rust-analyzer-bin/Manifest | 1 + .../rust-analyzer-bin-0_p20221212.ebuild | 30 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 dev-util/rust-analyzer-bin/rust-analyzer-bin-0_p20221212.ebuild diff --git a/dev-util/rust-analyzer-bin/Manifest b/dev-util/rust-analyzer-bin/Manifest index 21db4ef..e7f52ab 100644 --- a/dev-util/rust-analyzer-bin/Manifest +++ b/dev-util/rust-analyzer-bin/Manifest @@ -1 +1,2 @@ +DIST rust-analyzer-2022-12-12.gz 12848044 BLAKE2B b3c6e1b192d8db6518997b93b12551c1f43e70ca74a306395b764a73982b329712931f34932dd98f866d3e6850bd59dd533edaca8f06ca9f7b41ac6526552388 SHA512 b9d787307021a3753df7a2ef05e52aaf8b0389000770dadd326d5476ac20ef6b328741412601fb5dc467e0511911065f59bd86b5b96f5da265658c0579e54a72 DIST rust-analyzer-x86_64-unknown-linux-gnu.gz 11550409 BLAKE2B 6d1dc7dd15375016f153d53c408f882f219778dfbeaa98e15fcb51a5f6704b29a73205c1c2ed1162ad2794387d9abc3fc569a19d243135428fc4ab6b46b9bcac SHA512 c23b2e9d645863b84e0961429c654365887f265faf883f94b62bedc4a9b8de25c00cc3e1653d614f485bebb9cbe4abb241072955d8d46bdc082795d597285422 diff --git a/dev-util/rust-analyzer-bin/rust-analyzer-bin-0_p20221212.ebuild b/dev-util/rust-analyzer-bin/rust-analyzer-bin-0_p20221212.ebuild new file mode 100644 index 0000000..e96a0b6 --- /dev/null +++ b/dev-util/rust-analyzer-bin/rust-analyzer-bin-0_p20221212.ebuild @@ -0,0 +1,30 @@ +# Copyright 2021-2022 Gentoo Authors, projectmoon +# 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/download/${VERSION}/rust-analyzer-x86_64-unknown-linux-gnu.gz -> rust-analyzer-${VERSION}.gz" +LICENSE="Apache-2.0 MIT-with-advertising" +SLOT="0" +PROPERTIES="live" + +S=${WORKDIR} + +src_install() { + newbin "rust-analyzer-${VERSION}" rust-analyzer +} + +pkg_postinst() { + elog "Make sure to add your desired rust toolchain (e.g. with rustup) for rust-analyzer to work correctly" +}