x11-misc/redshift: do not set Python up w/ USE=-gtk
authorHummer12007 <hilobakho@gmail.com>
Thu, 13 Apr 2017 16:28:37 +0000 (19:28 +0300)
committerMichał Górny <mgorny@gentoo.org>
Sat, 15 Apr 2017 07:32:47 +0000 (09:32 +0200)
Closes: https://github.com/gentoo/gentoo/pull/4416

x11-misc/redshift/redshift-1.11-r1.ebuild

index d9f7e168280ee457d580e61047813e9da56b5810..2275d41cc669e915d9ead3f05353ca8d61c28fcd 100644 (file)
@@ -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 \