diff options
author | Eli Schwartz <eschwartz93@gmail.com> | 2024-03-01 16:40:29 -0500 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-03-14 06:39:43 +0000 |
commit | db11dab583a1250c3b5b15e2d022a73a09314d7b (patch) | |
tree | 6afb9c6472281b7dc196f7e14e9d125a71db79c1 /dev-util/ruff | |
parent | dev-util/ruff: install as a standard cargo project (diff) | |
download | gentoo-db11dab583a1250c3b5b15e2d022a73a09314d7b.tar.gz gentoo-db11dab583a1250c3b5b15e2d022a73a09314d7b.tar.bz2 gentoo-db11dab583a1250c3b5b15e2d022a73a09314d7b.zip |
dev-util/ruff: install shell completions
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/ruff')
-rw-r--r-- | dev-util/ruff/ruff-0.3.0-r1.ebuild | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dev-util/ruff/ruff-0.3.0-r1.ebuild b/dev-util/ruff/ruff-0.3.0-r1.ebuild index 820d220acffd..abcdb9b15d4c 100644 --- a/dev-util/ruff/ruff-0.3.0-r1.ebuild +++ b/dev-util/ruff/ruff-0.3.0-r1.ebuild @@ -360,7 +360,7 @@ CRATES=" zeroize@1.7.0 " -inherit cargo +inherit cargo shell-completion DESCRIPTION="An extremely fast Python linter, written in Rust" HOMEPAGE=" @@ -429,6 +429,9 @@ src_compile() { for solib in "target/$(usex 'debug' 'debug' 'release')"/*.so; do patchelf --set-soname "${solib##*/}" "${solib}" || die done + + ${releasedir}/ruff generate-shell-completion bash > ruff-completion.bash || die + ${releasedir}/ruff generate-shell-completion zsh > ruff-completion.zsh || die } src_test() { @@ -441,5 +444,8 @@ src_install() { dobin ${releasedir}/ruff{,_{dev,python_formatter,shrinking}} dolib.so "${releasedir}"/*.so + newbashcomp ruff-completion.bash ruff + newzshcomp ruff-completion.zsh _ruff + dodoc -r "${DOCS[@]}" } |