commit:     314fd7aaa1d8225c95860f9a462d3d541f7df501
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 28 07:26:42 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Jun 28 07:42:06 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=314fd7aa

app-emulation/vkd3d-proton: change bits check method

Unlikely, but old could fail if "amd64=86" is in the environment.
Plus vkd3d-proton wants 86 (not 32 unlike dxvk), so can just get
it from ABI.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 app-emulation/vkd3d-proton/vkd3d-proton-2.6.ebuild  | 2 +-
 app-emulation/vkd3d-proton/vkd3d-proton-9999.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-emulation/vkd3d-proton/vkd3d-proton-2.6.ebuild 
b/app-emulation/vkd3d-proton/vkd3d-proton-2.6.ebuild
index 14ead4c9f1e1..664241e57d2e 100644
--- a/app-emulation/vkd3d-proton/vkd3d-proton-2.6.ebuild
+++ b/app-emulation/vkd3d-proton/vkd3d-proton-2.6.ebuild
@@ -123,7 +123,7 @@ multilib_src_configure() {
 
        local emesonargs=(
                --prefix="${EPREFIX}"/usr/lib/${PN}
-               --{bin,lib}dir=x$((${ABI#x}==86?86:64))
+               --{bin,lib}dir=x${ABI: -2}
                --{cross,native}-file="${T}"/widl.${ABI}.ini
                $(meson_use {,enable_}extras)
                $(meson_use debug enable_trace)

diff --git a/app-emulation/vkd3d-proton/vkd3d-proton-9999.ebuild 
b/app-emulation/vkd3d-proton/vkd3d-proton-9999.ebuild
index 14ead4c9f1e1..664241e57d2e 100644
--- a/app-emulation/vkd3d-proton/vkd3d-proton-9999.ebuild
+++ b/app-emulation/vkd3d-proton/vkd3d-proton-9999.ebuild
@@ -123,7 +123,7 @@ multilib_src_configure() {
 
        local emesonargs=(
                --prefix="${EPREFIX}"/usr/lib/${PN}
-               --{bin,lib}dir=x$((${ABI#x}==86?86:64))
+               --{bin,lib}dir=x${ABI: -2}
                --{cross,native}-file="${T}"/widl.${ABI}.ini
                $(meson_use {,enable_}extras)
                $(meson_use debug enable_trace)

Reply via email to