mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 03:53:22 -04:00
dev-util/osc: install fish comp, use eclass for bashcomp
Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{7..9} )
|
||||
PYTHON_REQ_USE="xml"
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
|
||||
inherit distutils-r1
|
||||
inherit bash-completion-r1 distutils-r1
|
||||
|
||||
DESCRIPTION="Command line tool for Open Build Service"
|
||||
HOMEPAGE="
|
||||
@@ -55,11 +55,12 @@ src_install() {
|
||||
distutils-r1_src_install
|
||||
|
||||
dosym osc-wrapper.py /usr/bin/osc
|
||||
rm -f "${ED}/usr/share/doc/${PN}"*/TODO*
|
||||
insinto /usr/share/bash-completion/completions
|
||||
newins dist/complete.sh osc
|
||||
rm -f "${ED}/usr/share/doc/${PN}"*/TODO* || die
|
||||
newbashcomp dist/complete.sh "${PN}"
|
||||
insinto /usr/lib/osc
|
||||
newins dist/osc.complete complete
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins "${FILESDIR}/osc.zsh_completion" _osc
|
||||
insinto /usr/share/fish/vendor_completions.d
|
||||
doins osc.fish
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user