summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Puck Neuwirth <alexander@neuwirth-informatik.de>2024-03-17 19:37:17 +0100
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2024-03-18 12:09:33 +0100
commitb155b1eb7a32da674c81d51a068081f63c3fb332 (patch)
treea34716361d5b7b64ac6df7ef5e2ec2a8b8a322c9 /sci-physics
parentsci-physics/yoda: add 1.9.9, 1.9.10 (diff)
downloadgentoo-b155b1eb7a32da674c81d51a068081f63c3fb332.tar.gz
gentoo-b155b1eb7a32da674c81d51a068081f63c3fb332.tar.bz2
gentoo-b155b1eb7a32da674c81d51a068081f63c3fb332.zip
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>
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/yoda/yoda-1.9.10.ebuild22
-rw-r--r--sci-physics/yoda/yoda-1.9.9.ebuild22
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