commit:     2c018f15ba322ef3d927b011bdfa72652ac30a5a
Author:     Craig Andrews <candrews <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 25 15:25:53 2019 +0000
Commit:     Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Mon Mar 25 15:26:39 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c018f15

app-backup/btrbk: add USE=doc

Closes: https://bugs.gentoo.org/681056
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>

 .../btrbk/{btrbk-9999.ebuild => btrbk-0.27.1-r1.ebuild}    | 14 +++++++++-----
 app-backup/btrbk/btrbk-9999.ebuild                         | 14 +++++++++-----
 2 files changed, 18 insertions(+), 10 deletions(-)

diff --git a/app-backup/btrbk/btrbk-9999.ebuild 
b/app-backup/btrbk/btrbk-0.27.1-r1.ebuild
similarity index 86%
copy from app-backup/btrbk/btrbk-9999.ebuild
copy to app-backup/btrbk/btrbk-0.27.1-r1.ebuild
index f364036c572..e0800b810e0 100644
--- a/app-backup/btrbk/btrbk-9999.ebuild
+++ b/app-backup/btrbk/btrbk-0.27.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -19,18 +19,22 @@ DESCRIPTION="Tool for creating snapshots and remote backups 
of btrfs subvolumes"
 HOMEPAGE="https://digint.ch/btrbk/";
 LICENSE="GPL-3+"
 SLOT="0"
-IUSE="+pv"
+IUSE="+pv +doc"
 
-DEPEND=">=app-text/asciidoc-8.6.0
-       app-text/xmlto"
+DEPEND="doc? ( >=dev-ruby/asciidoctor-1.5.7 )"
 
 RDEPEND="dev-lang/perl
        net-misc/openssh
        pv? ( sys-apps/pv )
        >=sys-fs/btrfs-progs-3.18.2"
 
+src_compile() {
+       use doc && emake -C doc
+}
 src_install() {
-       emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" 
SYSTEMDDIR="$(systemd_get_systemunitdir)" install
+       local targets="install-bin install-etc install-share install-systemd"
+       use doc && targets="${targets} install-man install-doc"
+       emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" 
SYSTEMDDIR="$(systemd_get_systemunitdir)" ${targets}
 }
 pkg_preinst() {
        if has_version "<${CATEGORY}/${PN}-0.26.0" ; then

diff --git a/app-backup/btrbk/btrbk-9999.ebuild 
b/app-backup/btrbk/btrbk-9999.ebuild
index f364036c572..e0800b810e0 100644
--- a/app-backup/btrbk/btrbk-9999.ebuild
+++ b/app-backup/btrbk/btrbk-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -19,18 +19,22 @@ DESCRIPTION="Tool for creating snapshots and remote backups 
of btrfs subvolumes"
 HOMEPAGE="https://digint.ch/btrbk/";
 LICENSE="GPL-3+"
 SLOT="0"
-IUSE="+pv"
+IUSE="+pv +doc"
 
-DEPEND=">=app-text/asciidoc-8.6.0
-       app-text/xmlto"
+DEPEND="doc? ( >=dev-ruby/asciidoctor-1.5.7 )"
 
 RDEPEND="dev-lang/perl
        net-misc/openssh
        pv? ( sys-apps/pv )
        >=sys-fs/btrfs-progs-3.18.2"
 
+src_compile() {
+       use doc && emake -C doc
+}
 src_install() {
-       emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" 
SYSTEMDDIR="$(systemd_get_systemunitdir)" install
+       local targets="install-bin install-etc install-share install-systemd"
+       use doc && targets="${targets} install-man install-doc"
+       emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" 
SYSTEMDDIR="$(systemd_get_systemunitdir)" ${targets}
 }
 pkg_preinst() {
        if has_version "<${CATEGORY}/${PN}-0.26.0" ; then

Reply via email to