public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ronny Gutbrod" <gentoo@tastytea.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-misc/cheat/
Date: Tue,  1 Nov 2022 02:55:07 +0000 (UTC)	[thread overview]
Message-ID: <1667122526.9bd2388895a6910f732a2c1149601d5fea0abfb9.tastytea@gentoo> (raw)

commit:     9bd2388895a6910f732a2c1149601d5fea0abfb9
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Sun Oct 30 09:06:02 2022 +0000
Commit:     Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
CommitDate: Sun Oct 30 09:35:26 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9bd23888

app-misc/cheat: add 4.3.3

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 app-misc/cheat/Manifest           |  1 +
 app-misc/cheat/cheat-4.3.3.ebuild | 51 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/app-misc/cheat/Manifest b/app-misc/cheat/Manifest
index d42831bad..eceafc3a3 100644
--- a/app-misc/cheat/Manifest
+++ b/app-misc/cheat/Manifest
@@ -1 +1,2 @@
 DIST cheat-4.2.3.tar.gz 1615016 BLAKE2B c33ec7bd083580d6a8bee955e85dd8cc7b3a0bafe4dec52928862192aaa67832b4972e05ea97328fd7cbfe35c41fd904832a5473aecfa096e4845e488896bb6f SHA512 c523b3bd815d8db397c9ffa28d66c0ef7fd3c9392bd144ab0710dfd3472a47544cb2b8745b0d700099ea844c15e526f89d71ec6b233bf1d371c48cb86b100467
+DIST cheat-4.3.3.tar.gz 2777293 BLAKE2B da29c5d08bf5b4fbcce5e70f3d9f483801e4fac7c397a2be499e2dc3d09b9ad6889f753628fe2631d410a1a3c7cd64029f01112eebed6bb562c155bc11d6614d SHA512 e88de31d4473be440ab025521acdb1313bf16fa4dc984d694ddc4cd776b0ced8f3ff9094881e598152f4cb246586de096cb136639bb2509ff94b4459b315c7be

diff --git a/app-misc/cheat/cheat-4.3.3.ebuild b/app-misc/cheat/cheat-4.3.3.ebuild
new file mode 100644
index 000000000..d45719a63
--- /dev/null
+++ b/app-misc/cheat/cheat-4.3.3.ebuild
@@ -0,0 +1,51 @@
+# Copyright 2019-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1 go-module optfeature
+
+DESCRIPTION="cheat allows you to create and view interactive cheatsheets on the command-line"
+HOMEPAGE="https://github.com/cheat/cheat"
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+# licenses present in the final built
+# software. Checked with dev-go/golicense
+LICENSE="MIT Apache-2.0 BSD BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="man zsh-completion"
+
+RDEPEND="zsh-completion? ( !app-shells/zsh-completions )"
+BDEPEND="man? ( app-text/pandoc )"
+
+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() {
+	ego test ./cmd/${PN}
+}
+
+src_install() {
+	dobin ${PN}
+
+	use man && doman doc/${PN}.1
+
+	newbashcomp scripts/${PN}.bash ${PN}
+	insinto /usr/share/fish/vendor_completions.d
+	doins scripts/${PN}.fish
+
+	if use zsh-completion; then
+		insinto /usr/share/zsh/site-functions
+		newins scripts/${PN}.zsh _cheat
+	fi
+}
+
+pkg_postinst() {
+	optfeature "fzf integration" app-shells/fzf
+}


             reply	other threads:[~2022-11-01  2:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-01  2:55 Ronny Gutbrod [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-04-13  7:02 [gentoo-commits] repo/proj/guru:master commit in: app-misc/cheat/ Florian Schmaus
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=1667122526.9bd2388895a6910f732a2c1149601d5fea0abfb9.tastytea@gentoo \
    --to=gentoo@tastytea.de \
    --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