public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/pkgcruft/
Date: Thu, 24 Apr 2025 19:38:01 +0000 (UTC)	[thread overview]
Message-ID: <1745523385.1ded7e71224824bc15e9f322ca094e40330ddd4b.sam@gentoo> (raw)

commit:     1ded7e71224824bc15e9f322ca094e40330ddd4b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 24 19:36:25 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Apr 24 19:36:25 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ded7e71

dev-util/pkgcruft: add 0.0.13

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/pkgcruft/Manifest                                     |  1 +
 .../pkgcruft/{pkgcruft-9999.ebuild => pkgcruft-0.0.13.ebuild}  | 10 +++++++---
 dev-util/pkgcruft/pkgcruft-9999.ebuild                         | 10 +++++++---
 3 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/dev-util/pkgcruft/Manifest b/dev-util/pkgcruft/Manifest
index b6eb1848bc02..3e998eb46a04 100644
--- a/dev-util/pkgcruft/Manifest
+++ b/dev-util/pkgcruft/Manifest
@@ -1,3 +1,4 @@
 DIST pkgcruft-0.0.10.tar.xz 32193612 BLAKE2B d0f28f63e0b4f1d1309156309331feb0daa0cd52c6f0491f918d49f76c425b36a47fd02060554cd4398ac3490d6e21009b7421cb0ca14a821093fca7f57087bc SHA512 14812be27345a737d91281c869bc8149581bf3802b3bddca19908bfb687013cd1ee751213e86c7c277850f07eff2b58358930c74cbe2e3f4b370929de518097e
 DIST pkgcruft-0.0.11.tar.xz 40812256 BLAKE2B 6afbc3750d99d715a01d644413b4e5c407d902cbb1761b5017dae0cf5b868a48f6fe5a8ee845bb8e4484cc9ea154d954afc85cd81d53480eee1233598a07a044 SHA512 b4ba070b811e1a94795bd8e90452b4e2db6fba53a563b828c8f8c6b938727ed6aff35e969c88a22b961ded1bd51847f52f1d285863a27b76715fe1ec72979934
 DIST pkgcruft-0.0.12.tar.xz 41392836 BLAKE2B 0d04f3451b87f3e888bd471b8b06248b68e6929ace6922f01e4ba5e010e9b0a91ff4c94d4629a473dec6ae5229507dab216f98c02b4a47f454c75098543b0b13 SHA512 17542836ec659703f02a92c5afbd297006db8d3a58cb8b51d876f47592a0a155d85acf2a9661055f42d301d10806d3d30ed658cf4a20aa8748fd9f85222d353a
+DIST pkgcruft-0.0.13.tar.xz 30200436 BLAKE2B 85ed531a79d4261c65dcda41d6a238398fb36b8e93c1698444b866f6c930544bf19c85046ad9ab651bd0f5460ad174b47d468274de169a458083198b084205e2 SHA512 d53713d0f14d965e3b069fe2902af9aac1fac56b565e93b502c081adf0ada99336a43f5af697ec522ce4e6d49eff5b1fb20c375ffa90dcf417ae396c2dc81c2b

diff --git a/dev-util/pkgcruft/pkgcruft-9999.ebuild b/dev-util/pkgcruft/pkgcruft-0.0.13.ebuild
similarity index 89%
copy from dev-util/pkgcruft/pkgcruft-9999.ebuild
copy to dev-util/pkgcruft/pkgcruft-0.0.13.ebuild
index dff52cd906d4..66c1aeee6244 100644
--- a/dev-util/pkgcruft/pkgcruft-9999.ebuild
+++ b/dev-util/pkgcruft/pkgcruft-0.0.13.ebuild
@@ -63,8 +63,12 @@ src_compile() {
 	cargo_src_compile
 
 	if [[ ${PV} == 9999 ]] ; then
-		# https://github.com/pkgcraft/pkgcraft/issues/258
-		edo cargo run --features shell --bin pkgcruft-shell-comp -p pkgcruft
+		einfo "Generating shell completions"
+		mkdir shell || die
+		local BIN="${WORKDIR}/${P}/$(cargo_target_dir)/pkgcruft"
+		"${BIN}" completion bash > shell/pkgcruft.bash || die
+		"${BIN}" completion zsh > shell/_pkgcruft || die
+		"${BIN}" completion fish > shell/pkgcruft.fish || die
 	fi
 }
 
@@ -116,7 +120,7 @@ src_test() {
 src_install() {
 	cargo_src_install
 
-	newbashcomp shell/pkgcruft.bash ${PN}
+	newbashcomp shell/pkgcruft.bash pkgcruft
 	dozshcomp shell/_pkgcruft
 	dofishcomp shell/pkgcruft.fish
 }

diff --git a/dev-util/pkgcruft/pkgcruft-9999.ebuild b/dev-util/pkgcruft/pkgcruft-9999.ebuild
index dff52cd906d4..66c1aeee6244 100644
--- a/dev-util/pkgcruft/pkgcruft-9999.ebuild
+++ b/dev-util/pkgcruft/pkgcruft-9999.ebuild
@@ -63,8 +63,12 @@ src_compile() {
 	cargo_src_compile
 
 	if [[ ${PV} == 9999 ]] ; then
-		# https://github.com/pkgcraft/pkgcraft/issues/258
-		edo cargo run --features shell --bin pkgcruft-shell-comp -p pkgcruft
+		einfo "Generating shell completions"
+		mkdir shell || die
+		local BIN="${WORKDIR}/${P}/$(cargo_target_dir)/pkgcruft"
+		"${BIN}" completion bash > shell/pkgcruft.bash || die
+		"${BIN}" completion zsh > shell/_pkgcruft || die
+		"${BIN}" completion fish > shell/pkgcruft.fish || die
 	fi
 }
 
@@ -116,7 +120,7 @@ src_test() {
 src_install() {
 	cargo_src_install
 
-	newbashcomp shell/pkgcruft.bash ${PN}
+	newbashcomp shell/pkgcruft.bash pkgcruft
 	dozshcomp shell/_pkgcruft
 	dofishcomp shell/pkgcruft.fish
 }


             reply	other threads:[~2025-04-24 19:38 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-24 19:38 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-04-29 17:28 [gentoo-commits] repo/gentoo:master commit in: dev-util/pkgcruft/ Sam James
2025-04-24 15:30 Sam James
2025-04-04 19:24 Sam James
2025-03-24  2:29 Sam James
2025-03-03 17:21 Sam James
2025-03-03 17:19 Sam James
2025-03-03 17:19 Sam James
2025-01-28 12:15 Sam James
2025-01-15 12:50 Florian Schmaus
2025-01-14  4:53 Sam James
2025-01-14  4:53 Sam James
2025-01-06  4:23 Sam James
2024-12-31 22:31 Sam James
2024-12-09  9:33 Florian Schmaus
2024-12-07  2:15 Sam James
2024-12-07  2:12 Sam James
2024-11-21 18:19 Sam James
2024-08-14 20:07 Sam James
2024-06-23  1:13 Sam James
2024-02-16  1:26 Sam James
2024-02-06  1:09 Sam James
2024-02-06  0:36 Sam James

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=1745523385.1ded7e71224824bc15e9f322ca094e40330ddd4b.sam@gentoo \
    --to=sam@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