mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
media-libs/xrizer: fix 32 bit builds
Signed-off-by: Sam Wilson <sam@binarycake.ca>
This commit is contained in:
@@ -304,7 +304,7 @@ fi
|
|||||||
|
|
||||||
RUST_MULTILIB=1
|
RUST_MULTILIB=1
|
||||||
RUST_MIN_VER="1.83.0"
|
RUST_MIN_VER="1.83.0"
|
||||||
inherit cargo multilib-minimal
|
inherit cargo multilib-minimal rust-toolchain
|
||||||
|
|
||||||
DESCRIPTION="OpenVR over OpenXR compatibility layer"
|
DESCRIPTION="OpenVR over OpenXR compatibility layer"
|
||||||
HOMEPAGE="https://github.com/Supreeeme/xrizer/"
|
HOMEPAGE="https://github.com/Supreeeme/xrizer/"
|
||||||
@@ -355,17 +355,17 @@ src_prepare() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
multilib_src_compile() {
|
multilib_src_compile() {
|
||||||
cargo_src_compile
|
cargo_src_compile --target=$(rust_abi)
|
||||||
}
|
}
|
||||||
|
|
||||||
multilib_src_install() {
|
multilib_src_install() {
|
||||||
# OpenVR expects this particular directory structure.
|
# OpenVR expects this particular directory structure.
|
||||||
if [[ ${ABI} == amd64 ]] ; then
|
if [[ ${ABI} == amd64 ]] ; then
|
||||||
exeinto "/opt/${PN}/bin/linux64"
|
exeinto "/opt/${PN}/bin/linux64"
|
||||||
newexe $(cargo_target_dir)/libxrizer.so vrclient.so || die
|
newexe "${CARGO_TARGET_DIR:-target}/$(rust_abi)/$(usex debug debug release)"/libxrizer.so vrclient.so || die
|
||||||
elif [[ ${ABI} == x86 ]] ; then
|
elif [[ ${ABI} == x86 ]] ; then
|
||||||
exeinto "/opt/${PN}/bin"
|
exeinto "/opt/${PN}/bin"
|
||||||
newexe $(cargo_target_dir)/libxrizer.so vrclient.so || die
|
newexe "${CARGO_TARGET_DIR:-target}/$(rust_abi)/$(usex debug debug release)"/libxrizer.so vrclient.so || die
|
||||||
fi
|
fi
|
||||||
touch "${D}/opt/${PN}/version.txt"
|
touch "${D}/opt/${PN}/version.txt"
|
||||||
}
|
}
|
||||||
@@ -304,7 +304,7 @@ fi
|
|||||||
|
|
||||||
RUST_MULTILIB=1
|
RUST_MULTILIB=1
|
||||||
RUST_MIN_VER="1.83.0"
|
RUST_MIN_VER="1.83.0"
|
||||||
inherit cargo multilib-minimal
|
inherit cargo multilib-minimal rust-toolchain
|
||||||
|
|
||||||
DESCRIPTION="OpenVR over OpenXR compatibility layer"
|
DESCRIPTION="OpenVR over OpenXR compatibility layer"
|
||||||
HOMEPAGE="https://github.com/Supreeeme/xrizer/"
|
HOMEPAGE="https://github.com/Supreeeme/xrizer/"
|
||||||
@@ -355,17 +355,17 @@ src_prepare() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
multilib_src_compile() {
|
multilib_src_compile() {
|
||||||
cargo_src_compile
|
cargo_src_compile --target=$(rust_abi)
|
||||||
}
|
}
|
||||||
|
|
||||||
multilib_src_install() {
|
multilib_src_install() {
|
||||||
# OpenVR expects this particular directory structure.
|
# OpenVR expects this particular directory structure.
|
||||||
if [[ ${ABI} == amd64 ]] ; then
|
if [[ ${ABI} == amd64 ]] ; then
|
||||||
exeinto "/opt/${PN}/bin/linux64"
|
exeinto "/opt/${PN}/bin/linux64"
|
||||||
newexe $(cargo_target_dir)/libxrizer.so vrclient.so || die
|
newexe "${CARGO_TARGET_DIR:-target}/$(rust_abi)/$(usex debug debug release)"/libxrizer.so vrclient.so || die
|
||||||
elif [[ ${ABI} == x86 ]] ; then
|
elif [[ ${ABI} == x86 ]] ; then
|
||||||
exeinto "/opt/${PN}/bin"
|
exeinto "/opt/${PN}/bin"
|
||||||
newexe $(cargo_target_dir)/libxrizer.so vrclient.so || die
|
newexe "${CARGO_TARGET_DIR:-target}/$(rust_abi)/$(usex debug debug release)"/libxrizer.so vrclient.so || die
|
||||||
fi
|
fi
|
||||||
touch "${D}/opt/${PN}/version.txt"
|
touch "${D}/opt/${PN}/version.txt"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user