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

Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
This commit is contained in:
Yuan Liao
2024-02-07 18:37:34 -05:00
parent 5f4c6f910d
commit 514d2ce532
2 changed files with 42 additions and 6 deletions

View File

@@ -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() {

View File

@@ -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() {