summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2024-06-14 10:46:34 +0100
committerJames Le Cuirot <chewi@gentoo.org>2024-06-17 10:36:57 +0100
commitfbcf625ea974fa52a102079cdaa74251305406a7 (patch)
tree0d454e4c6023791f836485145059a66412fa11f7 /sys-apps/bat
parentdev-vcs/git-absorb: Use new cargo_target_dir helper (diff)
downloadgentoo-fbcf625ea974fa52a102079cdaa74251305406a7.tar.gz
gentoo-fbcf625ea974fa52a102079cdaa74251305406a7.tar.bz2
gentoo-fbcf625ea974fa52a102079cdaa74251305406a7.zip
sys-apps/bat: Use new cargo_target_dir helper
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'sys-apps/bat')
-rw-r--r--sys-apps/bat/bat-0.23.0-r1.ebuild4
-rw-r--r--sys-apps/bat/bat-0.24.0-r1.ebuild4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys-apps/bat/bat-0.23.0-r1.ebuild b/sys-apps/bat/bat-0.23.0-r1.ebuild
index b0f52777c924..0a4601f4acbf 100644
--- a/sys-apps/bat/bat-0.23.0-r1.ebuild
+++ b/sys-apps/bat/bat-0.23.0-r1.ebuild
@@ -218,8 +218,8 @@ src_install() {
einstalldocs
- local build_dir=( target/$(usex debug{,} release)/build/${PN}-*/out )
- cd ${build_dir[0]} || die "Cannot change directory to ${PN} build"
+ local build_dir=( "$(cargo_target_dir)"/build/${PN}-*/out )
+ cd "${build_dir[0]}" || die "Cannot change directory to ${PN} build"
doman assets/manual/bat.1
diff --git a/sys-apps/bat/bat-0.24.0-r1.ebuild b/sys-apps/bat/bat-0.24.0-r1.ebuild
index 0c0d2c793320..ada5fae6a7d5 100644
--- a/sys-apps/bat/bat-0.24.0-r1.ebuild
+++ b/sys-apps/bat/bat-0.24.0-r1.ebuild
@@ -247,8 +247,8 @@ src_install() {
einstalldocs
- local build_dir=( target/$(usex debug{,} release)/build/${PN}-*/out )
- cd ${build_dir[0]} || die "Cannot change directory to ${PN} build"
+ local build_dir=( "$(cargo_target_dir)"/build/${PN}-*/out )
+ cd "${build_dir[0]}" || die "Cannot change directory to ${PN} build"
doman assets/manual/bat.1