commit:     2fe8d892ef6e3ce9bc25dfa81389e71c5246287a
Author:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
AuthorDate: Wed Apr  8 11:57:57 2020 +0000
Commit:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
CommitDate: Wed Apr  8 11:57:57 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2fe8d892

dev-vcs/lazygit: move DOCS to global, add USE="doc" for additional docs

Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>

 dev-vcs/lazygit/lazygit-0.19.ebuild | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/dev-vcs/lazygit/lazygit-0.19.ebuild 
b/dev-vcs/lazygit/lazygit-0.19.ebuild
index 6181240..3422934 100644
--- a/dev-vcs/lazygit/lazygit-0.19.ebuild
+++ b/dev-vcs/lazygit/lazygit-0.19.ebuild
@@ -14,7 +14,7 @@ 
SRC_URI="https://github.com/jesseduffield/${PN}/archive/v${PV}.tar.gz -> ${P}.ta
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE=""
+IUSE="doc"
 
 DEPEND=( sys-libs/glibc )
 RDEPEND=(
@@ -22,6 +22,8 @@ RDEPEND=(
        dev-vcs/git
 )
 
+DOCS=( src/${EGO_PN}/{CONTRIBUTING,README}.md )
+
 PATCHES=( "${FILESDIR}/${P}-fix-gpg-breaking-terminal.patch" )
 
 src_compile() {
@@ -31,10 +33,6 @@ src_compile() {
 src_install() {
        dobin bin/lazygit
 
-       local DOCS=(
-               src/${EGO_PN}/{CONTRIBUTING,README}.md
-               src/${EGO_PN}/docs/*.md
-               src/${EGO_PN}/docs/keybindings/*.md
-       )
+       use doc && dodoc -r "src/${EGO_PN}/docs/."
        einstalldocs
 }

Reply via email to