commit:     f1f142040784e5a6ed684f94ca6e610c01fb02a3
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 07:08:56 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Feb 15 14:56:10 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1f14204

app-emulation/wine-staging: update live

Real "wine64" only existed with USE="abi_x86_64 -wow64" but this
now has a new loader only installed as "wine" regardless of USE.
Many scripts still try to call wine64 though, will likely keep
the symlink for a while.

wine-preloader and wine64-preloader are also both gone, but not
aware of anything using these.

wrt the man pages bit for that block, seem they get installed
properly even if USE"abi_x86_64 -abi_x86_32" now likely thanks
to the same change.

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

 .../wine-staging/wine-staging-9999.ebuild          | 28 ++++------------------
 1 file changed, 5 insertions(+), 23 deletions(-)

diff --git a/app-emulation/wine-staging/wine-staging-9999.ebuild 
b/app-emulation/wine-staging/wine-staging-9999.ebuild
index 079299786741..7ec528fd75e9 100644
--- a/app-emulation/wine-staging/wine-staging-9999.ebuild
+++ b/app-emulation/wine-staging/wine-staging-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022-2024 Gentoo Authors
+# Copyright 2022-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -401,28 +401,10 @@ src_install() {
        use abi_x86_32 && emake DESTDIR="${D}" -C ../build32 install
        use abi_x86_64 && emake DESTDIR="${D}" -C ../build64 install # do last
 
-       # Ensure both wine64 and wine are available if USE=abi_x86_64 (wow64,
-       # -abi_x86_32, and/or EXTRA_ECONF could cause varying scenarios where
-       # one or the other could be missing and that is unexpected for users
-       # and some tools like winetricks)
-       if use abi_x86_64; then
-               if [[ -e ${ED}${WINE_PREFIX}/bin/wine64 && ! -e 
${ED}${WINE_PREFIX}/bin/wine ]]; then
-                       dosym wine64 ${WINE_PREFIX}/bin/wine
-                       dosym wine64-preloader ${WINE_PREFIX}/bin/wine-preloader
-
-                       # also install wine(1) man pages (incl. translations)
-                       local man
-                       for man in ../build64/loader/wine.*man; do
-                               : "${man##*/wine}"
-                               : "${_%.*}"
-                               insinto ${WINE_DATADIR}/man/${_:+${_#.}/}man1
-                               newins ${man} wine.1
-                       done
-               elif [[ ! -e ${ED}${WINE_PREFIX}/bin/wine64 && -e 
${ED}${WINE_PREFIX}/bin/wine ]]; then
-                       dosym wine ${WINE_PREFIX}/bin/wine64
-                       dosym wine-preloader ${WINE_PREFIX}/bin/wine64-preloader
-               fi
-       fi
+       # "wine64" is no longer provided, but a keep symlink for old scripts
+       # TODO: remove the guard later, only useful for bisecting -9999
+       [[ -e ${ED}${WINE_PREFIX}/bin/wine64 ]] ||
+               use abi_x86_64 && dosym wine ${WINE_PREFIX}/bin/wine64
 
        use perl || rm "${ED}"${WINE_DATADIR}/man/man1/wine{dump,maker}.1 \
                "${ED}"${WINE_PREFIX}/bin/{function_grep.pl,wine{dump,maker}} 
|| die

Reply via email to