Gentoo Archives: gentoo-commits

From: James Kalyan <contrib_x@××××××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-util/rust-analyzer-bin/
Date: Fri, 28 May 2021 17:35:45
Message-Id: 1622223105.fbd97c7306eec311f6cc1beb2ac6d73a384639b8.contrib_x@gentoo
1 commit: fbd97c7306eec311f6cc1beb2ac6d73a384639b8
2 Author: James Kalyan <contrib_x <AT> protonmail <DOT> com>
3 AuthorDate: Fri May 28 17:30:22 2021 +0000
4 Commit: James Kalyan <contrib_x <AT> protonmail <DOT> com>
5 CommitDate: Fri May 28 17:31:45 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fbd97c73
7
8 dev-util/rust-analyzer-bin: add live binary release
9
10 Signed-off-by: James Kalyan <contrib_x <AT> protonmail.com>
11
12 dev-util/rust-analyzer-bin/Manifest | 1 +
13 dev-util/rust-analyzer-bin/metadata.xml | 12 ++++++++++++
14 .../rust-analyzer-bin/rust-analyzer-bin-9999.ebuild | 19 +++++++++++++++++++
15 3 files changed, 32 insertions(+)
16
17 diff --git a/dev-util/rust-analyzer-bin/Manifest b/dev-util/rust-analyzer-bin/Manifest
18 new file mode 100644
19 index 000000000..af372a7c9
20 --- /dev/null
21 +++ b/dev-util/rust-analyzer-bin/Manifest
22 @@ -0,0 +1 @@
23 +DIST rust-analyzer-linux.gz 11238720 BLAKE2B 70145477970d78d2dd68ddf332040aa7bc653bbaf3d8942a5df6c44589cdeb98a580bf6385bc1c91b06681027f494c69a89ba7c9dfe3ee24634c79e81c09a262 SHA512 5b8f49a878b67f75250c61cfaaf7bf401f87debdb131a4a1bb6026747d906031c934abe6fc8687222a2736cbcf2c862a130bca3f73828849e2b5e7a8fda47ea5
24
25 diff --git a/dev-util/rust-analyzer-bin/metadata.xml b/dev-util/rust-analyzer-bin/metadata.xml
26 new file mode 100644
27 index 000000000..e2fc8785a
28 --- /dev/null
29 +++ b/dev-util/rust-analyzer-bin/metadata.xml
30 @@ -0,0 +1,12 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <upstream>
35 + <remote-id type="github">rust-analyzer/rust-analyzer</remote-id>
36 + <bugs-to>https://github.com/rust-analyzer/rust-analyzer/issues</bugs-to>
37 + </upstream>
38 + <maintainer type="person">
39 + <email>contrib_x@××××××××××.com</email>
40 + <name>James Kalyan</name>
41 + </maintainer>
42 +</pkgmetadata>
43
44 diff --git a/dev-util/rust-analyzer-bin/rust-analyzer-bin-9999.ebuild b/dev-util/rust-analyzer-bin/rust-analyzer-bin-9999.ebuild
45 new file mode 100644
46 index 000000000..23d87932d
47 --- /dev/null
48 +++ b/dev-util/rust-analyzer-bin/rust-analyzer-bin-9999.ebuild
49 @@ -0,0 +1,19 @@
50 +# Copyright 2021 Gentoo Authors
51 +# Distributed under the terms of the GNU General Public License v2
52 +
53 +EAPI=7
54 +
55 +DESCRIPTION="An implementation of Language Server Protocol for the Rust programming language"
56 +HOMEPAGE="https://rust-analyzer.github.io"
57 +SRC_URI="https://github.com/rust-analyzer/rust-analyzer/releases/latest/download/rust-analyzer-linux.gz"
58 +
59 +LICENSE="Apache-2.0"
60 +SLOT="0"
61 +PROPERTIES="live"
62 +
63 +S=${WORKDIR}
64 +
65 +src_install() {
66 + newbin rust-analyzer-linux rust-analyzer
67 + elog "Make sure to add your desired rust toolchain (e.g. with rustup) for rust-analyzer to work correctly"
68 +}