public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/sequoia-sq/
Date: Thu, 22 Feb 2024 09:18:28 +0000 (UTC)	[thread overview]
Message-ID: <1708593470.cd99c9384d60752d15561204c02c85acb9107ff4.flow@gentoo> (raw)

commit:     cd99c9384d60752d15561204c02c85acb9107ff4
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 22 09:17:17 2024 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Thu Feb 22 09:17:50 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd99c938

app-crypt/sequoia-sq: fix installation of shell completions

Also use shell-completion.eclass.

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

 app-crypt/sequoia-sq/sequoia-sq-0.33.0.ebuild | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/app-crypt/sequoia-sq/sequoia-sq-0.33.0.ebuild b/app-crypt/sequoia-sq/sequoia-sq-0.33.0.ebuild
index 1719811decfa..b7a023d4f417 100644
--- a/app-crypt/sequoia-sq/sequoia-sq-0.33.0.ebuild
+++ b/app-crypt/sequoia-sq/sequoia-sq-0.33.0.ebuild
@@ -461,7 +461,7 @@ CRATES="
 
 LLVM_MAX_SLOT=17
 
-inherit bash-completion-r1 cargo llvm
+inherit bash-completion-r1 cargo shell-completion llvm
 
 DESCRIPTION="CLI of the Sequoia OpenPGP implementation"
 HOMEPAGE="https://sequoia-pgp.org/ https://gitlab.com/sequoia-pgp/sequoia-sq"
@@ -518,11 +518,16 @@ src_install() {
 
 	doman target/$(usex debug debug release)/build/sequoia-sq-*/out/man-pages/*.1
 
-	newbashcomp target/$(usex debug debug release)/build/sequoia-sq-*/out/shell-completions/sq.bash sq
+	# Since 0.33 sequoia-sq creates two shell-completions/ directories
+	# with indentical content. Select one of them. See also
+	# https://bugs.gentoo.org/923572
+	local completion_dirs=(
+		$(ls -1d target/$(usex debug debug release)/build/sequoia-sq-*/out/shell-completions)
+	)
+	[[ ${#completion_dirs[@]} -lt 1 ]] && die "No completion directories found"
+	local completion_dir="${completion_dirs[0]}"
 
-	insinto /usr/share/zsh/site-functions
-	doins target/$(usex debug debug release)/build/sequoia-sq-*/out/shell-completions/_sq
-
-	insinto /usr/share/fish/vendor_completions.d
-	doins target/$(usex debug debug release)/build/sequoia-sq-*/out/shell-completions/sq.fish
+	newbashcomp "${completion_dir}"/sq.bash sq
+	dozshcomp "${completion_dir}"/_sq
+	dofishcomp "${completion_dir}"/sq.fish
 }


             reply	other threads:[~2024-02-22  9:18 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-22  9:18 Florian Schmaus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-07  2:38 [gentoo-commits] repo/gentoo:master commit in: app-crypt/sequoia-sq/ Sam James
2025-03-07  2:38 Sam James
2025-02-10  1:33 Sam James
2025-02-10  1:33 Sam James
2025-02-04 17:33 Florian Schmaus
2025-02-04 17:33 Florian Schmaus
2025-01-22  7:54 Sam James
2025-01-20  6:49 Florian Schmaus
2025-01-02 20:30 Florian Schmaus
2025-01-02 20:30 Florian Schmaus
2024-12-19 19:19 Florian Schmaus
2024-07-15  1:57 Sam James
2024-06-24  4:00 Sam James
2024-06-03  0:44 Sam James
2024-06-03  0:44 Sam James
2024-04-29 13:42 Sam James
2024-04-29  1:11 Sam James
2024-04-29  0:06 Sam James
2024-03-22  3:58 Sam James
2024-03-14 19:19 Sam James
2024-03-04  8:28 Sam James
2024-03-02  4:57 Sam James
2024-03-02  4:57 Sam James
2024-02-22  9:50 Florian Schmaus
2024-02-22  9:19 Florian Schmaus
2024-02-03 21:34 Sam James
2024-02-02  1:51 Sam James
2023-12-24  2:55 Sam James
2023-12-24  2:55 Sam James
2023-12-15 21:17 Arthur Zamarin
2023-11-25  8:51 Sam James
2023-11-25  5:28 Sam James
2023-09-11 19:57 Florian Schmaus
2023-07-24  3:57 Sam James
2023-07-10  3:52 Sam James
2023-06-19  1:13 Sam James
2023-06-19  1:13 Sam James
2023-06-04  5:32 Sam James
2023-05-31  7:00 Sam James
2023-05-29 19:58 Florian Schmaus
2023-05-25  7:38 Sam James
2023-05-25  7:28 Sam James
2023-05-25  7:28 Sam James
2023-05-23  9:33 Sam James
2023-05-20  6:56 Sam James
2023-03-16 11:47 Florian Schmaus
2022-12-24  2:59 Sam James
2022-09-18 15:31 Florian Schmaus
2022-08-28 12:27 Florian Schmaus
2022-07-18 18:34 Florian Schmaus
2022-05-15 19:26 Florian Schmaus
2022-05-15 19:26 Florian Schmaus
2022-03-30 14:22 Florian Schmaus
2021-12-30 14:12 Florian Schmaus
2021-12-30 13:36 Florian Schmaus
2021-12-30 10:37 Florian Schmaus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1708593470.cd99c9384d60752d15561204c02c85acb9107ff4.flow@gentoo \
    --to=flow@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox