diff options
-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.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 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() { |