--- a/app-backup/btrbk/btrbk-0.27.1.ebuild +++ b/app-backup/btrbk/btrbk-0.27.1.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 @@ 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