app-backup/btrbk: add USE=+mbuffer
authorAxel Burri <axel@tty0.ch>
Mon, 28 Oct 2019 20:47:49 +0000 (21:47 +0100)
committerCraig Andrews <candrews@gentoo.org>
Tue, 29 Oct 2019 00:05:16 +0000 (20:05 -0400)
mbuffer is not a strict dependency: on many it is only used by btrbk if
progress-bar and/or buffering/limiting is enabled.
Closes: https://github.com/gentoo/gentoo/pull/13480

Signed-off-by: Craig Andrews <candrews@gentoo.org>
app-backup/btrbk/btrbk-0.29.0.ebuild
app-backup/btrbk/btrbk-9999.ebuild
app-backup/btrbk/metadata.xml

index c9ddf6a8d10f3bd8f9a956aa3ae6387e969bfd33..7b91fc51e8b74b532ad967f23fb934cbc8095ebb 100644 (file)
@@ -19,13 +19,13 @@ DESCRIPTION="Tool for creating snapshots and remote backups of btrfs subvolumes"
 HOMEPAGE="https://digint.ch/btrbk/"
 LICENSE="GPL-3+"
 SLOT="0"
-IUSE="+doc"
+IUSE="+mbuffer +doc"
 
 DEPEND="doc? ( >=dev-ruby/asciidoctor-1.5.7 )"
 
 RDEPEND="dev-lang/perl
        net-misc/openssh
-       >=sys-block/mbuffer-20180505
+       mbuffer? ( >=sys-block/mbuffer-20180505 )
        >=sys-fs/btrfs-progs-4.12"
 
 src_compile() {
index c9ddf6a8d10f3bd8f9a956aa3ae6387e969bfd33..7b91fc51e8b74b532ad967f23fb934cbc8095ebb 100644 (file)
@@ -19,13 +19,13 @@ DESCRIPTION="Tool for creating snapshots and remote backups of btrfs subvolumes"
 HOMEPAGE="https://digint.ch/btrbk/"
 LICENSE="GPL-3+"
 SLOT="0"
-IUSE="+doc"
+IUSE="+mbuffer +doc"
 
 DEPEND="doc? ( >=dev-ruby/asciidoctor-1.5.7 )"
 
 RDEPEND="dev-lang/perl
        net-misc/openssh
-       >=sys-block/mbuffer-20180505
+       mbuffer? ( >=sys-block/mbuffer-20180505 )
        >=sys-fs/btrfs-progs-4.12"
 
 src_compile() {
index d5e883ce6629a9ea5e0a60ac15538398b2b5e666..73a2d8bc134d258a3c500e639f816f88b0e61349 100644 (file)
@@ -24,5 +24,6 @@
     </upstream>
     <use>
         <flag name='pv'>Use sys-apps/pv to enable progress bar functionality</flag>
+        <flag name='mbuffer'>Use sys-block/mbuffer to enable progress bar and buffering/limiting functionality</flag>
     </use>
 </pkgmetadata>