commit:     f9c264eb7581261b266b5d7c69cc142588e20438
Author:     Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
AuthorDate: Fri Nov 19 18:26:57 2021 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Fri Nov 19 18:38:14 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f9c264eb

net-im/nheko: Fix dependencies.

Not revbumping because ebuild is not in master yet.

Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>

 net-im/nheko/nheko-0.9.0.ebuild | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/net-im/nheko/nheko-0.9.0.ebuild b/net-im/nheko/nheko-0.9.0.ebuild
index aaff5f4d0..5ab9102a4 100644
--- a/net-im/nheko/nheko-0.9.0.ebuild
+++ b/net-im/nheko/nheko-0.9.0.ebuild
@@ -12,7 +12,7 @@ 
SRC_URI="https://github.com/Nheko-Reborn/${PN}/archive/v${PV}.tar.gz -> ${P}.tar
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="video voip"
+IUSE="X video voip"
 REQUIRED_USE="video? ( voip )"
 
 MY_GST_V="1.18"
@@ -26,6 +26,7 @@ RDEPEND="
        dev-qt/qtconcurrent:5
        dev-qt/qtgraphicaleffects:5
        dev-qt/qtgui:5[gif,jpeg,png]
+       dev-qt/qtimageformats
        dev-qt/qtmultimedia:5[gstreamer,qml]
        dev-qt/qtquickcontrols2:5
        dev-qt/qtsvg:5
@@ -39,8 +40,10 @@ RDEPEND="
                        >=media-libs/gst-plugins-base-${MY_GST_V}[opengl]
                        >=media-plugins/gst-plugins-meta-${MY_GST_V}[v4l,vpx]
                        >=media-plugins/gst-plugins-qt5-${MY_GST_V}
-                       >=media-plugins/gst-plugins-ximagesrc-${MY_GST_V}
-                       x11-libs/xcb-util-wm
+                       X? (
+                               
>=media-plugins/gst-plugins-ximagesrc-${MY_GST_V}
+                               x11-libs/xcb-util-wm
+                       )
                )
        )
 "
@@ -53,8 +56,12 @@ BDEPEND="dev-qt/linguist-tools:5"
 src_configure() {
        local -a mycmakeargs=(
                "-DVOIP=$(usex voip)"
-               "-DSCREENSHARE_X11=$(usex video)"
        )
+       if use video && use X; then
+               mycmakeargs+=("-DSCREENSHARE_X11=yes")
+       else
+               mycmakeargs+=("-DSCREENSHARE_X11=no")
+       fi
 
        cmake_src_configure
 }

Reply via email to