commit:     eb3a507c976f886907e3bddabd3d256414c31f49
Author:     Daniel Müller <deso <AT> posteo <DOT> net>
AuthorDate: Wed Jan 28 22:54:55 2026 +0000
Commit:     Daniel Müller <deso <AT> posteo <DOT> net>
CommitDate: Wed Jan 28 22:56:57 2026 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=eb3a507c

app-backup/btrfs-backup: fix QA

Suggested-by: Lucio Sauer <watermanpaint <AT> posteo.net>
Signed-off-by: Daniel Müller <deso <AT> posteo.net>

 app-backup/btrfs-backup/btrfs-backup-0.2.4.ebuild | 21 +++++++++------------
 1 file changed, 9 insertions(+), 12 deletions(-)

diff --git a/app-backup/btrfs-backup/btrfs-backup-0.2.4.ebuild 
b/app-backup/btrfs-backup/btrfs-backup-0.2.4.ebuild
index fded46f030..2b6b55f585 100644
--- a/app-backup/btrfs-backup/btrfs-backup-0.2.4.ebuild
+++ b/app-backup/btrfs-backup/btrfs-backup-0.2.4.ebuild
@@ -87,9 +87,9 @@ CRATES="
        [email protected]
 "
 
-inherit bash-completion-r1 cargo
+inherit cargo shell-completion
 
-DESCRIPTION="A program for backup & restoration of btrfs subvolumes."
+DESCRIPTION="A program for backup & restoration of btrfs subvolumes"
 HOMEPAGE="https://github.com/d-e-s-o/btrfs-backup";
 SRC_URI="
        ${CARGO_CRATE_URIS}
@@ -104,28 +104,25 @@ KEYWORDS="~amd64"
 RESTRICT="test"
 
 RDEPEND="
-       ${DEPEND}
        sys-fs/btrfs-progs
 "
 DEPEND="${RDEPEND}"
 
 src_compile() {
        cargo_src_compile --bin="${PN}"
-       # Install shell-complete binary into source directory to be able to
+       # Install shell-complete binary into target directory to be able to
        # use it later on.
-       cargo install --bin=shell-complete --features=clap_complete --path . 
--root "${S}" || die
+       cargo install --bin=shell-complete --features=clap_complete --path . 
--root "$(cargo_target_dir)" || die
 }
 
 src_install() {
-       cargo_src_install --bin=${PN}
+       cargo_src_install --bin="${PN}"
 
-       "${S}"/bin/shell-complete bash > ${PN}.bash || die
-       newbashcomp ${PN}.bash ${PN}
+       "$(cargo_target_dir)"/bin/shell-complete bash > "${PN}.bash" || die
+       dobashcomp "${PN}.bash"
 
-       "${S}"/bin/shell-complete fish >> ${PN}.fish || die
-       insinto /usr/share/fish/vendor_conf.d/
-       insopts -m0755
-       newins ${PN}.fish ${PN}.fish
+       "$(cargo_target_dir)"/bin/shell-complete fish >> "${PN}.fish" || die
+       dofishcomp "${PN}.fish"
 
        einstalldocs
 }

Reply via email to