From b155b1eb7a32da674c81d51a068081f63c3fb332 Mon Sep 17 00:00:00 2001 From: Alexander Puck Neuwirth Date: Sun, 17 Mar 2024 19:37:17 +0100 Subject: [PATCH] sci-physics/yoda: Fix bashcompletion Bug: https://bugs.gentoo.org/926510 Signed-off-by: Alexander Puck Neuwirth Closes: https://github.com/gentoo/gentoo/pull/35746 Signed-off-by: Andrew Ammerlaan --- 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 ea206e059b092..cab2ee9ece180 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 bb8f1e8ffb59d..0294b67c3cf31 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