sci-electronics/surfer: fix install with USE=debug

Under USE=debug cargo builds into target/debug, so the hardcoded
target/release path made dobin fail. Use cargo_target_dir so the
install path follows the active profile.

Closes: https://bugs.gentoo.org/977872
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
Huang Rui
2026-06-21 22:22:17 +08:00
parent 96d9ab2702
commit 5691f8b2f5

View File

@@ -807,9 +807,11 @@ src_compile() {
src_install() { src_install() {
# Install binaries directly from build output # Install binaries directly from build output
# Using dobin instead of cargo_src_install since this is a workspace # Using dobin instead of cargo_src_install since this is a workspace
# and surver doesn't have the same features as surfer # and surver doesn't have the same features as surfer. Use
dobin target/release/surfer # cargo_target_dir so the path tracks USE=debug (target/debug) versus
dobin target/release/surver # the default release build (target/release).
dobin "$(cargo_target_dir)"/surfer
dobin "$(cargo_target_dir)"/surver
# Install desktop file and icon shipped in the source tree. Strip the # Install desktop file and icon shipped in the source tree. Strip the
# .png from the Icon key so the desktop file passes validation, the icon # .png from the Icon key so the desktop file passes validation, the icon