commit:     6cb312af2bd483826c95f3404b3898c58207e93b
Author:     Hummer12007 <hilobakho <AT> gmail <DOT> com>
AuthorDate: Thu Apr 13 16:28:37 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Apr 15 07:32:47 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cb312af

x11-misc/redshift: do not set Python up w/ USE=-gtk

Closes: https://github.com/gentoo/gentoo/pull/4416

 x11-misc/redshift/redshift-1.11-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/x11-misc/redshift/redshift-1.11-r1.ebuild 
b/x11-misc/redshift/redshift-1.11-r1.ebuild
index d9f7e168280..2275d41cc66 100644
--- a/x11-misc/redshift/redshift-1.11-r1.ebuild
+++ b/x11-misc/redshift/redshift-1.11-r1.ebuild
@@ -30,7 +30,7 @@ DEPEND="${COMMON_DEPEND}
        nls? ( sys-devel/gettext )
        appindicator? ( dev-libs/libappindicator )
 "
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+REQUIRED_USE="gtk? ( ${PYTHON_REQUIRED_USE} )"
 
 src_prepare() {
        epatch_user
@@ -38,7 +38,7 @@ src_prepare() {
 }
 
 src_configure() {
-       python_export_best
+       use gtk && python_setup
 
        econf \
                --disable-silent-rules \

Reply via email to