sci-physics/yoda: Fix bashcompletion

Bug: https://bugs.gentoo.org/926510
Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
Closes: https://github.com/gentoo/gentoo/pull/35746
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
Alexander Puck Neuwirth
2024-03-17 19:37:17 +01:00
committed by Andrew Ammerlaan
parent 5e2741b26c
commit b155b1eb7a
2 changed files with 42 additions and 2 deletions

View File

@@ -80,7 +80,27 @@ src_test() {
src_install() {
emake install DESTDIR="${ED}"
newbashcomp "${ED}"/etc/bash_completion.d/${PN}-completion ${PN}
if use python ; then
newbashcomp "${ED}"/etc/bash_completion.d/${PN}-completion ${PN}
bashcomp_alias ${PN} ${PN}-config
bashcomp_alias ${PN} ${PN}stack \
aida2flat \
${PN}diff \
${PN}cnv \
${PN}hist \
${PN}-config \
${PN}2flat \
${PN}scale \
${PN}2root \
${PN}cmp \
${PN}merge \
${PN}plot \
aida2${PN} \
${PN}ls \
${PN}envelope \
${PN}2aida
fi
rm "${ED}"/etc/bash_completion.d/${PN}-completion || die
use python && python_optimize

View File

@@ -80,7 +80,27 @@ src_test() {
src_install() {
emake install DESTDIR="${ED}"
newbashcomp "${ED}"/etc/bash_completion.d/${PN}-completion ${PN}
if use python ; then
newbashcomp "${ED}"/etc/bash_completion.d/${PN}-completion ${PN}
bashcomp_alias ${PN} ${PN}-config
bashcomp_alias ${PN} ${PN}stack \
aida2flat \
${PN}diff \
${PN}cnv \
${PN}hist \
${PN}-config \
${PN}2flat \
${PN}scale \
${PN}2root \
${PN}cmp \
${PN}merge \
${PN}plot \
aida2${PN} \
${PN}ls \
${PN}envelope \
${PN}2aida
fi
rm "${ED}"/etc/bash_completion.d/${PN}-completion || die
use python && python_optimize