dev-lang/rust: fix problems with symlinking new binaries
authorDirkjan Ochtman <djc@gentoo.org>
Sat, 14 Jul 2018 16:36:19 +0000 (18:36 +0200)
committerDirkjan Ochtman <djc@gentoo.org>
Sat, 14 Jul 2018 16:36:34 +0000 (18:36 +0200)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

dev-lang/rust/rust-1.27.1-r2.ebuild [moved from dev-lang/rust/rust-1.27.1-r1.ebuild with 96% similarity]

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 2ce91ade5abba6835efe24a87ee443dc6d146cd5..1dc2182f159c9b9d2d762125b84800f1472c64de 100644 (file)
@@ -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}"