commit:     fbd97c7306eec311f6cc1beb2ac6d73a384639b8
Author:     James Kalyan <contrib_x <AT> protonmail <DOT> com>
AuthorDate: Fri May 28 17:30:22 2021 +0000
Commit:     James Kalyan <contrib_x <AT> protonmail <DOT> com>
CommitDate: Fri May 28 17:31:45 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fbd97c73

dev-util/rust-analyzer-bin: add live binary release

Signed-off-by: James Kalyan <contrib_x <AT> protonmail.com>

 dev-util/rust-analyzer-bin/Manifest                   |  1 +
 dev-util/rust-analyzer-bin/metadata.xml               | 12 ++++++++++++
 .../rust-analyzer-bin/rust-analyzer-bin-9999.ebuild   | 19 +++++++++++++++++++
 3 files changed, 32 insertions(+)

diff --git a/dev-util/rust-analyzer-bin/Manifest 
b/dev-util/rust-analyzer-bin/Manifest
new file mode 100644
index 000000000..af372a7c9
--- /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 000000000..e2fc8785a
--- /dev/null
+++ b/dev-util/rust-analyzer-bin/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+   <upstream>
+       <remote-id type="github">rust-analyzer/rust-analyzer</remote-id>
+       <bugs-to>https://github.com/rust-analyzer/rust-analyzer/issues</bugs-to>
+   </upstream>
+   <maintainer type="person">
+       <email>contri...@protonmail.com</email>
+       <name>James Kalyan</name>
+   </maintainer>
+</pkgmetadata>

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 000000000..23d87932d
--- /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"
+}

Reply via email to