1 |
commit: 9bd2388895a6910f732a2c1149601d5fea0abfb9 |
2 |
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Sun Oct 30 09:06:02 2022 +0000 |
4 |
Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> |
5 |
CommitDate: Sun Oct 30 09:35:26 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9bd23888 |
7 |
|
8 |
app-misc/cheat: add 4.3.3 |
9 |
|
10 |
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> |
11 |
|
12 |
app-misc/cheat/Manifest | 1 + |
13 |
app-misc/cheat/cheat-4.3.3.ebuild | 51 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 52 insertions(+) |
15 |
|
16 |
diff --git a/app-misc/cheat/Manifest b/app-misc/cheat/Manifest |
17 |
index d42831bad..eceafc3a3 100644 |
18 |
--- a/app-misc/cheat/Manifest |
19 |
+++ b/app-misc/cheat/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST cheat-4.2.3.tar.gz 1615016 BLAKE2B c33ec7bd083580d6a8bee955e85dd8cc7b3a0bafe4dec52928862192aaa67832b4972e05ea97328fd7cbfe35c41fd904832a5473aecfa096e4845e488896bb6f SHA512 c523b3bd815d8db397c9ffa28d66c0ef7fd3c9392bd144ab0710dfd3472a47544cb2b8745b0d700099ea844c15e526f89d71ec6b233bf1d371c48cb86b100467 |
22 |
+DIST cheat-4.3.3.tar.gz 2777293 BLAKE2B da29c5d08bf5b4fbcce5e70f3d9f483801e4fac7c397a2be499e2dc3d09b9ad6889f753628fe2631d410a1a3c7cd64029f01112eebed6bb562c155bc11d6614d SHA512 e88de31d4473be440ab025521acdb1313bf16fa4dc984d694ddc4cd776b0ced8f3ff9094881e598152f4cb246586de096cb136639bb2509ff94b4459b315c7be |
23 |
|
24 |
diff --git a/app-misc/cheat/cheat-4.3.3.ebuild b/app-misc/cheat/cheat-4.3.3.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000..d45719a63 |
27 |
--- /dev/null |
28 |
+++ b/app-misc/cheat/cheat-4.3.3.ebuild |
29 |
@@ -0,0 +1,51 @@ |
30 |
+# Copyright 2019-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+inherit bash-completion-r1 go-module optfeature |
36 |
+ |
37 |
+DESCRIPTION="cheat allows you to create and view interactive cheatsheets on the command-line" |
38 |
+HOMEPAGE="https://github.com/cheat/cheat" |
39 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
40 |
+ |
41 |
+# licenses present in the final built |
42 |
+# software. Checked with dev-go/golicense |
43 |
+LICENSE="MIT Apache-2.0 BSD BSD-2" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+IUSE="man zsh-completion" |
47 |
+ |
48 |
+RDEPEND="zsh-completion? ( !app-shells/zsh-completions )" |
49 |
+BDEPEND="man? ( app-text/pandoc )" |
50 |
+ |
51 |
+src_compile() { |
52 |
+ ego build -o ${PN} ./cmd/${PN} |
53 |
+ |
54 |
+ if use man; then |
55 |
+ pandoc -s -t man doc/${PN}.1.md -o doc/${PN}.1 || die "building manpage failed" |
56 |
+ fi |
57 |
+} |
58 |
+ |
59 |
+src_test() { |
60 |
+ ego test ./cmd/${PN} |
61 |
+} |
62 |
+ |
63 |
+src_install() { |
64 |
+ dobin ${PN} |
65 |
+ |
66 |
+ use man && doman doc/${PN}.1 |
67 |
+ |
68 |
+ newbashcomp scripts/${PN}.bash ${PN} |
69 |
+ insinto /usr/share/fish/vendor_completions.d |
70 |
+ doins scripts/${PN}.fish |
71 |
+ |
72 |
+ if use zsh-completion; then |
73 |
+ insinto /usr/share/zsh/site-functions |
74 |
+ newins scripts/${PN}.zsh _cheat |
75 |
+ fi |
76 |
+} |
77 |
+ |
78 |
+pkg_postinst() { |
79 |
+ optfeature "fzf integration" app-shells/fzf |
80 |
+} |