commit:     688a83132f747c94a60aed3f56a00f69f092fdc2
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon May 14 08:46:37 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon May 14 09:18:02 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=688a8313

www-client/midori: Fix respecting USE=xscreensaver

 www-client/midori/midori-0.5.11-r2.ebuild | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/www-client/midori/midori-0.5.11-r2.ebuild 
b/www-client/midori/midori-0.5.11-r2.ebuild
index a7c13b3633c..c48d7175b6c 100644
--- a/www-client/midori/midori-0.5.11-r2.ebuild
+++ b/www-client/midori/midori-0.5.11-r2.ebuild
@@ -27,10 +27,12 @@ RDEPEND="
        dev-libs/libxml2
        >=net-libs/libsoup-2.38:2.4
        >=x11-libs/libnotify-0.7
-       xscreensaver? ( x11-libs/libXScrnSaver )
        >=x11-libs/gtk+-3.10.0:3
        >=net-libs/webkit-gtk-2.3.91:4[jit=]
        granite? ( >=dev-libs/granite-0.2 )
+       xscreensaver? (
+               x11-libs/libX11
+               x11-libs/libXScrnSaver )
 "
 DEPEND="${RDEPEND}
        ${PYTHON_DEPS}
@@ -61,12 +63,13 @@ src_configure() {
                -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF}
                -DUSE_APIDOCS="$(usex doc)"
                -DUSE_GRANITE="$(usex granite)"
-               -DUSE_XSCREENSAVER="$(usex xscreensaver)"
                -DUSE_ZEITGEIST=OFF
                -DVALA_EXECUTABLE="${VALAC}"
                -DUSE_GTK3=ON
                -DHALF_BRO_INCOM_WEBKIT2=ON
-               )
+       )
+
+       use xscreensaver || mycmakeargs+=( -DXSS=XSS-NOTFOUND )
 
        cmake-utils_src_configure
 }

Reply via email to