mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
dev-lang/rust-bin: search for rust-analyzer only if exists
Closes: https://bugs.gentoo.org/951083 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
@@ -173,13 +173,15 @@ patchelf_for_bin() {
|
||||
|
||||
rust_native_abi_install() {
|
||||
pushd "${S}" >/dev/null || die
|
||||
local analysis="$(grep 'analysis' ./components || die "analysis not found in components")"
|
||||
local std="$(grep 'std' ./components || die "std not found in components")"
|
||||
local components=( "rustc" "cargo" "${std}" )
|
||||
use doc && components+=( "rust-docs" )
|
||||
use clippy && components+=( "clippy-preview" )
|
||||
use rustfmt && components+=( "rustfmt-preview" )
|
||||
use rust-analyzer && components+=( "rust-analyzer-preview" "${analysis}" )
|
||||
if use rust-analyzer; then
|
||||
local analysis="$(grep 'analysis' ./components || die "analysis not found in components")"
|
||||
components+=( "rust-analyzer-preview" "${analysis}" )
|
||||
fi
|
||||
# Rust component 'rust-src' is extracted from separate archive
|
||||
if use rust-src; then
|
||||
einfo "Combining rust and rust-src installers"
|
||||
|
||||
@@ -173,13 +173,15 @@ patchelf_for_bin() {
|
||||
|
||||
rust_native_abi_install() {
|
||||
pushd "${S}" >/dev/null || die
|
||||
local analysis="$(grep 'analysis' ./components || die "analysis not found in components")"
|
||||
local std="$(grep 'std' ./components || die "std not found in components")"
|
||||
local components=( "rustc" "cargo" "${std}" )
|
||||
use doc && components+=( "rust-docs" )
|
||||
use clippy && components+=( "clippy-preview" )
|
||||
use rustfmt && components+=( "rustfmt-preview" )
|
||||
use rust-analyzer && components+=( "rust-analyzer-preview" "${analysis}" )
|
||||
if use rust-analyzer; then
|
||||
local analysis="$(grep 'analysis' ./components || die "analysis not found in components")"
|
||||
components+=( "rust-analyzer-preview" "${analysis}" )
|
||||
fi
|
||||
# Rust component 'rust-src' is extracted from separate archive
|
||||
if use rust-src; then
|
||||
einfo "Combining rust and rust-src installers"
|
||||
|
||||
Reference in New Issue
Block a user