commit:     db948eff0ed1978f165e3b06aaa6990698e8493f
Author:     Luciano Degni <degni.public <AT> gmail <DOT> com>
AuthorDate: Fri Jan  7 20:10:05 2022 +0000
Commit:     Luciano Degni <degni.public <AT> gmail <DOT> com>
CommitDate: Fri Jan  7 20:10:05 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=db948eff

app-editors/helix: added doc use flag

Signed-off-by: Luciano Degni <degni.public <AT> gmail.com>

 app-editors/helix/helix-0.6.0.ebuild | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/app-editors/helix/helix-0.6.0.ebuild 
b/app-editors/helix/helix-0.6.0.ebuild
index 2ac8338f6..00b0ac402 100644
--- a/app-editors/helix/helix-0.6.0.ebuild
+++ b/app-editors/helix/helix-0.6.0.ebuild
@@ -204,13 +204,17 @@ LICENSE="
 "
 SLOT="0"
 KEYWORDS="~amd64"
+IUSE="doc"
 
 DEPEND="
        app-shells/bash
        dev-vcs/git
 "
 
-RDEPEND="app-shells/bash"
+RDEPEND="
+       app-shells/bash
+       !app-editors/${PN}-bin
+"
 
 QA_FLAGS_IGNORED="usr/bin/.*"
 
@@ -280,6 +284,7 @@ src_compile() {
 src_install() {
        insinto /usr/share/helix
        doins -r runtime
-       dodoc README.md CHANGELOG.md
+       use doc && dodoc README.md CHANGELOG.md
+       use doc && dodoc -r docs/
        cargo_src_install --path helix-term
 }
\ No newline at end of file

Reply via email to