aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuan Liao <liaoyuan@gmail.com>2024-02-07 18:37:34 -0500
committerYuan Liao <liaoyuan@gmail.com>2024-02-07 18:37:34 -0500
commit514d2ce53274c5abb37fc8738c3a1a5bb9789b90 (patch)
tree300bcc23dc4b4b6a8090a029611828e6f6548fe6 /games-emulation
parentapp-backup/kopia{,-ui-bin}: Remove myself from maintainer (diff)
downloadguru-514d2ce53274c5abb37fc8738c3a1a5bb9789b90.tar.gz
guru-514d2ce53274c5abb37fc8738c3a1a5bb9789b90.tar.bz2
guru-514d2ce53274c5abb37fc8738c3a1a5bb9789b90.zip
games-emulation/dosbox-x: Ensure dep for file dialog is present
Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
Diffstat (limited to 'games-emulation')
-rw-r--r--games-emulation/dosbox-x/dosbox-x-2023.10.06-r1.ebuild (renamed from games-emulation/dosbox-x/dosbox-x-2023.10.06.ebuild)24
-rw-r--r--games-emulation/dosbox-x/dosbox-x-9999.ebuild24
2 files changed, 42 insertions, 6 deletions
diff --git a/games-emulation/dosbox-x/dosbox-x-2023.10.06.ebuild b/games-emulation/dosbox-x/dosbox-x-2023.10.06-r1.ebuild
index 4c4100a93..3a9d16acc 100644
--- a/games-emulation/dosbox-x/dosbox-x-2023.10.06.ebuild
+++ b/games-emulation/dosbox-x/dosbox-x-2023.10.06-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022-2023 Gentoo Authors
+# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -47,7 +47,7 @@ BDEPEND="
# one available backend (https://bugs.gentoo.org/901303). Unconditionally
# depending on media-libs/libsdl2[alsa] to satisfy this requirement since
# this ebuild already unconditionally pulls in media-libs/alsa-lib.
-RDEPEND="
+COMMON_DEPEND="
media-libs/alsa-lib
media-libs/libsdl2[X,alsa,opengl?,sound,threads,video]
media-libs/sdl2-net
@@ -68,7 +68,25 @@ RDEPEND="
"
DEPEND="
- ${RDEPEND}
+ ${COMMON_DEPEND}
+"
+
+# DOSBox-X can still run normally without any of these dependencies --
+# it just cannot show a file dialog. However, upon the initial launch,
+# DOSBox-X will try to show a file dialog to let the user choose the
+# working directory; without one of these dependencies, the user would
+# see nothing when they launch DOSBox-X for the first time.
+FILE_DIALOG_DEPEND="
+ || (
+ gnome-extra/zenity
+ kde-apps/kdialog
+ x11-misc/xdialog
+ )
+"
+
+RDEPEND="
+ ${COMMON_DEPEND}
+ ${FILE_DIALOG_DEPEND}
"
pkg_pretend() {
diff --git a/games-emulation/dosbox-x/dosbox-x-9999.ebuild b/games-emulation/dosbox-x/dosbox-x-9999.ebuild
index 4c4100a93..3a9d16acc 100644
--- a/games-emulation/dosbox-x/dosbox-x-9999.ebuild
+++ b/games-emulation/dosbox-x/dosbox-x-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022-2023 Gentoo Authors
+# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -47,7 +47,7 @@ BDEPEND="
# one available backend (https://bugs.gentoo.org/901303). Unconditionally
# depending on media-libs/libsdl2[alsa] to satisfy this requirement since
# this ebuild already unconditionally pulls in media-libs/alsa-lib.
-RDEPEND="
+COMMON_DEPEND="
media-libs/alsa-lib
media-libs/libsdl2[X,alsa,opengl?,sound,threads,video]
media-libs/sdl2-net
@@ -68,7 +68,25 @@ RDEPEND="
"
DEPEND="
- ${RDEPEND}
+ ${COMMON_DEPEND}
+"
+
+# DOSBox-X can still run normally without any of these dependencies --
+# it just cannot show a file dialog. However, upon the initial launch,
+# DOSBox-X will try to show a file dialog to let the user choose the
+# working directory; without one of these dependencies, the user would
+# see nothing when they launch DOSBox-X for the first time.
+FILE_DIALOG_DEPEND="
+ || (
+ gnome-extra/zenity
+ kde-apps/kdialog
+ x11-misc/xdialog
+ )
+"
+
+RDEPEND="
+ ${COMMON_DEPEND}
+ ${FILE_DIALOG_DEPEND}
"
pkg_pretend() {