commit:     3e9deadaabae4c024e334d4c4a80c3099f182d16
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 28 13:49:42 2023 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Thu Dec 28 13:50:44 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e9deada

app-emulation/86Box: add qt6 support

Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 .../86Box/{86Box-4.0.1.ebuild => 86Box-4.0.1-r1.ebuild}       | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/app-emulation/86Box/86Box-4.0.1.ebuild 
b/app-emulation/86Box/86Box-4.0.1-r1.ebuild
similarity index 88%
rename from app-emulation/86Box/86Box-4.0.1.ebuild
rename to app-emulation/86Box/86Box-4.0.1-r1.ebuild
index e7aba1c39380..cc978ae05ad0 100644
--- a/app-emulation/86Box/86Box-4.0.1.ebuild
+++ b/app-emulation/86Box/86Box-4.0.1-r1.ebuild
@@ -12,7 +12,7 @@ 
SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.
 LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="dinput experimental +fluidsynth +munt new-dynarec +openal +qt5 +threads"
+IUSE="dinput experimental +fluidsynth +munt new-dynarec +openal qt5 +qt6 
+threads"
 
 DEPEND="
        app-emulation/faudio
@@ -25,6 +25,7 @@ DEPEND="
        net-libs/libslirp
        sys-libs/zlib
        qt5? ( x11-libs/libXi )
+       qt6? ( x11-libs/libXi )
 "
 
 RDEPEND="
@@ -41,6 +42,11 @@ RDEPEND="
                dev-qt/qtwidgets:5
                kde-frameworks/extra-cmake-modules
        )
+       qt6? (
+               dev-qt/qtbase:6[gui,network,opengl,widgets]
+               dev-qt/qttranslations:6
+               kde-frameworks/extra-cmake-modules
+       )
 "
 
 BDEPEND="virtual/pkgconfig"
@@ -64,8 +70,9 @@ src_configure() {
                -DOPENAL="$(usex openal)"
                -DPREFER_STATIC="OFF"
                -DRTMIDI="ON"
-               -DQT="$(usex qt5)"
+               -DQT="$(usex qt5 'ON' $(usex qt6))"
                -DRELEASE="ON"
+               -DUSE_QT6="$(usex qt6)"
        )
 
        cmake_src_configure

Reply via email to