x11-misc/qtfm: Add USE=dbus
authorJeroen Roovers <jer@gentoo.org>
Sun, 9 Jun 2019 12:42:46 +0000 (14:42 +0200)
committerJeroen Roovers <jer@gentoo.org>
Sun, 9 Jun 2019 12:45:35 +0000 (14:45 +0200)
Package-Manager: Portage-2.3.67, Repoman-2.3.14
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
x11-misc/qtfm/metadata.xml
x11-misc/qtfm/qtfm-6.2.0.ebuild

index 9c25f5fe1917a44a13c8cc10169d9d271023bdad..004b55d08e682d44c5889a83495bea51e9d79ece 100644 (file)
@@ -10,6 +10,7 @@
        <name>Gentoo Desktop Miscellaneous Project</name>
 </maintainer>
 <use>
+<flag name='dbus'>Install the qtfm-tray removable device manager</flag>
 <flag name='shared'>Install the libQtFM shared library and headers</flag>
 </use>
 </pkgmetadata>
index 1fd462b11fa494ae0b21ecbf909735899ee702a7..e330a1bea393389c97f6671295f9a3f33f14dd28 100644 (file)
@@ -11,16 +11,16 @@ SRC_URI="https://github.com/rodlie/qtfm/archive/${PV}.tar.gz -> ${P}.tar.gz"
 LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="shared"
+IUSE="+dbus shared"
 
 RDEPEND="
        dev-qt/qtconcurrent:5
        dev-qt/qtcore:5
-       dev-qt/qtdbus:5
        dev-qt/qtgui:5
        dev-qt/qtnetwork:5
        dev-qt/qtwidgets:5
        sys-apps/file
+       dbus? ( dev-qt/qtdbus:5 )
 "
 DEPEND="
        ${RDEPEND}
@@ -30,6 +30,7 @@ DEPEND="
 
 src_configure() {
        eqmake5 \
+               $(usex dbus '' 'CONFIG+=no_dbus CONFIG+=no_tray') \
                $(usex shared 'CONFIG+=sharedlib' '') \
                $(usex shared 'CONFIG+=with_includes' '') \
                LIBDIR="/usr/$(get_libdir)" \