dev-util/rust-analyzer-bin: add 0_p20221212

This commit is contained in:
projectmoon 2022-12-14 11:00:36 +01:00
parent 64c89a82ed
commit 17f301d3c0
2 changed files with 31 additions and 0 deletions

View File

@ -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

View File

@ -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"
}