commit:     f5e8022123785a93b308c55cffb1d144daf38a97
Author:     Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 14 16:36:19 2018 +0000
Commit:     Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
CommitDate: Sat Jul 14 16:36:34 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5e80221

dev-lang/rust: fix problems with symlinking new binaries

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 dev-lang/rust/{rust-1.27.1-r1.ebuild => rust-1.27.1-r2.ebuild} | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/dev-lang/rust/rust-1.27.1-r1.ebuild 
b/dev-lang/rust/rust-1.27.1-r2.ebuild
similarity index 96%
rename from dev-lang/rust/rust-1.27.1-r1.ebuild
rename to 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}"

Reply via email to