media-libs/xrizer: Simplify following cargo.eclass improvements

Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
James Le Cuirot
2026-01-06 22:02:41 +00:00
parent 4a71243720
commit 01b3a8ecc1
2 changed files with 8 additions and 18 deletions

View File

@@ -355,17 +355,12 @@ src_prepare() {
}
multilib_src_compile() {
cargo_src_compile --target=$(rust_abi)
cargo_src_compile
}
multilib_src_install() {
# OpenVR expects this particular directory structure.
if [[ ${ABI} == amd64 ]] ; then
exeinto "/opt/${PN}/bin/linux64"
newexe "${CARGO_TARGET_DIR:-target}/$(rust_abi)/$(usex debug debug release)"/libxrizer.so vrclient.so || die
elif [[ ${ABI} == x86 ]] ; then
exeinto "/opt/${PN}/bin"
newexe "${CARGO_TARGET_DIR:-target}/$(rust_abi)/$(usex debug debug release)"/libxrizer.so vrclient.so || die
fi
touch "${D}/opt/${PN}/version.txt"
exeinto "/opt/${PN}/bin$(multilib_is_native_abi && echo /linux64)"
newexe "$(cargo_target_dir)"/libxrizer.so vrclient.so
touch "${ED}/opt/${PN}/version.txt"
}

View File

@@ -355,17 +355,12 @@ src_prepare() {
}
multilib_src_compile() {
cargo_src_compile --target=$(rust_abi)
cargo_src_compile
}
multilib_src_install() {
# OpenVR expects this particular directory structure.
if [[ ${ABI} == amd64 ]] ; then
exeinto "/opt/${PN}/bin/linux64"
newexe "${CARGO_TARGET_DIR:-target}/$(rust_abi)/$(usex debug debug release)"/libxrizer.so vrclient.so || die
elif [[ ${ABI} == x86 ]] ; then
exeinto "/opt/${PN}/bin"
newexe "${CARGO_TARGET_DIR:-target}/$(rust_abi)/$(usex debug debug release)"/libxrizer.so vrclient.so || die
fi
touch "${D}/opt/${PN}/version.txt"
exeinto "/opt/${PN}/bin$(multilib_is_native_abi && echo /linux64)"
newexe "$(cargo_target_dir)"/libxrizer.so vrclient.so
touch "${ED}/opt/${PN}/version.txt"
}