x11-misc/spacefm-9999: add gtk2 support
authorDaniel Campbell <zlg@gentoo.org>
Thu, 13 Aug 2015 11:22:13 +0000 (04:22 -0700)
committerDaniel Campbell <zlg@gentoo.org>
Thu, 13 Aug 2015 11:22:13 +0000 (04:22 -0700)
Package-Manager: portage-2.2.20

x11-misc/spacefm/spacefm-9999.ebuild

index 560a3a322f0c9c00bc831e8bb775dc47b5324c60..0bdefc78b0878a2d7a1ea2d2945bf6f9a1b2dc35 100644 (file)
@@ -15,7 +15,8 @@ HOMEPAGE="http://ignorantguru.github.com/spacefm/"
 LICENSE="GPL-2 LGPL-2.1"
 SLOT="0"
 KEYWORDS=""
-IUSE="+startup-notification +video-thumbnails"
+IUSE="gtk2 +gtk3 +startup-notification +video-thumbnails"
+REQUIRED_USE="gtk2? ( !gtk3 )"
 
 RDEPEND="dev-libs/glib:2
        dev-util/desktop-file-utils
@@ -42,7 +43,7 @@ src_configure() {
                --disable-hal \
                --enable-inotify \
                --disable-pixmaps \
-               --with-gtk3=yes
+               $(use_with gtk3 gtk3 "yes")
 }
 
 pkg_preinst() {