summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2018-07-14 18:36:19 +0200
committerDirkjan Ochtman <djc@gentoo.org>2018-07-14 18:36:34 +0200
commitf5e8022123785a93b308c55cffb1d144daf38a97 (patch)
tree0c7ed51a94c4e2b3946c9f0dba3cfa07383a12c4
parentapp-office/libreoffice: Simpler check-reqs (diff)
downloadgentoo-f5e8022123785a93b308c55cffb1d144daf38a97.tar.gz
gentoo-f5e8022123785a93b308c55cffb1d144daf38a97.tar.bz2
gentoo-f5e8022123785a93b308c55cffb1d144daf38a97.zip
dev-lang/rust: fix problems with symlinking new binaries
Package-Manager: Portage-2.3.40, Repoman-2.3.9
-rw-r--r--dev-lang/rust/rust-1.27.1-r2.ebuild (renamed from dev-lang/rust/rust-1.27.1-r1.ebuild)10
1 files changed, 10 insertions, 0 deletions
diff --git a/dev-lang/rust/rust-1.27.1-r1.ebuild b/dev-lang/rust/rust-1.27.1-r2.ebuild
index 2ce91ade5ab..1dc2182f159 100644
--- a/dev-lang/rust/rust-1.27.1-r1.ebuild
+++ b/dev-lang/rust/rust-1.27.1-r2.ebuild
@@ -232,6 +232,16 @@ src_install() {
/usr/bin/rust-gdb
/usr/bin/rust-lldb
EOF
+ if use cargo; then
+ echo /usr/bin/cargo >> "${T}/provider-${P}"
+ fi
+ if use rls; then
+ echo /usr/bin/rls >> "${T}/provider-${P}"
+ fi
+ if use rustfmt; then
+ echo /usr/bin/rustfmt >> "${T}/provider-${P}"
+ echo /usr/bin/cargo-fmt >> "${T}/provider-${P}"
+ fi
dodir /etc/env.d/rust
insinto /etc/env.d/rust
doins "${T}/provider-${P}"