summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerion Entrup <gerion.entrup@flump.de>2019-12-05 15:42:14 +0100
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2019-12-11 16:36:42 -0800
commit79354e8855d6fcfac01f34d21708fb57c5b48c4a (patch)
treee90fea40a2164dcb416048baa55c1524c53cca44 /dev-lang/rust
parentdev-util/bcc-0.12.0-r1: Revbump, works with older linux-headers (diff)
downloadgentoo-79354e8855d6fcfac01f34d21708fb57c5b48c4a.tar.gz
gentoo-79354e8855d6fcfac01f34d21708fb57c5b48c4a.tar.bz2
gentoo-79354e8855d6fcfac01f34d21708fb57c5b48c4a.zip
dev-lang/rust: fix bash completion location
Bug: https://bugs.gentoo.org/689562 Bug: https://bugs.gentoo.org/689160 Package-Manager: Portage-2.3.79, Repoman-2.3.16 Signed-off-by: Gerion Entrup <gerion.entrup@flump.de> Closes: https://github.com/gentoo/gentoo/pull/13884 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-lang/rust')
-rw-r--r--dev-lang/rust/rust-1.39.0.ebuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/dev-lang/rust/rust-1.39.0.ebuild b/dev-lang/rust/rust-1.39.0.ebuild
index 8a80a66450bd..f918098e20cf 100644
--- a/dev-lang/rust/rust-1.39.0.ebuild
+++ b/dev-lang/rust/rust-1.39.0.ebuild
@@ -5,7 +5,7 @@ EAPI=7
PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy )
-inherit check-reqs estack flag-o-matic llvm multiprocessing multilib-build python-any-r1 rust-toolchain toolchain-funcs
+inherit bash-completion-r1 check-reqs estack flag-o-matic llvm multiprocessing multilib-build python-any-r1 rust-toolchain toolchain-funcs
if [[ ${PV} = *beta* ]]; then
betaver=${PV//*beta}
@@ -234,6 +234,11 @@ src_install() {
env DESTDIR="${D}" "${EPYTHON}" ./x.py install -vv --config="${S}"/config.toml \
--exclude src/tools/miri || die
+ # bug #689562, #689160
+ rm "${D}/etc/bash_completion.d/cargo" || die
+ rmdir -p "${D}/etc" || die
+ dobashcomp build/tmp/dist/cargo-image/etc/bash_completion.d/cargo
+
mv "${ED}/usr/bin/rustc" "${ED}/usr/bin/rustc-${PV}" || die
mv "${ED}/usr/bin/rustdoc" "${ED}/usr/bin/rustdoc-${PV}" || die
mv "${ED}/usr/bin/rust-gdb" "${ED}/usr/bin/rust-gdb-${PV}" || die