summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2024-06-13 22:49:21 +0100
committerJames Le Cuirot <chewi@gentoo.org>2024-06-17 10:27:50 +0100
commit187a23ffb59ea2b6f6b6b346d6e8e0af58aecd5f (patch)
tree2944fa1e75331b2833d923730b21dc5a6bc7901a /dev-util/ruff
parentdev-lang/starlark-rust: Use new cargo_target_dir helper (diff)
downloadgentoo-187a23ffb59ea2b6f6b6b346d6e8e0af58aecd5f.tar.gz
gentoo-187a23ffb59ea2b6f6b6b346d6e8e0af58aecd5f.tar.bz2
gentoo-187a23ffb59ea2b6f6b6b346d6e8e0af58aecd5f.zip
dev-util/ruff: Use new cargo_target_dir helper
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'dev-util/ruff')
-rw-r--r--dev-util/ruff/ruff-0.4.6.ebuild4
-rw-r--r--dev-util/ruff/ruff-0.4.7.ebuild4
-rw-r--r--dev-util/ruff/ruff-0.4.8.ebuild4
3 files changed, 6 insertions, 6 deletions
diff --git a/dev-util/ruff/ruff-0.4.6.ebuild b/dev-util/ruff/ruff-0.4.6.ebuild
index cef1ac48c858..2bb565341a0f 100644
--- a/dev-util/ruff/ruff-0.4.6.ebuild
+++ b/dev-util/ruff/ruff-0.4.6.ebuild
@@ -419,7 +419,7 @@ src_compile() {
cargo_src_compile --bin ruff
local releasedir
- releasedir=target/$(usex 'debug' 'debug' 'release')
+ releasedir=$(cargo_target_dir)
${releasedir}/ruff generate-shell-completion bash > ruff-completion.bash || die
${releasedir}/ruff generate-shell-completion zsh > ruff-completion.zsh || die
@@ -435,7 +435,7 @@ src_test() {
}
src_install() {
- local releasedir=target/$(usex 'debug' 'debug' 'release')
+ local releasedir=$(cargo_target_dir)
dobin ${releasedir}/ruff
diff --git a/dev-util/ruff/ruff-0.4.7.ebuild b/dev-util/ruff/ruff-0.4.7.ebuild
index cef1ac48c858..2bb565341a0f 100644
--- a/dev-util/ruff/ruff-0.4.7.ebuild
+++ b/dev-util/ruff/ruff-0.4.7.ebuild
@@ -419,7 +419,7 @@ src_compile() {
cargo_src_compile --bin ruff
local releasedir
- releasedir=target/$(usex 'debug' 'debug' 'release')
+ releasedir=$(cargo_target_dir)
${releasedir}/ruff generate-shell-completion bash > ruff-completion.bash || die
${releasedir}/ruff generate-shell-completion zsh > ruff-completion.zsh || die
@@ -435,7 +435,7 @@ src_test() {
}
src_install() {
- local releasedir=target/$(usex 'debug' 'debug' 'release')
+ local releasedir=$(cargo_target_dir)
dobin ${releasedir}/ruff
diff --git a/dev-util/ruff/ruff-0.4.8.ebuild b/dev-util/ruff/ruff-0.4.8.ebuild
index c4d41afe50c1..36e64564b314 100644
--- a/dev-util/ruff/ruff-0.4.8.ebuild
+++ b/dev-util/ruff/ruff-0.4.8.ebuild
@@ -415,7 +415,7 @@ src_compile() {
cargo_src_compile --bin ruff
local releasedir
- releasedir=target/$(usex 'debug' 'debug' 'release')
+ releasedir=$(cargo_target_dir)
${releasedir}/ruff generate-shell-completion bash > ruff-completion.bash || die
${releasedir}/ruff generate-shell-completion zsh > ruff-completion.zsh || die
@@ -431,7 +431,7 @@ src_test() {
}
src_install() {
- local releasedir=target/$(usex 'debug' 'debug' 'release')
+ local releasedir=$(cargo_target_dir)
dobin ${releasedir}/ruff