commit:     d7d6f6d10ad511adcff5be696392129af1860770
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Jun  2 04:41:27 2023 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Jun  2 06:53:34 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7d6f6d1

app-emulation/wine-vanilla: 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>

 .../wine-vanilla/wine-vanilla-9999.ebuild          | 22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

diff --git a/app-emulation/wine-vanilla/wine-vanilla-9999.ebuild 
b/app-emulation/wine-vanilla/wine-vanilla-9999.ebuild
index a513b26e07bb..fa578d8607db 100644
--- a/app-emulation/wine-vanilla/wine-vanilla-9999.ebuild
+++ b/app-emulation/wine-vanilla/wine-vanilla-9999.ebuild
@@ -28,11 +28,11 @@ LICENSE="LGPL-2.1+ BSD-2 IJG MIT OPENLDAP ZLIB gsm libpng2 
libtiff"
 SLOT="${PV}"
 IUSE="
        +X +abi_x86_32 +abi_x86_64 +alsa capi crossdev-mingw cups dos
-       llvm-libunwind debug custom-cflags +fontconfig +gecko gphoto2
-       +gstreamer kerberos +mingw +mono netapi nls odbc opencl +opengl
-       osmesa pcap perl pulseaudio samba scanner +sdl selinux smartcard
-       +ssl +truetype udev udisks +unwind usb v4l +vulkan wayland
-       +xcomposite xinerama"
+       llvm-libunwind custom-cflags +fontconfig +gecko gphoto2 +gstreamer
+       kerberos +mingw +mono netapi nls odbc opencl +opengl osmesa pcap
+       perl pulseaudio samba scanner +sdl selinux smartcard +ssl +strip
+       +truetype udev udisks +unwind usb v4l +vulkan wayland +xcomposite
+       xinerama"
 REQUIRED_USE="
        X? ( truetype )
        crossdev-mingw? ( mingw )" # bug #551124 for truetype
@@ -318,13 +318,17 @@ src_install() {
                make_wrapper "${bin##*/}-${P#wine-}" "${bin#"${ED}"}"
        done
 
-       # don't let portage try to strip PE files with the wrong
-       # strip executable and instead handle it here (saves ~120MB)
        if use mingw; then
+               # 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
        fi
 
        dodoc ANNOUNCE AUTHORS README* documentation/README*

Reply via email to