commit:     514d2ce53274c5abb37fc8738c3a1a5bb9789b90
Author:     Yuan Liao <liaoyuan <AT> gmail <DOT> com>
AuthorDate: Wed Feb  7 23:37:34 2024 +0000
Commit:     Yuan Liao <liaoyuan <AT> gmail <DOT> com>
CommitDate: Wed Feb  7 23:37:34 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=514d2ce5

games-emulation/dosbox-x: Ensure dep for file dialog is present

Signed-off-by: Yuan Liao <liaoyuan <AT> gmail.com>

 ....10.06.ebuild => dosbox-x-2023.10.06-r1.ebuild} | 24 +++++++++++++++++++---
 games-emulation/dosbox-x/dosbox-x-9999.ebuild      | 24 +++++++++++++++++++---
 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
similarity index 92%
rename from games-emulation/dosbox-x/dosbox-x-2023.10.06.ebuild
rename to games-emulation/dosbox-x/dosbox-x-2023.10.06-r1.ebuild
index 4c4100a93f..3a9d16acc2 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 4c4100a93f..3a9d16acc2 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() {

Reply via email to