commit:     a3fe9ecbce7d7333ee40c9933e4198b17886a8a7
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 29 09:48:41 2024 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Sun Sep 29 09:51:54 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3fe9ecb

app-shells/atuin: only create shell-init file if USE=client

Closes: https://bugs.gentoo.org/940444
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 app-shells/atuin/atuin-18.3.0-r1.ebuild | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/app-shells/atuin/atuin-18.3.0-r1.ebuild 
b/app-shells/atuin/atuin-18.3.0-r1.ebuild
index 6f383e0b5123..584ccab1160b 100644
--- a/app-shells/atuin/atuin-18.3.0-r1.ebuild
+++ b/app-shells/atuin/atuin-18.3.0-r1.ebuild
@@ -520,6 +520,10 @@ src_compile() {
                        || die
        done
 
+       if ! use client; then
+               return 0
+       fi
+
        mkdir shell-init || die
        for shell in bash fish zsh; do
                "${ATUIN_BIN}" init ${shell} > shell-init/${shell} || die
@@ -575,6 +579,10 @@ src_install() {
        dozshcomp "completions/_${PN}"
        dofishcomp "completions/${PN}.fish"
 
+       if ! use client; then
+               return 0
+       fi
+
        insinto "/usr/share/${PN}"
        doins -r shell-init
 

Reply via email to