app-emulation/virt-viewer: Add libvirt USE flag as deps are optional
authorJames Le Cuirot <chewi@gentoo.org>
Sat, 21 Sep 2019 21:50:12 +0000 (22:50 +0100)
committerMatthias Maier <tamiko@gentoo.org>
Sun, 22 Sep 2019 02:28:48 +0000 (21:28 -0500)
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
app-emulation/virt-viewer/metadata.xml
app-emulation/virt-viewer/virt-viewer-8.0.ebuild

index 62904a2c958614f5b4277f530a1e3be989368934..3311e82897cdff1a2ddf988404ee93c3fd0ea56a 100644 (file)
@@ -6,6 +6,8 @@
                <name>Gentoo Virtualization Project</name>
        </maintainer>
        <use>
+               <flag name="libvirt">Support connecting to virtual machines
+                       managed by libvirt.</flag>
                <flag name="spice">Support connecting to SPICE-enabled virtual
                        machines.</flag>
                <flag name="vnc">Support connecting to VNC-enabled virtual
index bff9034cfbdb0a9b579be6bb2b428623e70aa85a..c6301491049d3a82e21012099c0017813c564955 100644 (file)
@@ -11,12 +11,14 @@ SRC_URI="http://virt-manager.org/download/sources/${PN}/${P}.tar.gz"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="sasl +spice +vnc"
+IUSE="+libvirt sasl +spice +vnc"
 
-RDEPEND=">=app-emulation/libvirt-0.10.0[sasl?]
-       app-emulation/libvirt-glib
-       >=dev-libs/libxml2-2.6
+RDEPEND=">=dev-libs/libxml2-2.6
        x11-libs/gtk+:3
+       libvirt? (
+               >=app-emulation/libvirt-0.10.0[sasl?]
+               app-emulation/libvirt-glib
+       )
        spice? ( >=net-misc/spice-gtk-0.35[sasl?,gtk3] )
        vnc? ( >=net-libs/gtk-vnc-0.5.0[sasl?,gtk3(+)] )"
 DEPEND="${RDEPEND}
@@ -31,6 +33,7 @@ src_configure() {
        gnome2_src_configure \
                --disable-update-mimedb \
                --without-ovirt \
+               $(use_with libvirt) \
                $(use_with vnc gtk-vnc) \
                $(use_with spice spice-gtk)
 }