summaryrefslogtreecommitdiff
path: root/app-emulation
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-08-22 03:04:39 -0500
committerroot <root@alpha.trunkmasters.com>2026-08-22 03:04:39 -0500
commitce93cedd7048accb306b7c8ec7450111c49757fc (patch)
treeb8e2380158a74a131d322e7713db98863f34242c /app-emulation
parente96e88fa0d43a67ac8a6eda8bc6819000d1604f4 (diff)
downloadbaldeagleos-repo-ce93cedd7048accb306b7c8ec7450111c49757fc.tar.gz
baldeagleos-repo-ce93cedd7048accb306b7c8ec7450111c49757fc.tar.xz
baldeagleos-repo-ce93cedd7048accb306b7c8ec7450111c49757fc.zip
Adding metadata
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/wine-proton/Manifest1
-rw-r--r--app-emulation/wine-proton/wine-proton-11.0.2.ebuild265
-rw-r--r--app-emulation/wine-vanilla/Manifest1
-rw-r--r--app-emulation/wine-vanilla/wine-vanilla-11.16.ebuild216
4 files changed, 483 insertions, 0 deletions
diff --git a/app-emulation/wine-proton/Manifest b/app-emulation/wine-proton/Manifest
index ad686b05fd0e..0dfffde58659 100644
--- a/app-emulation/wine-proton/Manifest
+++ b/app-emulation/wine-proton/Manifest
@@ -1,4 +1,5 @@
DIST proton-wine-10.0-4.tar.gz 52736432 BLAKE2B 71986c2362934879d5d9a74ea13e29593240a9e7a5dc6b9a9ffdfdaf528be4dec2ac34500afcd525fa256d2fed2efc1e3cb6bd7c5f51b4e4249d714ca9bbc3ef SHA512 e74aece7dad25fd1e8041d370718bfd0dd695469c7b74d95209ac6030d0fb30221d1ccce7c8483dddb097c0f1b2df768452de79fd4041c46dd3695934816dd2a
DIST proton-wine-11.0-1.tar.gz 53898046 BLAKE2B be386b05e5b63325d1fc131776964c2480778d286b792b9a5362d440e1cc6168e92e86f9287944027a8a024ee81ec30d74c56246d79c39e6ccf895e2126d76de SHA512 b61d1baa5c0486e489337243054da982a9d07f8bfba3e26e40b24fedcd54d6e7678ef58c0d5c49f49ede566ba45ac53215d775fc1ef1aa150f07acea8a9dd1d4
+DIST proton-wine-11.0-2.tar.gz 56570548 BLAKE2B 4e342b53803c0e1f46594fd8f5cd5b954b3f598858bab2c32deac3634602b60aa59b8476973ccb3a04fe19b1cddb35938a3d82f002065878d2f5e1dcd46c9652 SHA512 fbeddf565b7ae6c1371e5202e1f57f12247090bf683fd33cf35493bf28ae1574d7bcd85b422c965083530041e0b1e72be0cfb92e2f631d990335c02b23df8d3f
DIST proton-wine-8.0-5c.tar.gz 48710071 BLAKE2B 99627baea6fb3d51231aa1e75a2734c3c1baba88326baf15b3d421d57a00472d25ba51c2140b51152c8aeae7dd240d3d77bb0d8835aa7eb3b745a51be120f8bb SHA512 0cf98d4e67866e55cc8cd5ea8da0d76aee8e37b130b3cbca604083c913e98ddf9038ecd6f9761d2e11443e282b372977400e251456c6d40e1365210c7578234d
DIST proton-wine-9.0-4.tar.gz 49339922 BLAKE2B 914ca093ac288c26400e4eeb2ea33943fc8ad89052aa7c97b5c44286dc175745720455d65163baa90b0d0271eb8028549315a3e8095b91947db2bd96c6fc4852 SHA512 e061f0a55b25493f67ca3add8c7e41020bb57cb15e8fb4fdf3c23f0cab2d00b703c90fbcf0dc1ca8b67e1726a76cee910e9ea6f567c88bc6c520dd6c9dbb75e9
diff --git a/app-emulation/wine-proton/wine-proton-11.0.2.ebuild b/app-emulation/wine-proton/wine-proton-11.0.2.ebuild
new file mode 100644
index 000000000000..99df9a781ac2
--- /dev/null
+++ b/app-emulation/wine-proton/wine-proton-11.0.2.ebuild
@@ -0,0 +1,265 @@
+# Copyright 2022-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{13..14} )
+inherit eapi9-ver flag-o-matic optfeature python-any-r1
+inherit readme.gentoo-r1 toolchain-funcs wine
+
+WINE_GECKO=2.47.4
+WINE_MONO=10.4.1
+WINE_PV=$(ver_rs 2 -)
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/ValveSoftware/wine.git"
+ EGIT_BRANCH="bleeding-edge"
+else
+ SRC_URI="https://github.com/ValveSoftware/wine/archive/refs/tags/proton-wine-${WINE_PV}.tar.gz"
+ S=${WORKDIR}/${PN}-wine-${WINE_PV}
+ KEYWORDS="-* ~amd64 ~x86"
+fi
+
+DESCRIPTION="Valve Software's fork of Wine"
+HOMEPAGE="https://github.com/ValveSoftware/wine/"
+
+LICENSE="
+ LGPL-2.1+
+ BSD BSD-2 IJG MIT OPENLDAP ZLIB gsm libpng2 libtiff public-domain
+ || ( WTFPL-2 public-domain )
+"
+SLOT="${PV}"
+IUSE="
+ +X +alsa crossdev-mingw +dbus ffmpeg +fontconfig +gecko +gstreamer
+ llvm-libunwind +mono nls perl pulseaudio +sdl selinux +ssl udev
+ +unwind usb v4l wayland video_cards_amdgpu xinerama
+"
+# headless is not really supported here, and udev needs sdl due to Valve's
+# changes (bug #959263), use normal wine instead if need to avoid these
+REQUIRED_USE="
+ || ( X wayland )
+ udev? ( sdl )
+"
+
+# tests are non-trivial to run, can hang easily, don't play well with
+# sandbox, and several need real opengl/vulkan or network access
+RESTRICT="test"
+
+# `grep WINE_CHECK_SONAME configure.ac` + if not directly linked
+WINE_DLOPEN_DEPEND="
+ dev-libs/libgcrypt:=[${WINE_USEDEP}]
+ media-libs/freetype[${WINE_USEDEP}]
+ media-libs/libglvnd[X?,${WINE_USEDEP}]
+ media-libs/vulkan-loader[X?,wayland?,${WINE_USEDEP}]
+ X? (
+ x11-libs/libXcomposite[${WINE_USEDEP}]
+ x11-libs/libXcursor[${WINE_USEDEP}]
+ x11-libs/libXfixes[${WINE_USEDEP}]
+ x11-libs/libXi[${WINE_USEDEP}]
+ x11-libs/libXrandr[${WINE_USEDEP}]
+ x11-libs/libXrender[${WINE_USEDEP}]
+ x11-libs/libXxf86vm[${WINE_USEDEP}]
+ xinerama? ( x11-libs/libXinerama[${WINE_USEDEP}] )
+ )
+ dbus? ( sys-apps/dbus[${WINE_USEDEP}] )
+ fontconfig? ( media-libs/fontconfig[${WINE_USEDEP}] )
+ sdl? ( media-libs/libsdl2[haptic,joystick,${WINE_USEDEP}] )
+ ssl? (
+ dev-libs/gmp:=[${WINE_USEDEP}]
+ net-libs/gnutls:=[${WINE_USEDEP}]
+ )
+ v4l? ( media-libs/libv4l[${WINE_USEDEP}] )
+"
+WINE_COMMON_DEPEND="
+ ${WINE_DLOPEN_DEPEND}
+ X? (
+ x11-libs/libX11[${WINE_USEDEP}]
+ x11-libs/libXext[${WINE_USEDEP}]
+ )
+ alsa? ( media-libs/alsa-lib[${WINE_USEDEP}] )
+ ffmpeg? ( media-video/ffmpeg:=[${WINE_USEDEP}] )
+ gstreamer? (
+ dev-libs/glib:2[${WINE_USEDEP}]
+ media-libs/gst-plugins-base:1.0[opengl,${WINE_USEDEP}]
+ media-libs/gstreamer:1.0[${WINE_USEDEP}]
+ )
+ pulseaudio? ( media-libs/libpulse[${WINE_USEDEP}] )
+ udev? ( virtual/libudev:=[${WINE_USEDEP}] )
+ unwind? (
+ llvm-libunwind? ( llvm-runtimes/libunwind[${WINE_USEDEP}] )
+ !llvm-libunwind? ( sys-libs/libunwind:=[${WINE_USEDEP}] )
+ )
+ usb? ( dev-libs/libusb:1[${WINE_USEDEP}] )
+ video_cards_amdgpu? ( x11-libs/libdrm[video_cards_amdgpu,${WINE_USEDEP}] )
+ wayland? (
+ dev-libs/wayland[${WINE_USEDEP}]
+ x11-libs/libxkbcommon[${WINE_USEDEP}]
+ )
+"
+RDEPEND="
+ ${WINE_COMMON_DEPEND}
+ app-emulation/wine-desktop-common
+ gecko? (
+ app-emulation/wine-gecko:${WINE_GECKO}[${WINE_USEDEP}]
+ wow64? ( app-emulation/wine-gecko[abi_x86_32] )
+ )
+ gstreamer? (
+ media-libs/gst-plugins-bad:1.0[${WINE_USEDEP}]
+ media-plugins/gst-plugins-libav:1.0[${WINE_USEDEP}]
+ media-plugins/gst-plugins-meta:1.0[${WINE_USEDEP}]
+ )
+ mono? ( app-emulation/wine-mono:${WINE_MONO} )
+ perl? (
+ dev-lang/perl
+ dev-perl/XML-LibXML
+ )
+ selinux? ( sec-policy/selinux-wine )
+"
+DEPEND="
+ ${WINE_COMMON_DEPEND}
+ >=sys-kernel/linux-headers-6.14
+ X? ( x11-base/xorg-proto )
+"
+BDEPEND="
+ ${PYTHON_DEPS}
+ dev-lang/perl
+ sys-devel/binutils:*
+ sys-devel/bison
+ sys-devel/flex
+ sys-devel/gcc:*
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+ wayland? ( dev-util/wayland-scanner )
+"
+
+QA_CONFIG_IMPL_DECL_SKIP=(
+ __clear_cache # unused on amd64+x86 (bug #900332)
+ res_getservers # false positive
+)
+QA_TEXTRELS="usr/lib/*/wine/i386-unix/*.so" # uses -fno-PIC -Wl,-z,notext
+# intentionally ignored: https://gitlab.winehq.org/wine/wine/-/commit/433c2f8c06
+QA_FLAGS_IGNORED="usr/lib/.*/wine/.*-unix/wine.*-preloader"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-7.0.4-musl.patch
+ "${FILESDIR}"/${PN}-7.0.4-noexecstack.patch
+ "${FILESDIR}"/${PN}-8.0.1c-unwind.patch
+ "${FILESDIR}"/${PN}-9.0-rpath.patch
+ "${FILESDIR}"/${PN}-11.0.1-restore-menubuilder.patch
+)
+
+src_prepare() {
+ # similarly to staging, append to `wine --version` for identification
+ sed -i "s/wine_build[^1]*1/& (Proton-${WINE_PV})/" configure.ac || die
+
+ wine_src_prepare
+
+ # proton variant also needs specfiles and vulkan
+ tools/make_specfiles || die # perl
+ dlls/winevulkan/make_vulkan -X video.xml -x vk.xml || die # python
+}
+
+src_configure() {
+ # Valve does not really support anything but gcc+bfd, and some of
+ # their modifications have been fragile and accumulating issues
+ # that they seemingly have no interest in fixing (bug #977021)
+ tc-is-gcc || unset AR AS CC CPP CXX LD NM OBJ{COPY,DUMP} RANLIB READELF STRIP
+ tc-ld-is-bfd || append-ldflags -fuse-ld=bfd
+ strip-unsupported-flags
+
+ local wineconfargs=(
+ # upstream (Valve) doesn't really support misc configurations (e.g.
+ # adds vulkan code not always guarded by --with-vulkan), so force
+ # some options that are typically needed by games either way
+ --with-freetype
+ --with-opengl
+ --with-vulkan
+
+ # ...and disable most options unimportant for games and unused by
+ # Proton rather than expose as volatile USEs with little support
+ --without-capi
+ --without-cups
+ --without-gphoto
+ --without-gssapi
+ --without-hwloc
+ --without-krb5
+ --without-netapi
+ --without-opencl
+ --without-pcap
+ --without-pcsclite
+ --without-sane
+ ac_cv_header_bluetooth_bluetooth_h=no
+ ac_cv_header_bluetooth_rfcomm_h=no
+ ac_cv_lib_soname_odbc=
+
+ $(use_enable gecko mshtml)
+ $(use_enable mono mscoree)
+ $(use_enable video_cards_amdgpu amd_ags_x64)
+ --disable-tests
+
+ $(use_with X x)
+ $(use_with alsa)
+ $(use_with dbus)
+ $(use_with ffmpeg)
+ $(use_with fontconfig)
+ $(use_with gstreamer)
+ $(use_with nls gettext)
+ --without-oss # media-sound/oss is not packaged (OSSv4)
+ $(use_with pulseaudio pulse)
+ $(use_with sdl)
+ $(use_with ssl gnutls)
+ $(use_with udev)
+ $(use_with unwind)
+ $(use_with usb)
+ $(use_with v4l v4l2)
+ $(use_with wayland)
+ $(use_with xinerama)
+
+ --without-piper # unpackaged, for tts but unusable without steam
+ --without-vosk # unpackaged, file a bug if you need this
+ )
+
+ wine_src_configure
+}
+
+src_install() {
+ use perl || local WINE_SKIP_INSTALL=(
+ ${WINE_DATADIR}/man/man1/wine{dump,maker}.1
+ ${WINE_PREFIX}/bin/{function_grep.pl,wine{dump,maker}}
+ )
+
+ wine_src_install
+
+ dodoc ANNOUNCE* AUTHORS README* documentation/README*
+ readme.gentoo_create_doc
+}
+
+pkg_preinst() {
+ has_version ${CATEGORY}/${PN} && WINE_HAD_ANY_SLOT=
+}
+
+pkg_postinst() {
+ wine_pkg_postinst
+
+ [[ -v WINE_HAD_ANY_SLOT ]] || readme.gentoo_print_elog
+
+ optfeature "/dev/hidraw* access used for *some* controllers (e.g. DualShock4)" \
+ games-util/game-device-udev-rules
+
+ ewarn
+ ewarn "Warning: please consider ${PN} provided as-is without real"
+ ewarn "support. Upstream does not want bug reports unless can reproduce"
+ ewarn "with real Steam+Proton, and Gentoo is largely unable to help"
+ ewarn "unless it is a build/packaging issue. So, if need support, try"
+ ewarn "normal Wine or Proton instead."
+
+ if ver_replacing -lt 11; then
+ elog
+ elog "Note that >=${PN}-11 now has ntsync support that can be used"
+ elog "rather than setting WINEFSYNC=1. It is used by default if /dev/ntsync"
+ elog "exists unless PROTON_NO_NTSYNC=1 is set. Requires CONFIG_NTSYNC in"
+ elog "the kernel and, if built as a module, will need a file containing"
+ elog "ntsync in ${EROOT}/etc/modules-load.d/ to be auto-loaded."
+ fi
+}
diff --git a/app-emulation/wine-vanilla/Manifest b/app-emulation/wine-vanilla/Manifest
index b894c91d1854..7aec30c927b9 100644
--- a/app-emulation/wine-vanilla/Manifest
+++ b/app-emulation/wine-vanilla/Manifest
@@ -4,5 +4,6 @@ DIST wine-11.12.tar.xz 46514188 BLAKE2B 8b3fe5138dde51985203407ca63bed33c72497b5
DIST wine-11.13.tar.xz 46548088 BLAKE2B 83cdeccdac01cd8484d89165695efea0f72dc4a9b1112e9a1ea2e114562325dd7b7261cece5283a144797c4a1824cecab9af43d381b24069036b4c69b7f17b2a SHA512 dbba303dac8f819085718f589079ebdfd0daf99e3758709309b24e58fc464f449a530861157d2286c747086a97e7c6031ec8a5c7081e17e5884577f655731462
DIST wine-11.14.tar.xz 46575228 BLAKE2B b4ed19a4abd35be64230964ab64d46f86cca3adc82fff8d79db98f0c4f31527820af7b8270dba68a41090121dcdb0c68fb78540e1d59727882dc1e7d8748840b SHA512 b42f91c0a73b46af07b1f8fb8aacd3dae38a8d62989fb28bd264bd3c5fd788dae19ef734b861d5b94094ba619222993f035aa50a083e59a2abf18a47cf5a5c3e
DIST wine-11.15.tar.xz 46665288 BLAKE2B 5d5a81dbcf5ce4fdb14799a7b8c93f44f0ed9ff67c49a43a501ff171aeeed2f2359a4f78a9fb1d76b791df76e4a1e623a025834a1124f9da705b6768495fc9bc SHA512 e6ce72331e7e8efb0dace2d39e547f3ce989d178dc7c37db1b4523cf9f200196a64fee69ca8a2bccfce0bf8e8f7800adb2c4ef4c44b0bd7d78cf937d84849232
+DIST wine-11.16.tar.xz 46686616 BLAKE2B fdaf6061e1b551f18b3a1b995efaf5197a7c821db00cdcc0a5ac6b90ae5d3351dc852855d5cb48e17baff2c9ec4b404688b0765a93df343e7dc9820b4160bc24 SHA512 e084a102989cb00bd0994aa998f18e2ef87ec8e8bcedaf18ab613df66fb5a89b03ca1e608f525ca5d0941641c3b8a4c7000a93da439e61febf7e9084c77ac62d
DIST wine-8.0.2.tar.xz 29060452 BLAKE2B dcffaba6c90c4e02a7bc591a81e11aced06c006370c4c316c8a367b2f5814926063482959fabfe9d674ee1b5a560e59087e9b711e28360ced3aee2bbd6bb8fdb SHA512 e86dd31247d757d48ffb2d24f20edab3fc6ef9c3e395567a7b363951bb681335ba3adb8b84639011b24b6eb274582d56880298d6d95fb100acc072383d4e973f
DIST wine-9.0.1.tar.xz 30166464 BLAKE2B 120a4556b18f3336c348e9984afc8c6d3d3d69ef64aa29224dd09ad69684e32ab193f23eb8edceb08e37aff0c96be25b4a3b54874045583dd9c1dabc71ac3a32 SHA512 510ec92b442b5410c05eca5012384669f0bb06acdab9f790527a82276a8ee679a6d2cd2b769a75815d7233ce7421de05457a64596d056552f4507a7a12c9f1a8
diff --git a/app-emulation/wine-vanilla/wine-vanilla-11.16.ebuild b/app-emulation/wine-vanilla/wine-vanilla-11.16.ebuild
new file mode 100644
index 000000000000..f1bef564158c
--- /dev/null
+++ b/app-emulation/wine-vanilla/wine-vanilla-11.16.ebuild
@@ -0,0 +1,216 @@
+# Copyright 2022-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit optfeature wine
+
+WINE_GECKO=2.47.4
+WINE_MONO=11.3.0
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://gitlab.winehq.org/wine/wine.git"
+else
+ (( $(ver_cut 2) )) && WINE_SDIR=$(ver_cut 1).x || WINE_SDIR=$(ver_cut 1).0
+ SRC_URI="https://dl.winehq.org/wine/source/${WINE_SDIR}/wine-${PV}.tar.xz"
+ S=${WORKDIR}/wine-${PV}
+ KEYWORDS="-* ~amd64 ~arm64 ~x86"
+fi
+
+DESCRIPTION="Free implementation of Windows(tm) on Unix, without external patchsets"
+HOMEPAGE="
+ https://www.winehq.org/
+ https://gitlab.winehq.org/wine/wine/
+"
+
+LICENSE="
+ LGPL-2.1+
+ BSD BSD-2 IJG MIT OPENLDAP ZLIB gsm libpng2 libtiff public-domain
+"
+SLOT="${PV}"
+IUSE="
+ +X +alsa bluetooth cups +dbus dos ffmpeg +fontconfig +gecko gphoto2
+ +gstreamer kerberos +mono netapi nls odbc opencl +opengl pcap perl
+ pulseaudio samba scanner +sdl selinux smartcard +ssl +truetype udev
+ usb v4l vaapi +vulkan wayland xinerama
+"
+REQUIRED_USE="
+ X? ( truetype )
+ bluetooth? ( dbus )
+ opengl? ( || ( X wayland ) )
+"
+
+# tests are non-trivial to run, can hang easily, don't play well with
+# sandbox, and several need real opengl/vulkan or network access
+RESTRICT="test"
+
+# `grep WINE_CHECK_SONAME configure.ac` + if not directly linked
+WINE_DLOPEN_DEPEND="
+ X? (
+ x11-libs/libXcomposite[${WINE_USEDEP}]
+ x11-libs/libXcursor[${WINE_USEDEP}]
+ x11-libs/libXfixes[${WINE_USEDEP}]
+ x11-libs/libXi[${WINE_USEDEP}]
+ x11-libs/libXrandr[${WINE_USEDEP}]
+ x11-libs/libXrender[${WINE_USEDEP}]
+ x11-libs/libXxf86vm[${WINE_USEDEP}]
+ xinerama? ( x11-libs/libXinerama[${WINE_USEDEP}] )
+ )
+ cups? ( net-print/cups[${WINE_USEDEP}] )
+ dbus? ( sys-apps/dbus[${WINE_USEDEP}] )
+ fontconfig? ( media-libs/fontconfig[${WINE_USEDEP}] )
+ kerberos? ( virtual/krb5[${WINE_USEDEP}] )
+ netapi? ( net-fs/samba[${WINE_USEDEP}] )
+ odbc? ( dev-db/unixODBC[${WINE_USEDEP}] )
+ opengl? ( media-libs/libglvnd[X?,${WINE_USEDEP}] )
+ sdl? ( media-libs/libsdl2[haptic,joystick,${WINE_USEDEP}] )
+ ssl? ( net-libs/gnutls:=[${WINE_USEDEP}] )
+ truetype? ( media-libs/freetype[${WINE_USEDEP}] )
+ v4l? ( media-libs/libv4l[${WINE_USEDEP}] )
+ vaapi? ( media-libs/libva:=[${WINE_USEDEP}] )
+ vulkan? ( media-libs/vulkan-loader[X?,wayland?,${WINE_USEDEP}] )
+"
+WINE_COMMON_DEPEND="
+ ${WINE_DLOPEN_DEPEND}
+ X? (
+ x11-libs/libX11[${WINE_USEDEP}]
+ x11-libs/libXext[${WINE_USEDEP}]
+ )
+ alsa? ( media-libs/alsa-lib[${WINE_USEDEP}] )
+ ffmpeg? ( media-video/ffmpeg:=[${WINE_USEDEP}] )
+ gphoto2? ( media-libs/libgphoto2:=[${WINE_USEDEP}] )
+ gstreamer? (
+ dev-libs/glib:2[${WINE_USEDEP}]
+ media-libs/gst-plugins-base:1.0[${WINE_USEDEP}]
+ media-libs/gstreamer:1.0[${WINE_USEDEP}]
+ )
+ opencl? ( virtual/opencl[${WINE_USEDEP}] )
+ pcap? ( net-libs/libpcap[${WINE_USEDEP}] )
+ pulseaudio? ( media-libs/libpulse[${WINE_USEDEP}] )
+ scanner? ( media-gfx/sane-backends[${WINE_USEDEP}] )
+ smartcard? ( sys-apps/pcsc-lite[${WINE_USEDEP}] )
+ udev? ( virtual/libudev:=[${WINE_USEDEP}] )
+ usb? ( dev-libs/libusb:1[${WINE_USEDEP}] )
+ wayland? (
+ dev-libs/wayland[${WINE_USEDEP}]
+ x11-libs/libxkbcommon[${WINE_USEDEP}]
+ )
+"
+RDEPEND="
+ ${WINE_COMMON_DEPEND}
+ app-emulation/wine-desktop-common
+ dos? (
+ || (
+ games-emulation/dosbox
+ games-emulation/dosbox-staging
+ )
+ )
+ gecko? (
+ app-emulation/wine-gecko:${WINE_GECKO}[${WINE_USEDEP}]
+ wow64? ( app-emulation/wine-gecko[abi_x86_32] )
+ )
+ gstreamer? ( media-plugins/gst-plugins-meta:1.0[${WINE_USEDEP}] )
+ mono? ( app-emulation/wine-mono:${WINE_MONO} )
+ perl? (
+ dev-lang/perl
+ dev-perl/XML-LibXML
+ )
+ samba? ( net-fs/samba[winbind] )
+ selinux? ( sec-policy/selinux-wine )
+"
+DEPEND="
+ ${WINE_COMMON_DEPEND}
+ >=sys-kernel/linux-headers-6.14
+ X? ( x11-base/xorg-proto )
+ bluetooth? ( net-wireless/bluez )
+ opencl? ( dev-util/opencl-headers )
+"
+BDEPEND="
+ sys-devel/bison
+ sys-devel/flex
+ virtual/pkgconfig
+ amd64? ( dev-lang/nasm )
+ nls? ( sys-devel/gettext )
+ wayland? ( dev-util/wayland-scanner )
+ x86? ( dev-lang/nasm )
+"
+
+QA_CONFIG_IMPL_DECL_SKIP=(
+ __clear_cache # unused on amd64+x86 (bug #900338)
+ res_getservers # false positive
+)
+QA_TEXTRELS="usr/lib/*/wine/i386-unix/*.so" # uses -fno-PIC -Wl,-z,notext
+# intentionally ignored: https://gitlab.winehq.org/wine/wine/-/commit/433c2f8c06
+QA_FLAGS_IGNORED="usr/lib/.*/wine/.*-unix/wine-preloader"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-7.0-noexecstack.patch
+ "${FILESDIR}"/${PN}-8.13-rpath.patch
+)
+
+src_configure() {
+ local wineconfargs=(
+ $(use_enable gecko mshtml)
+ $(use_enable mono mscoree)
+ --disable-tests
+
+ $(use_with X x)
+ $(use_with alsa)
+ --without-capi #977907
+ $(use_with cups)
+ $(use_with dbus)
+ $(use_with ffmpeg)
+ $(use_with fontconfig)
+ $(use_with gphoto2 gphoto)
+ $(use_with gstreamer)
+ --without-hwloc # currently only used on FreeBSD
+ $(use_with kerberos gssapi)
+ $(use_with kerberos krb5)
+ $(use_with netapi)
+ $(use_with nls gettext)
+ $(use_with opencl)
+ $(use_with opengl)
+ --without-oss # media-sound/oss is not packaged (OSSv4)
+ $(use_with pcap)
+ $(use_with pulseaudio pulse)
+ $(use_with scanner sane)
+ $(use_with sdl)
+ $(use_with smartcard pcsclite)
+ $(use_with ssl gnutls)
+ $(use_with truetype freetype)
+ $(use_with udev)
+ $(use_with usb)
+ $(use_with v4l v4l2)
+ $(use_with vaapi va)
+ $(use_with vulkan)
+ $(use_with wayland)
+ $(use_with xinerama)
+
+ $(usev !bluetooth '
+ ac_cv_header_bluetooth_bluetooth_h=no
+ ac_cv_header_bluetooth_rfcomm_h=no
+ ')
+ $(usev !odbc ac_cv_lib_soname_odbc=)
+ )
+
+ wine_src_configure
+}
+
+src_install() {
+ use perl || local WINE_SKIP_INSTALL=(
+ ${WINE_DATADIR}/man/man1/wine{dump,maker}.1
+ ${WINE_PREFIX}/bin/{function_grep.pl,wine{dump,maker}}
+ )
+
+ wine_src_install
+
+ dodoc ANNOUNCE* AUTHORS README* documentation/README*
+}
+
+pkg_postinst() {
+ wine_pkg_postinst
+
+ optfeature "/dev/hidraw* access used for *some* controllers (e.g. DualShock4)" \
+ games-util/game-device-udev-rules
+}