wine.eclass: adapt postinst for wine-proton

Went overlooked given wine-proton wasn't using postinst properly,
but now it is.

Fixes: 3ce7350b55
Closes: https://bugs.gentoo.org/976456
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2026-06-01 07:27:28 -04:00
parent 63cbbdf620
commit 48c28b3d6c

View File

@@ -478,7 +478,9 @@ wine_pkg_postinst() {
fi
# difficult to tell what is needed from here, but try to warn anyway
if use abi_x86_32 && { use opengl || use vulkan; }; then
if use abi_x86_32 &&
{ ! in_iuse opengl || use opengl || ! in_iuse vulkan || use vulkan; }
then
if has_version 'x11-drivers/nvidia-drivers'; then
if has_version 'x11-drivers/nvidia-drivers[-abi_x86_32]'; then
ewarn