commit:     56cab4809a234161eaafeb2847d8adb1344a73a3
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Jun  2 04:44:36 2023 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Jun  2 06:53:33 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56cab480

app-emulation/wine-proton: USE=-debug -> global USE=strip in live

Will update the old ebuilds eventually but given this triggers
a rebuild with --changed-use (default enabled), will wait till
a few bumps and maybe stable to give a chance for people to
update and depclean old rather than unnecessarily rebuild all.

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

 app-emulation/wine-proton/wine-proton-8.0.9999.ebuild | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/app-emulation/wine-proton/wine-proton-8.0.9999.ebuild 
b/app-emulation/wine-proton/wine-proton-8.0.9999.ebuild
index b2b9a61de3ff..4939eacc3879 100644
--- a/app-emulation/wine-proton/wine-proton-8.0.9999.ebuild
+++ b/app-emulation/wine-proton/wine-proton-8.0.9999.ebuild
@@ -28,10 +28,10 @@ HOMEPAGE="https://github.com/ValveSoftware/wine/";
 LICENSE="LGPL-2.1+ BSD-2 IJG MIT OPENLDAP ZLIB gsm libpng2 libtiff"
 SLOT="${PV}"
 IUSE="
-       +abi_x86_32 +abi_x86_64 +alsa crossdev-mingw custom-cflags debug
+       +abi_x86_32 +abi_x86_64 +alsa crossdev-mingw custom-cflags
        +fontconfig +gecko +gstreamer llvm-libunwind +mono nls osmesa
-       perl pulseaudio +sdl selinux +ssl udev udisks +unwind usb v4l
-       +xcomposite xinerama"
+       perl pulseaudio +sdl selinux +ssl +strip udev udisks +unwind
+       usb v4l +xcomposite xinerama"
 
 # tests are non-trivial to run, can hang easily, don't play well with
 # sandbox, and several need real opengl/vulkan or network access
@@ -305,9 +305,13 @@ src_install() {
        # don't let portage try to strip PE files with the wrong
        # strip executable and instead handle it here (saves ~120MB)
        dostrip -x ${WINE_PREFIX}/wine/{i386,x86_64}-windows
-       use debug ||
+
+       if use strip; then
+               ebegin "Stripping Windows (PE) binaries"
                find "${ED}"${WINE_PREFIX}/wine/*-windows -regex 
'.*\.\(a\|dll\|exe\)' \
-                       -exec $(usex abi_x86_64 x86_64 i686)-w64-mingw32-strip 
--strip-unneeded {} + || die
+                       -exec $(usex abi_x86_64 x86_64 i686)-w64-mingw32-strip 
--strip-unneeded {} +
+               eend ${?} || die
+       fi
 
        dodoc ANNOUNCE AUTHORS README* documentation/README*
        readme.gentoo_create_doc

Reply via email to