From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-misc/cheat/
Date: Thu, 13 Apr 2023 07:02:18 +0000 (UTC) [thread overview]
Message-ID: <1681363267.79a0c63ed4156ee20a010b702a992dd95441460a.flow@gentoo> (raw)
commit: 79a0c63ed4156ee20a010b702a992dd95441460a
Author: Jonas Frei <freijon <AT> pm <DOT> me>
AuthorDate: Thu Apr 13 05:21:07 2023 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Thu Apr 13 05:21:07 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=79a0c63e
app-misc/cheat: shell-completion, several fixes
- Now making use of the 'shell-completion' eclass
- Removed 'zsh-completion' USE flag (completion is now installed
undonditionally)
- No longer building manpage since it's pre-built in the release
- Therefore: No longer depending on app-text/pandoc at build time
- Removed weird total blocking of app-shells/zsh-completion. Now
soft-blocking app-shells/zsh-completion < 0.34.0 because it used to
install the zsh completion '_cheat' before 0.34.0.
Signed-off-by: Jonas Frei <freijon <AT> pm.me>
.../{cheat-4.3.3.ebuild => cheat-4.3.3-r1.ebuild} | 22 +++++++---------------
1 file changed, 7 insertions(+), 15 deletions(-)
diff --git a/app-misc/cheat/cheat-4.3.3.ebuild b/app-misc/cheat/cheat-4.3.3-r1.ebuild
similarity index 58%
rename from app-misc/cheat/cheat-4.3.3.ebuild
rename to app-misc/cheat/cheat-4.3.3-r1.ebuild
index d45719a63..9fb8c0868 100644
--- a/app-misc/cheat/cheat-4.3.3.ebuild
+++ b/app-misc/cheat/cheat-4.3.3-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 2019-2021 Gentoo Authors
+# Copyright 2019-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-inherit bash-completion-r1 go-module optfeature
+inherit go-module optfeature shell-completion
DESCRIPTION="cheat allows you to create and view interactive cheatsheets on the command-line"
HOMEPAGE="https://github.com/cheat/cheat"
@@ -14,17 +14,13 @@ SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT Apache-2.0 BSD BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="man zsh-completion"
+IUSE="man"
-RDEPEND="zsh-completion? ( !app-shells/zsh-completions )"
-BDEPEND="man? ( app-text/pandoc )"
+RDEPEND="!<app-shells/zsh-completions-0.34.0"
+BDEPEND=""
src_compile() {
ego build -o ${PN} ./cmd/${PN}
-
- if use man; then
- pandoc -s -t man doc/${PN}.1.md -o doc/${PN}.1 || die "building manpage failed"
- fi
}
src_test() {
@@ -37,13 +33,9 @@ src_install() {
use man && doman doc/${PN}.1
newbashcomp scripts/${PN}.bash ${PN}
- insinto /usr/share/fish/vendor_completions.d
- doins scripts/${PN}.fish
+ dofishcomp scripts/${PN}.fish
- if use zsh-completion; then
- insinto /usr/share/zsh/site-functions
- newins scripts/${PN}.zsh _cheat
- fi
+ newzshcomp scripts/${PN}.zsh _${PN}
}
pkg_postinst() {
next reply other threads:[~2023-04-13 7:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-13 7:02 Florian Schmaus [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-11-01 2:55 [gentoo-commits] repo/proj/guru:master commit in: app-misc/cheat/ Ronny Gutbrod
2021-05-26 13:42 Andrew Ammerlaan
2021-04-29 8:23 Michał Górny
2020-12-27 12:48 Andrew Ammerlaan
2020-12-15 22:35 Haelwenn Monnier
2020-07-20 11:40 Andrew Ammerlaan
2020-06-02 17:07 Andrew Ammerlaan
2020-05-12 18:45 Andrew Ammerlaan
2020-04-27 11:25 Andrew Ammerlaan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1681363267.79a0c63ed4156ee20a010b702a992dd95441460a.flow@gentoo \
--to=flow@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox