aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2023-08-17 22:37:53 +0200
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2023-08-17 22:58:51 +0200
commita4727bcf53bb4d44a4bbe64d127ad6ab6f258f86 (patch)
treef43658c834451ce3d611cbd17a1ef02f7c9dfa33 /games-emulation
parentgames-emulation/duckstation: Fix discord cmake flag and install filenames (diff)
downloadguru-a4727bcf53bb4d44a4bbe64d127ad6ab6f258f86.tar.gz
guru-a4727bcf53bb4d44a4bbe64d127ad6ab6f258f86.tar.bz2
guru-a4727bcf53bb4d44a4bbe64d127ad6ab6f258f86.zip
games-emulation/duckstation: qt5 to qt6 migration, dbus flag, cubeb dep
Closes: https://bugs.gentoo.org/883721 Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Diffstat (limited to 'games-emulation')
-rw-r--r--games-emulation/duckstation/duckstation-9999.ebuild23
-rw-r--r--games-emulation/duckstation/metadata.xml2
2 files changed, 14 insertions, 11 deletions
diff --git a/games-emulation/duckstation/duckstation-9999.ebuild b/games-emulation/duckstation/duckstation-9999.ebuild
index 355e99caa..21c10a0bd 100644
--- a/games-emulation/duckstation/duckstation-9999.ebuild
+++ b/games-emulation/duckstation/duckstation-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -13,7 +13,7 @@ EGIT_SUBMODULES=()
LICENSE="GPL-3"
SLOT="0"
-IUSE="discord +egl +evdev fbdev +gamepad gbm +nogui qt5 retroachievements wayland X"
+IUSE="+dbus discord +egl +evdev fbdev +gamepad gbm +nogui qt6 retroachievements wayland X"
# Either or both frontends must be built
REQUIRED_USE="
@@ -27,13 +27,14 @@ BDEPEND="
wayland? ( kde-frameworks/extra-cmake-modules )
"
DEPEND="
+ media-libs/cubeb
evdev? ( dev-libs/libevdev )
+ dbus? ( sys-apps/dbus )
gamepad? ( media-libs/libsdl2 )
gbm? ( x11-libs/libdrm )
- qt5? (
- dev-qt/qtcore
- dev-qt/qtgui
- dev-qt/qtnetwork
+ qt6? (
+ dev-qt/qtbase:6[gui,network,widgets]
+ dev-qt/qttools:6[linguist]
)
retroachievements? ( net-misc/curl[curl_ssl_gnutls] )
X? (
@@ -47,10 +48,12 @@ S="${WORKDIR}/${PN}"
src_configure() {
local mycmakeargs=(
+ -DENABLE_CUBEB=ON
-DBUILD_NOGUI_FRONTEND=$(usex nogui)
- -DBUILD_QT_FRONTEND=$(usex qt5)
+ -DBUILD_QT_FRONTEND=$(usex qt6)
-DENABLE_CHEEVOS=$(usex retroachievements)
-DENABLE_DISCORD_PRESENCE=$(usex discord)
+ -DUSE_DBUS=$(usex dbus)
-DUSE_DRMKMS=$(usex gbm)
-DUSE_EGL=$(usex egl)
-DUSE_EVDEV=$(usex evdev)
@@ -68,8 +71,7 @@ src_install() {
# Binary and resources files must be in same directory – installing in /opt
insinto /opt/${PN}
- doins -r "${BUILD_DIR}"/bin/resources
- doins -r "${BUILD_DIR}"/bin/translations
+ doins -r "${BUILD_DIR}"/bin/resources/
if use nogui; then
newicon "${BUILD_DIR}"/bin/resources/images/duck.png duckstation-nogui.png
@@ -80,10 +82,11 @@ src_install() {
fperms +x /opt/${PN}/duckstation-nogui
fi
- if use qt5; then
+ if use qt6; then
newicon "${BUILD_DIR}"/bin/resources/images/duck.png duckstation-qt.png
make_desktop_entry "${PN}-qt %f" "DuckStation Qt" "${PN}-qt" "Game"
+ doins -r "${BUILD_DIR}"/bin/translations/
doins "${BUILD_DIR}"/bin/duckstation-qt
dosym ../../opt/${PN}/duckstation-qt usr/bin/duckstation-qt
fperms +x /opt/${PN}/duckstation-qt
diff --git a/games-emulation/duckstation/metadata.xml b/games-emulation/duckstation/metadata.xml
index c036224ef..fbfcacde1 100644
--- a/games-emulation/duckstation/metadata.xml
+++ b/games-emulation/duckstation/metadata.xml
@@ -20,7 +20,7 @@
<flag name="gamepad">Link with SDL2 for controller support</flag>
<flag name="gbm">Support DRM/KMS OpenGL contexts</flag>
<flag name="nogui">Build the NoGUI frontend</flag>
- <flag name="qt5">Build the QT frontend</flag>
+ <flag name="qt6">Build the QT frontend</flag>
<flag name="retroachievements">Build with RetroAchievements supports</flag>
</use>
</pkgmetadata>