app-misc/cheat: install man, add zsh-completion blocker

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2020-04-26 22:54:22 +02:00
parent 83ff5c44ca
commit 1440e05204
2 changed files with 7 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
# Copyright 2019-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI="7"
inherit go-module
@@ -91,12 +91,13 @@ LICENSE="MIT Apache-2.0 BSD BSD-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="man zsh-completion"
IUSE="zsh-completion"
BDEPEND=">=dev-lang/go-1.13
man? ( app-text/pandoc )
BDEPEND="
app-text/pandoc
>=dev-lang/go-1.13
"
RDEPEND="zsh-completion? ( app-shells/zsh-completions )"
RDEPEND="zsh-completion? ( !app-shells/zsh-completions )"
src_install() {
dobin "dist/${PN}"
@@ -104,5 +105,5 @@ src_install() {
insinto /usr/share/zsh/site-functions
newins scripts/cheat.zsh _cheat
fi
use man && doman doc/cheat.1
doman doc/cheat.1
}

View File

@@ -5,9 +5,6 @@
<email>mathieu.tortuyaux@gmail.com</email>
<name>Mathieu Tortuyaux</name>
</maintainer>
<use>
<flag name="man">build and install man pages</flag>
</use>
<longdescription lang="en">
cheat allows you to create and view interactive cheatsheets on the command-line.
It was designed to help remind *nix system administrators of options for commands that they use frequently, but not frequently enough to remember.