From fc2f1018fc323ef2c6572734a9b130427cba76a6 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 3 Nov 2021 06:47:15 +0000 Subject: gentoo resync : 03.11.2021 --- games-emulation/Manifest.gz | Bin 9355 -> 9347 bytes games-emulation/dolphin/Manifest | 6 +- .../dolphin/dolphin-5.0_p20210506-r1.ebuild | 195 -------------------- .../dolphin/dolphin-5.0_p20210506-r2.ebuild | 197 +++++++++++++++++++++ .../dolphin/dolphin-5.0_p20210506-r3.ebuild | 195 ++++++++++++++++++++ .../dolphin/dolphin-5.0_p20210506.ebuild | 197 --------------------- games-emulation/dolphin/dolphin-9999.ebuild | 2 +- games-emulation/dosbox-staging/Manifest | 2 +- .../dosbox-staging/dosbox-staging-0.77.1.ebuild | 2 +- 9 files changed, 398 insertions(+), 398 deletions(-) delete mode 100644 games-emulation/dolphin/dolphin-5.0_p20210506-r1.ebuild create mode 100644 games-emulation/dolphin/dolphin-5.0_p20210506-r2.ebuild create mode 100644 games-emulation/dolphin/dolphin-5.0_p20210506-r3.ebuild delete mode 100644 games-emulation/dolphin/dolphin-5.0_p20210506.ebuild (limited to 'games-emulation') diff --git a/games-emulation/Manifest.gz b/games-emulation/Manifest.gz index 45678bde8fce..de453538344c 100644 Binary files a/games-emulation/Manifest.gz and b/games-emulation/Manifest.gz differ diff --git a/games-emulation/dolphin/Manifest b/games-emulation/dolphin/Manifest index 011636d61fc5..f854a9a0b971 100644 --- a/games-emulation/dolphin/Manifest +++ b/games-emulation/dolphin/Manifest @@ -1,6 +1,6 @@ AUX dolphin-5.0_p20210506-musl.patch 779 BLAKE2B 5f962082cf58377801a266ec987417b731332e31ce6d79bb8e66204f6299dc1912aea760a9545ac671b090e6a3625c54b9e00583695790bd5c51ba54d524e0d7 SHA512 7a611de89b84e0f706c37d2aacdfb62cb4115098ad1b31daa4e40bd47e3793ab59f626fced184965361ba776891a63d02d66a54f8b69f675b6b88047a283bd9e DIST dolphin-5.0_p20210506.tar.gz 42098693 BLAKE2B bb9e5b5eb344bd944753c0198d5835109399fdfae46e6858833e5f279ff1979d39e0c512bedb96a91a1241fff525c6f945d16ce1a6b6cc22798490d73b853862 SHA512 5d23e9356995011a0e7b07622d58c8dddc5134a4ec83b3d9343b9eca8d0d2c200ea8c9a299c6aa2550ca74d8e28e258531368f7c167fe620053eb2a0f73b1f2f -EBUILD dolphin-5.0_p20210506-r1.ebuild 4470 BLAKE2B da5fc22a352173c13e175a86ea77baa6a290c550e59fa73e167cddeef1466c98aa2d032bff4ab6c33f77aabd4e51f1346403be5d1f2cb8cf4ce73e6a33a4ce7a SHA512 c9b4b791feb2760e192cd1ba5ae03b696eedc1811ff85e3c8c9be8a0cdfe79ce8f77af58e168a65ced75a1fb1e0fb6d88d97e94b07f6e276fdc59eea3a603db0 -EBUILD dolphin-5.0_p20210506.ebuild 4817 BLAKE2B 5285d51e4404f2ae273c8315b143a18f5587356ad1d8c6b1c4fa369d5e9737742bb5b6af4c3c3f7d04e63edf5052245632256eed16136dfcc3beca83f861fb96 SHA512 f785395201fefb634972bd1c5b4538cb5e2534f1a4716f744ba1424f61deed7c833d406bfea71197d8a297e593d372c3b93c19447925ec8f72f518a900a016b6 -EBUILD dolphin-9999.ebuild 4578 BLAKE2B 94e3c6fbb50a2da4943d6a80d0e9e9cdf38fab6a9dc555a9ade12b314d1dbc62a653fb7ef215c0ffb074afd9fea5fc9108a59e96251864c769d0fbc11dc65eee SHA512 7ca40222418fa167a90880d2a9a1dd35b25da12b4ad7eb24c75893cddb08fd33e1e011c32a3b8a055d0e6eb9f1e0f2001c4701685385bc2069a0826dbb5521e1 +EBUILD dolphin-5.0_p20210506-r2.ebuild 4820 BLAKE2B 1e9e15ddb2429df506285fb4e8ed058760f0979db9e7d1094baeb880513eb7bba94ed95934fb4fc51f5404a21d39d3433062ed4ee429a42ce75276962ea4dcbd SHA512 db3e9e37d816d811566a51f3e19197f84ebfca445d088b13ef0e96230f07ed1e4682a78275a174084865c940c6825f5163b815459b707f2cfff672325953e386 +EBUILD dolphin-5.0_p20210506-r3.ebuild 4473 BLAKE2B f224619c6fe6839c05b710882e6ccf13d926baa2697b746c9d098f8e74e8d7c08f046d297a1367ea960335e96b4ab95cb2641bce70a09c2319bd1dda5808544a SHA512 2b56b51fd271b72181e9dbb08f274eeca9dc7431a822c2b551a7dc8e134911d09ea66f5b875a479e2d4329d82c1db9b1936c6c1ee21dda6224b9c2dce9284cee +EBUILD dolphin-9999.ebuild 4581 BLAKE2B 0916ddcb96434f5bc1d024c02c50d736b43ef1ff705a4d812d56fa50b081b16da818d4dcdfe3aaaa21a5d3b5e502e7435dace176c1e6d62870a62253cc606ffd SHA512 3a950ba0209df836b60524e87744fb948eebdf842ccf74ce672773a5876a50ab061b7c1a2aacaa919a6bb79b892b990061f1a376958b20111992695c4a7def83 MISC metadata.xml 1081 BLAKE2B 9723c2b177b0f695a71dd3c06414079a149dea55a9110c594a6667445eec4154bbd213c423734584ff276441e121f69d72f1537a31633b342e69e2511e2bc7a7 SHA512 9924dccb09af0b0adf4f7231bbff23aad196132f853183c0217578a456030e33011ba9ebdcfa6296ac65e8b8aa90b1d94754b937248cf0e4dab9faf9a9c62e99 diff --git a/games-emulation/dolphin/dolphin-5.0_p20210506-r1.ebuild b/games-emulation/dolphin/dolphin-5.0_p20210506-r1.ebuild deleted file mode 100644 index e487f7c878e4..000000000000 --- a/games-emulation/dolphin/dolphin-5.0_p20210506-r1.ebuild +++ /dev/null @@ -1,195 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake desktop xdg-utils pax-utils - -if [[ ${PV} == *9999 ]] -then - EGIT_REPO_URI="https://github.com/dolphin-emu/dolphin" - inherit git-r3 -else - EGIT_COMMIT=eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68 - SRC_URI=" - https://github.com/dolphin-emu/dolphin/archive/${EGIT_COMMIT}.tar.gz - -> ${P}.tar.gz" - S=${WORKDIR}/${PN}-${EGIT_COMMIT} - KEYWORDS="amd64 ~arm64" -fi - -DESCRIPTION="Gamecube and Wii game emulator" -HOMEPAGE="https://dolphin-emu.org/" - -# NB: appended below -LICENSE="GPL-2+" -SLOT="0" -IUSE="alsa bluetooth discord-presence doc +evdev ffmpeg +gui log - profile pulseaudio systemd upnp vulkan" - -RDEPEND=" - dev-libs/hidapi:0= - >=dev-libs/libfmt-7.1:0= - dev-libs/lzo:2= - dev-libs/pugixml:0= - media-libs/libpng:0= - media-libs/libsfml - media-libs/mesa[egl] - net-libs/enet:1.3 - net-libs/mbedtls:0= - net-misc/curl:0= - sys-libs/readline:0= - sys-libs/zlib:0= - x11-libs/libXext - x11-libs/libXi - x11-libs/libXrandr - virtual/libusb:1 - virtual/opengl - alsa? ( media-libs/alsa-lib ) - bluetooth? ( net-wireless/bluez ) - evdev? ( - dev-libs/libevdev - virtual/udev - ) - ffmpeg? ( media-video/ffmpeg:= ) - gui? ( - dev-qt/qtcore:5 - dev-qt/qtgui:5 - dev-qt/qtwidgets:5 - ) - profile? ( dev-util/oprofile ) - pulseaudio? ( media-sound/pulseaudio ) - systemd? ( sys-apps/systemd:0= ) - upnp? ( net-libs/miniupnpc ) -" -DEPEND="${RDEPEND}" -BDEPEND=" - sys-devel/gettext - virtual/pkgconfig" - -# vulkan-loader required for vulkan backend which can be selected -# at runtime. -RDEPEND="${RDEPEND} - vulkan? ( media-libs/vulkan-loader )" - -PATCHES=("${FILESDIR}"/${P}-musl.patch) - -# [directory]=license -declare -A KEEP_BUNDLED=( - [Bochs_disasm]=LGPL-2.1+ - [FreeSurround]=GPL-2+ - - # vulkan's API is not backwards-compatible: - # new release dropped VK_PRESENT_MODE_RANGE_SIZE_KHR - # but dolphin still relies on it, bug #729832 - [Vulkan]=Apache-2.0 - - [cpp-optparse]=MIT - # no support for for using system library - [glslang]=BSD - [imgui]=MIT - - # not packaged, tiny header library - [rangeset]=ZLIB - - # FIXME: xxhash can't be found by cmake - [xxhash]=BSD-2 - # no support for for using system library - [minizip]=ZLIB - # soundtouch uses shorts, not floats - [soundtouch]=LGPL-2.1+ - [cubeb]=ISC - [discord-rpc]=MIT - # Their build set up solely relies on the build in gtest. - [gtest]= # (build-time only) - # gentoo's version requires exception support. - # dolphin disables exceptions and fails the build. - [picojson]=BSD-2 - # No code to detect shared library. - [zstd]=BSD -) -LICENSE+=" ${KEEP_BUNDLED[*]}" - -src_prepare() { - cmake_src_prepare - - local s remove=() - for s in Externals/*; do - [[ -f ${s} ]] && continue - if ! has "${s#Externals/}" "${!KEEP_BUNDLED[@]}"; then - remove+=( "${s}" ) - fi - done - - einfo "removing sources: ${remove[*]}" - rm -r "${remove[@]}" || die - - # About 50% compile-time speedup - if ! use vulkan; then - sed -i -e '/Externals\/glslang/d' CMakeLists.txt || die - fi - - # Remove dirty suffix: needed for netplay - sed -i -e 's/--dirty/&=""/' CMakeLists.txt || die -} - -src_configure() { - local mycmakeargs=( - # Use ccache only when user did set FEATURES=ccache (or similar) - # not when ccache binary is present in system (automagic). - -DCCACHE_BIN=CCACHE_BIN-NOTFOUND - -DENABLE_ALSA=$(usex alsa) - -DENABLE_BLUEZ=$(usex bluetooth) - -DENABLE_EVDEV=$(usex evdev) - -DENCODE_FRAMEDUMPS=$(usex ffmpeg) - -DENABLE_LLVM=OFF - # just adds -flto, user can do that via flags - -DENABLE_LTO=OFF - -DENABLE_PULSEAUDIO=$(usex pulseaudio) - -DENABLE_QT=$(usex gui) - -DENABLE_SDL=OFF # not supported: #666558 - -DENABLE_VULKAN=$(usex vulkan) - -DFASTLOG=$(usex log) - -DOPROFILING=$(usex profile) - -DUSE_DISCORD_PRESENCE=$(usex discord-presence) - -DUSE_SHARED_ENET=ON - -DUSE_UPNP=$(usex upnp) - - # Undo cmake.eclass's defaults. - # All dolphin's libraries are private - # and rely on circular dependency resolution. - -DBUILD_SHARED_LIBS=OFF - - # Avoid warning spam around unset variables. - -Wno-dev - ) - - cmake_src_configure -} - -src_test() { - cmake_build unittests -} - -src_install() { - cmake_src_install - - dodoc Readme.md - if use doc; then - dodoc -r docs/ActionReplay docs/DSP docs/WiiMote - fi - - doicon -s 48 Data/dolphin-emu.png - doicon -s scalable Data/dolphin-emu.svg - doicon Data/dolphin-emu.svg -} - -pkg_postinst() { - # Add pax markings for hardened systems - pax-mark -m "${EPREFIX}"/usr/games/bin/"${PN}"-emu - xdg_icon_cache_update -} - -pkg_postrm() { - xdg_icon_cache_update -} diff --git a/games-emulation/dolphin/dolphin-5.0_p20210506-r2.ebuild b/games-emulation/dolphin/dolphin-5.0_p20210506-r2.ebuild new file mode 100644 index 000000000000..1b20924f1037 --- /dev/null +++ b/games-emulation/dolphin/dolphin-5.0_p20210506-r2.ebuild @@ -0,0 +1,197 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PLOCALES="ar ca cs da de el en es fa fr hr hu it ja ko ms nb nl pl pt pt_BR ro ru sr sv tr zh_CN zh_TW" +PLOCALE_BACKUP="en" + +inherit cmake desktop xdg-utils pax-utils plocale + +if [[ ${PV} == *9999 ]] +then + EGIT_REPO_URI="https://github.com/dolphin-emu/dolphin" + inherit git-r3 +else + inherit vcs-snapshot + commit=eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68 + SRC_URI="https://github.com/dolphin-emu/dolphin/archive/${commit}.tar.gz -> ${P}.tar.gz" + KEYWORDS="amd64 ~arm64" +fi + +DESCRIPTION="Gamecube and Wii game emulator" +HOMEPAGE="https://www.dolphin-emu.org/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="alsa bluetooth discord-presence doc +evdev ffmpeg log lto profile pulseaudio +qt5 systemd upnp vulkan" + +RDEPEND=" + dev-libs/hidapi:0= + >=dev-libs/libfmt-7.1:0= + dev-libs/lzo:2= + dev-libs/pugixml:0= + media-libs/libpng:0= + media-libs/libsfml + media-libs/mesa[egl(+)] + net-libs/enet:1.3 + net-libs/mbedtls:0= + net-misc/curl:0= + sys-libs/readline:0= + sys-libs/zlib:0= + x11-libs/libXext + x11-libs/libXi + x11-libs/libXrandr + virtual/libusb:1 + virtual/opengl + alsa? ( media-libs/alsa-lib ) + bluetooth? ( net-wireless/bluez ) + evdev? ( + dev-libs/libevdev + virtual/udev + ) + ffmpeg? ( media-video/ffmpeg:= ) + profile? ( dev-util/oprofile ) + pulseaudio? ( media-sound/pulseaudio ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + ) + systemd? ( sys-apps/systemd:0= ) + upnp? ( net-libs/miniupnpc ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + sys-devel/gettext + virtual/pkgconfig" + +# vulkan-loader required for vulkan backend which can be selected +# at runtime. +RDEPEND="${RDEPEND} + vulkan? ( media-libs/vulkan-loader )" + +PATCHES=("${FILESDIR}"/${P}-musl.patch) + +src_prepare() { + cmake_src_prepare + + # Remove all the bundled libraries that support system-installed + # preference. See CMakeLists.txt for conditional 'add_subdirectory' calls. + local KEEP_SOURCES=( + Bochs_disasm + FreeSurround + + # vulkan's API is not backwards-compatible: + # new release dropped VK_PRESENT_MODE_RANGE_SIZE_KHR + # but dolphin still relies on it, bug #729832 + Vulkan + + cpp-optparse + # no support for for using system library + glslang + imgui + + # not packaged, tiny header library + rangeset + + # FIXME: xxhash can't be found by cmake + xxhash + # no support for for using system library + minizip + # soundtouch uses shorts, not floats + soundtouch + cubeb + discord-rpc + # Their build set up solely relies on the build in gtest. + gtest + # gentoo's version requires exception support. + # dolphin disables exceptions and fails the build. + picojson + # No code to detect shared library. + zstd + ) + local s + for s in "${KEEP_SOURCES[@]}"; do + mv -v "Externals/${s}" . || die + done + einfo "removing sources: $(echo Externals/*)" + rm -r Externals/* || die "Failed to delete Externals dir." + for s in "${KEEP_SOURCES[@]}"; do + mv -v "${s}" "Externals/" || die + done + + remove_locale() { + # Ensure preservation of the backup locale when no valid LINGUA is set + if [[ "${PLOCALE_BACKUP}" == "${1}" ]] && [[ "${PLOCALE_BACKUP}" == "$(plocale_get_locales)" ]]; then + return + else + rm "Languages/po/${1}.po" || die + fi + } + + plocale_find_changes "Languages/po/" "" '.po' + plocale_for_each_disabled_locale remove_locale + + # About 50% compile-time speedup + use vulkan || sed -i -e '/Externals\/glslang/d' CMakeLists.txt + + # Remove dirty suffix: needed for netplay + sed -i -e 's/--dirty/&=""/' CMakeLists.txt +} + +src_configure() { + local mycmakeargs=( + # Use ccache only when user did set FEATURES=ccache (or similar) + # not when ccache binary is present in system (automagic). + -DCCACHE_BIN=CCACHE_BIN-NOTFOUND + -DENABLE_ALSA=$(usex alsa) + -DENABLE_BLUEZ=$(usex bluetooth) + -DENABLE_EVDEV=$(usex evdev) + -DENCODE_FRAMEDUMPS=$(usex ffmpeg) + -DENABLE_LLVM=OFF + -DENABLE_LTO=$(usex lto) + -DENABLE_PULSEAUDIO=$(usex pulseaudio) + -DENABLE_QT=$(usex qt5) + -DENABLE_SDL=OFF # not supported: #666558 + -DENABLE_VULKAN=$(usex vulkan) + -DFASTLOG=$(usex log) + -DOPROFILING=$(usex profile) + -DUSE_DISCORD_PRESENCE=$(usex discord-presence) + -DUSE_SHARED_ENET=ON + -DUSE_UPNP=$(usex upnp) + + # Undo cmake.eclass's defaults. + # All dolphin's libraries are private + # and rely on circular dependency resolution. + -DBUILD_SHARED_LIBS=OFF + + # Avoid warning spam around unset variables. + -Wno-dev + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + + dodoc Readme.md + if use doc; then + dodoc -r docs/ActionReplay docs/DSP docs/WiiMote + fi + + doicon -s 48 Data/dolphin-emu.png + doicon -s scalable Data/dolphin-emu.svg + doicon Data/dolphin-emu.svg +} + +pkg_postinst() { + # Add pax markings for hardened systems + pax-mark -m "${EPREFIX}"/usr/games/bin/"${PN}"-emu + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} diff --git a/games-emulation/dolphin/dolphin-5.0_p20210506-r3.ebuild b/games-emulation/dolphin/dolphin-5.0_p20210506-r3.ebuild new file mode 100644 index 000000000000..715fe05c7d11 --- /dev/null +++ b/games-emulation/dolphin/dolphin-5.0_p20210506-r3.ebuild @@ -0,0 +1,195 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake desktop xdg-utils pax-utils + +if [[ ${PV} == *9999 ]] +then + EGIT_REPO_URI="https://github.com/dolphin-emu/dolphin" + inherit git-r3 +else + EGIT_COMMIT=eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68 + SRC_URI=" + https://github.com/dolphin-emu/dolphin/archive/${EGIT_COMMIT}.tar.gz + -> ${P}.tar.gz" + S=${WORKDIR}/${PN}-${EGIT_COMMIT} + KEYWORDS="amd64 ~arm64" +fi + +DESCRIPTION="Gamecube and Wii game emulator" +HOMEPAGE="https://dolphin-emu.org/" + +# NB: appended below +LICENSE="GPL-2+" +SLOT="0" +IUSE="alsa bluetooth discord-presence doc +evdev ffmpeg +gui log + profile pulseaudio systemd upnp vulkan" + +RDEPEND=" + dev-libs/hidapi:0= + >=dev-libs/libfmt-7.1:0= + dev-libs/lzo:2= + dev-libs/pugixml:0= + media-libs/libpng:0= + media-libs/libsfml + media-libs/mesa[egl(+)] + net-libs/enet:1.3 + net-libs/mbedtls:0= + net-misc/curl:0= + sys-libs/readline:0= + sys-libs/zlib:0= + x11-libs/libXext + x11-libs/libXi + x11-libs/libXrandr + virtual/libusb:1 + virtual/opengl + alsa? ( media-libs/alsa-lib ) + bluetooth? ( net-wireless/bluez ) + evdev? ( + dev-libs/libevdev + virtual/udev + ) + ffmpeg? ( media-video/ffmpeg:= ) + gui? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + ) + profile? ( dev-util/oprofile ) + pulseaudio? ( media-sound/pulseaudio ) + systemd? ( sys-apps/systemd:0= ) + upnp? ( net-libs/miniupnpc ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + sys-devel/gettext + virtual/pkgconfig" + +# vulkan-loader required for vulkan backend which can be selected +# at runtime. +RDEPEND="${RDEPEND} + vulkan? ( media-libs/vulkan-loader )" + +PATCHES=("${FILESDIR}"/${P}-musl.patch) + +# [directory]=license +declare -A KEEP_BUNDLED=( + [Bochs_disasm]=LGPL-2.1+ + [FreeSurround]=GPL-2+ + + # vulkan's API is not backwards-compatible: + # new release dropped VK_PRESENT_MODE_RANGE_SIZE_KHR + # but dolphin still relies on it, bug #729832 + [Vulkan]=Apache-2.0 + + [cpp-optparse]=MIT + # no support for for using system library + [glslang]=BSD + [imgui]=MIT + + # not packaged, tiny header library + [rangeset]=ZLIB + + # FIXME: xxhash can't be found by cmake + [xxhash]=BSD-2 + # no support for for using system library + [minizip]=ZLIB + # soundtouch uses shorts, not floats + [soundtouch]=LGPL-2.1+ + [cubeb]=ISC + [discord-rpc]=MIT + # Their build set up solely relies on the build in gtest. + [gtest]= # (build-time only) + # gentoo's version requires exception support. + # dolphin disables exceptions and fails the build. + [picojson]=BSD-2 + # No code to detect shared library. + [zstd]=BSD +) +LICENSE+=" ${KEEP_BUNDLED[*]}" + +src_prepare() { + cmake_src_prepare + + local s remove=() + for s in Externals/*; do + [[ -f ${s} ]] && continue + if ! has "${s#Externals/}" "${!KEEP_BUNDLED[@]}"; then + remove+=( "${s}" ) + fi + done + + einfo "removing sources: ${remove[*]}" + rm -r "${remove[@]}" || die + + # About 50% compile-time speedup + if ! use vulkan; then + sed -i -e '/Externals\/glslang/d' CMakeLists.txt || die + fi + + # Remove dirty suffix: needed for netplay + sed -i -e 's/--dirty/&=""/' CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + # Use ccache only when user did set FEATURES=ccache (or similar) + # not when ccache binary is present in system (automagic). + -DCCACHE_BIN=CCACHE_BIN-NOTFOUND + -DENABLE_ALSA=$(usex alsa) + -DENABLE_BLUEZ=$(usex bluetooth) + -DENABLE_EVDEV=$(usex evdev) + -DENCODE_FRAMEDUMPS=$(usex ffmpeg) + -DENABLE_LLVM=OFF + # just adds -flto, user can do that via flags + -DENABLE_LTO=OFF + -DENABLE_PULSEAUDIO=$(usex pulseaudio) + -DENABLE_QT=$(usex gui) + -DENABLE_SDL=OFF # not supported: #666558 + -DENABLE_VULKAN=$(usex vulkan) + -DFASTLOG=$(usex log) + -DOPROFILING=$(usex profile) + -DUSE_DISCORD_PRESENCE=$(usex discord-presence) + -DUSE_SHARED_ENET=ON + -DUSE_UPNP=$(usex upnp) + + # Undo cmake.eclass's defaults. + # All dolphin's libraries are private + # and rely on circular dependency resolution. + -DBUILD_SHARED_LIBS=OFF + + # Avoid warning spam around unset variables. + -Wno-dev + ) + + cmake_src_configure +} + +src_test() { + cmake_build unittests +} + +src_install() { + cmake_src_install + + dodoc Readme.md + if use doc; then + dodoc -r docs/ActionReplay docs/DSP docs/WiiMote + fi + + doicon -s 48 Data/dolphin-emu.png + doicon -s scalable Data/dolphin-emu.svg + doicon Data/dolphin-emu.svg +} + +pkg_postinst() { + # Add pax markings for hardened systems + pax-mark -m "${EPREFIX}"/usr/games/bin/"${PN}"-emu + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} diff --git a/games-emulation/dolphin/dolphin-5.0_p20210506.ebuild b/games-emulation/dolphin/dolphin-5.0_p20210506.ebuild deleted file mode 100644 index 5a9c3f739250..000000000000 --- a/games-emulation/dolphin/dolphin-5.0_p20210506.ebuild +++ /dev/null @@ -1,197 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PLOCALES="ar ca cs da de el en es fa fr hr hu it ja ko ms nb nl pl pt pt_BR ro ru sr sv tr zh_CN zh_TW" -PLOCALE_BACKUP="en" - -inherit cmake desktop xdg-utils pax-utils plocale - -if [[ ${PV} == *9999 ]] -then - EGIT_REPO_URI="https://github.com/dolphin-emu/dolphin" - inherit git-r3 -else - inherit vcs-snapshot - commit=eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68 - SRC_URI="https://github.com/dolphin-emu/dolphin/archive/${commit}.tar.gz -> ${P}.tar.gz" - KEYWORDS="amd64 ~arm64" -fi - -DESCRIPTION="Gamecube and Wii game emulator" -HOMEPAGE="https://www.dolphin-emu.org/" - -LICENSE="GPL-2" -SLOT="0" -IUSE="alsa bluetooth discord-presence doc +evdev ffmpeg log lto profile pulseaudio +qt5 systemd upnp vulkan" - -RDEPEND=" - dev-libs/hidapi:0= - >=dev-libs/libfmt-7.1:0= - dev-libs/lzo:2= - dev-libs/pugixml:0= - media-libs/libpng:0= - media-libs/libsfml - media-libs/mesa[egl] - net-libs/enet:1.3 - net-libs/mbedtls:0= - net-misc/curl:0= - sys-libs/readline:0= - sys-libs/zlib:0= - x11-libs/libXext - x11-libs/libXi - x11-libs/libXrandr - virtual/libusb:1 - virtual/opengl - alsa? ( media-libs/alsa-lib ) - bluetooth? ( net-wireless/bluez ) - evdev? ( - dev-libs/libevdev - virtual/udev - ) - ffmpeg? ( media-video/ffmpeg:= ) - profile? ( dev-util/oprofile ) - pulseaudio? ( media-sound/pulseaudio ) - qt5? ( - dev-qt/qtcore:5 - dev-qt/qtgui:5 - dev-qt/qtwidgets:5 - ) - systemd? ( sys-apps/systemd:0= ) - upnp? ( net-libs/miniupnpc ) -" -DEPEND="${RDEPEND}" -BDEPEND=" - sys-devel/gettext - virtual/pkgconfig" - -# vulkan-loader required for vulkan backend which can be selected -# at runtime. -RDEPEND="${RDEPEND} - vulkan? ( media-libs/vulkan-loader )" - -PATCHES=("${FILESDIR}"/${P}-musl.patch) - -src_prepare() { - cmake_src_prepare - - # Remove all the bundled libraries that support system-installed - # preference. See CMakeLists.txt for conditional 'add_subdirectory' calls. - local KEEP_SOURCES=( - Bochs_disasm - FreeSurround - - # vulkan's API is not backwards-compatible: - # new release dropped VK_PRESENT_MODE_RANGE_SIZE_KHR - # but dolphin still relies on it, bug #729832 - Vulkan - - cpp-optparse - # no support for for using system library - glslang - imgui - - # not packaged, tiny header library - rangeset - - # FIXME: xxhash can't be found by cmake - xxhash - # no support for for using system library - minizip - # soundtouch uses shorts, not floats - soundtouch - cubeb - discord-rpc - # Their build set up solely relies on the build in gtest. - gtest - # gentoo's version requires exception support. - # dolphin disables exceptions and fails the build. - picojson - # No code to detect shared library. - zstd - ) - local s - for s in "${KEEP_SOURCES[@]}"; do - mv -v "Externals/${s}" . || die - done - einfo "removing sources: $(echo Externals/*)" - rm -r Externals/* || die "Failed to delete Externals dir." - for s in "${KEEP_SOURCES[@]}"; do - mv -v "${s}" "Externals/" || die - done - - remove_locale() { - # Ensure preservation of the backup locale when no valid LINGUA is set - if [[ "${PLOCALE_BACKUP}" == "${1}" ]] && [[ "${PLOCALE_BACKUP}" == "$(plocale_get_locales)" ]]; then - return - else - rm "Languages/po/${1}.po" || die - fi - } - - plocale_find_changes "Languages/po/" "" '.po' - plocale_for_each_disabled_locale remove_locale - - # About 50% compile-time speedup - use vulkan || sed -i -e '/Externals\/glslang/d' CMakeLists.txt - - # Remove dirty suffix: needed for netplay - sed -i -e 's/--dirty/&=""/' CMakeLists.txt -} - -src_configure() { - local mycmakeargs=( - # Use ccache only when user did set FEATURES=ccache (or similar) - # not when ccache binary is present in system (automagic). - -DCCACHE_BIN=CCACHE_BIN-NOTFOUND - -DENABLE_ALSA=$(usex alsa) - -DENABLE_BLUEZ=$(usex bluetooth) - -DENABLE_EVDEV=$(usex evdev) - -DENCODE_FRAMEDUMPS=$(usex ffmpeg) - -DENABLE_LLVM=OFF - -DENABLE_LTO=$(usex lto) - -DENABLE_PULSEAUDIO=$(usex pulseaudio) - -DENABLE_QT=$(usex qt5) - -DENABLE_SDL=OFF # not supported: #666558 - -DENABLE_VULKAN=$(usex vulkan) - -DFASTLOG=$(usex log) - -DOPROFILING=$(usex profile) - -DUSE_DISCORD_PRESENCE=$(usex discord-presence) - -DUSE_SHARED_ENET=ON - -DUSE_UPNP=$(usex upnp) - - # Undo cmake.eclass's defaults. - # All dolphin's libraries are private - # and rely on circular dependency resolution. - -DBUILD_SHARED_LIBS=OFF - - # Avoid warning spam around unset variables. - -Wno-dev - ) - - cmake_src_configure -} - -src_install() { - cmake_src_install - - dodoc Readme.md - if use doc; then - dodoc -r docs/ActionReplay docs/DSP docs/WiiMote - fi - - doicon -s 48 Data/dolphin-emu.png - doicon -s scalable Data/dolphin-emu.svg - doicon Data/dolphin-emu.svg -} - -pkg_postinst() { - # Add pax markings for hardened systems - pax-mark -m "${EPREFIX}"/usr/games/bin/"${PN}"-emu - xdg_icon_cache_update -} - -pkg_postrm() { - xdg_icon_cache_update -} diff --git a/games-emulation/dolphin/dolphin-9999.ebuild b/games-emulation/dolphin/dolphin-9999.ebuild index 3da7b2e3d4f8..a6b3ce256bbc 100644 --- a/games-emulation/dolphin/dolphin-9999.ebuild +++ b/games-emulation/dolphin/dolphin-9999.ebuild @@ -35,7 +35,7 @@ RDEPEND=" dev-libs/pugixml:0= media-libs/libpng:0= media-libs/libsfml - media-libs/mesa[egl] + media-libs/mesa[egl(+)] net-libs/enet:1.3 net-libs/mbedtls:0= net-misc/curl:0= diff --git a/games-emulation/dosbox-staging/Manifest b/games-emulation/dosbox-staging/Manifest index 1e85e3621833..a6029c795c77 100644 --- a/games-emulation/dosbox-staging/Manifest +++ b/games-emulation/dosbox-staging/Manifest @@ -3,5 +3,5 @@ DIST dosbox-staging-0.77.0.tar.gz 2579927 BLAKE2B 2a8381451ec110ca5350afc70c45f1 DIST dosbox-staging-0.77.1.tar.gz 2622418 BLAKE2B c56020d263ceac199266a5c458c192441f836ea2e71e1564da175b7ae522286ca1b6a07062498ccea795bbf330beecb5ef99a0130637b1df26603315d48ea6ff SHA512 fe5d6150a88f5c276aee5672f98c15b5ffee702fe9934919d3e78068efd1a85f08a8f04352bc6a8fe850324e33f3227340c59242db6cbae0475b12a58b749cac EBUILD dosbox-staging-0.76.0.ebuild 1431 BLAKE2B d6fefe9c171bd48de4246e239d95ebc78bbc02cf1aa138712cc3a2ed76fa9a5a5a181770e8d3f2173079770ef56b4adb83f8843d2fbfcfa6996c8806936912c6 SHA512 3fa322c2f91c97d0f86befc97c93d0e4dd4dcdba56055a97a8dd0fe85907e7319353cf85790dfc790fe811a9ba8990eaece8d86040255cf55f99ea8b502b5ea5 EBUILD dosbox-staging-0.77.0-r1.ebuild 1458 BLAKE2B 0e0f6a28fe7851bded45749a2322b9b9225335c14923ed4ce1aeeb915f0a5a2eb21daba8b7862d8fdffc267210354053c10b0e038a7c5e41beb0020490c05c7b SHA512 88e4b4aa99fd3c25475aca2e522a23300b9af2628c7f64b9a8832105a350d99f451d6634b5336b11fdee173374d34975f41f46df25840c09178fb3286bf1f4a5 -EBUILD dosbox-staging-0.77.1.ebuild 1722 BLAKE2B 63c27133262364cb9426b73da0773cfb58b63ccb5d4880539b3cc0e26571e103d66bdbd01a9c86ab34a414024cf3df6ba1f3a1622cce58dc9564896a24be6690 SHA512 abb8a53167211cebe2fdc60e38bfe7d528e0ad5af41db8a2c7a98c79bd90db1b7801fe468b1172a4d8d90143435c5224b588c847296d5d3e016373fd697ea494 +EBUILD dosbox-staging-0.77.1.ebuild 1727 BLAKE2B f1ddc2fef8fb1afc6c02c3013270a45c618630796b349275e40ef24a8084609f897bd0dfc1a8ac2d6684d740e23eba27f3dfbedce205592e0191d32660d06254 SHA512 aab080cf5293e8db0c344b8b713eac51a5525e3b0fffafc0a0f802388e315e0c0a39a902f0037ecc726b590e961587ad9051f5a82c784e9b2d06a4a54e1df6e1 MISC metadata.xml 798 BLAKE2B e8e6368cfb116669c3359a665d5709c9bdc0eb778275599946e208a16909901ed23d852e7d45feaf6fd3897f786e1400d7eb46b19dcca45886df4872055b4577 SHA512 f513b215767cb39d8b92e8ece09110075d3c81ecb5d293b225e85d3e9368c2f10075435db6e31c758db89635ef9d99008d15430a0f7b891c0ae9278b7d97475e diff --git a/games-emulation/dosbox-staging/dosbox-staging-0.77.1.ebuild b/games-emulation/dosbox-staging/dosbox-staging-0.77.1.ebuild index 21a9a75fb1a9..652dbe698a9a 100644 --- a/games-emulation/dosbox-staging/dosbox-staging-0.77.1.ebuild +++ b/games-emulation/dosbox-staging/dosbox-staging-0.77.1.ebuild @@ -10,7 +10,7 @@ SRC_URI="https://github.com/dosbox-staging/dosbox-staging/archive/v${PV}.tar.gz LICENSE="GPL-2+" SLOT="0" -KEYWORDS="~amd64 ~ppc64 ~x86" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" IUSE="+alsa debug dynrec +fluidsynth mt-32 network opengl test" RESTRICT="!test? ( test )" -- cgit v1.2.3