commit:     b155b1eb7a32da674c81d51a068081f63c3fb332
Author:     Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> 
de>
AuthorDate: Sun Mar 17 18:37:17 2024 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Mon Mar 18 11:09:33 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b155b1eb

sci-physics/yoda: Fix bashcompletion

Bug: https://bugs.gentoo.org/926510
Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>
Closes: https://github.com/gentoo/gentoo/pull/35746
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sci-physics/yoda/yoda-1.9.10.ebuild | 22 +++++++++++++++++++++-
 sci-physics/yoda/yoda-1.9.9.ebuild  | 22 +++++++++++++++++++++-
 2 files changed, 42 insertions(+), 2 deletions(-)

diff --git a/sci-physics/yoda/yoda-1.9.10.ebuild 
b/sci-physics/yoda/yoda-1.9.10.ebuild
index ea206e059b09..cab2ee9ece18 100644
--- a/sci-physics/yoda/yoda-1.9.10.ebuild
+++ b/sci-physics/yoda/yoda-1.9.10.ebuild
@@ -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

diff --git a/sci-physics/yoda/yoda-1.9.9.ebuild 
b/sci-physics/yoda/yoda-1.9.9.ebuild
index bb8f1e8ffb59..0294b67c3cf3 100644
--- a/sci-physics/yoda/yoda-1.9.9.ebuild
+++ b/sci-physics/yoda/yoda-1.9.9.ebuild
@@ -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

Reply via email to