1 |
commit: 22ccf4cca6f70bd3ea56c9ab8915f49d745abe2a |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Dec 26 20:11:29 2020 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Dec 26 20:33:10 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=22ccf4cc |
7 |
|
8 |
app-misc/cheat: fixes |
9 |
|
10 |
use T instead of /tmp |
11 |
install completions |
12 |
|
13 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
14 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
15 |
|
16 |
app-misc/cheat/cheat-4.2.0-r1.ebuild | 122 +++++++++++++++++++++++++++++++++++ |
17 |
1 file changed, 122 insertions(+) |
18 |
|
19 |
diff --git a/app-misc/cheat/cheat-4.2.0-r1.ebuild b/app-misc/cheat/cheat-4.2.0-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000..036f2c13 |
22 |
--- /dev/null |
23 |
+++ b/app-misc/cheat/cheat-4.2.0-r1.ebuild |
24 |
@@ -0,0 +1,122 @@ |
25 |
+# Copyright 2019-2020 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+inherit bash-completion-r1 go-module optfeature |
31 |
+ |
32 |
+EGO_SUM=( |
33 |
+ "github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38" |
34 |
+ "github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38/go.mod" |
35 |
+ "github.com/alecthomas/chroma v0.8.2" |
36 |
+ "github.com/alecthomas/chroma v0.8.2/go.mod" |
37 |
+ "github.com/alecthomas/colour v0.0.0-20160524082231-60882d9e2721" |
38 |
+ "github.com/alecthomas/colour v0.0.0-20160524082231-60882d9e2721/go.mod" |
39 |
+ "github.com/alecthomas/kong v0.2.4/go.mod" |
40 |
+ "github.com/alecthomas/repr v0.0.0-20180818092828-117648cd9897" |
41 |
+ "github.com/alecthomas/repr v0.0.0-20180818092828-117648cd9897/go.mod" |
42 |
+ "github.com/creack/pty v1.1.9/go.mod" |
43 |
+ "github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964" |
44 |
+ "github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964/go.mod" |
45 |
+ "github.com/davecgh/go-spew v1.1.0/go.mod" |
46 |
+ "github.com/davecgh/go-spew v1.1.1" |
47 |
+ "github.com/davecgh/go-spew v1.1.1/go.mod" |
48 |
+ "github.com/dlclark/regexp2 v1.2.0" |
49 |
+ "github.com/dlclark/regexp2 v1.2.0/go.mod" |
50 |
+ "github.com/dlclark/regexp2 v1.4.0" |
51 |
+ "github.com/dlclark/regexp2 v1.4.0/go.mod" |
52 |
+ "github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815" |
53 |
+ "github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod" |
54 |
+ "github.com/kr/pretty v0.1.0" |
55 |
+ "github.com/kr/pretty v0.1.0/go.mod" |
56 |
+ "github.com/kr/pty v1.1.1/go.mod" |
57 |
+ "github.com/kr/text v0.1.0" |
58 |
+ "github.com/kr/text v0.1.0/go.mod" |
59 |
+ "github.com/kr/text v0.2.0" |
60 |
+ "github.com/kr/text v0.2.0/go.mod" |
61 |
+ "github.com/mattn/go-colorable v0.1.6/go.mod" |
62 |
+ "github.com/mattn/go-isatty v0.0.12" |
63 |
+ "github.com/mattn/go-isatty v0.0.12/go.mod" |
64 |
+ "github.com/mitchellh/go-homedir v1.1.0" |
65 |
+ "github.com/mitchellh/go-homedir v1.1.0/go.mod" |
66 |
+ "github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e" |
67 |
+ "github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod" |
68 |
+ "github.com/pkg/errors v0.8.1" |
69 |
+ "github.com/pkg/errors v0.8.1/go.mod" |
70 |
+ "github.com/pkg/errors v0.9.1/go.mod" |
71 |
+ "github.com/pmezard/go-difflib v1.0.0" |
72 |
+ "github.com/pmezard/go-difflib v1.0.0/go.mod" |
73 |
+ "github.com/sergi/go-diff v1.0.0" |
74 |
+ "github.com/sergi/go-diff v1.0.0/go.mod" |
75 |
+ "github.com/sergi/go-diff v1.1.0" |
76 |
+ "github.com/sergi/go-diff v1.1.0/go.mod" |
77 |
+ "github.com/stretchr/objx v0.1.0/go.mod" |
78 |
+ "github.com/stretchr/testify v1.2.2/go.mod" |
79 |
+ "github.com/stretchr/testify v1.3.0" |
80 |
+ "github.com/stretchr/testify v1.3.0/go.mod" |
81 |
+ "github.com/stretchr/testify v1.4.0" |
82 |
+ "github.com/stretchr/testify v1.4.0/go.mod" |
83 |
+ "golang.org/x/sys v0.0.0-20200116001909-b77594299b42" |
84 |
+ "golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod" |
85 |
+ "golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod" |
86 |
+ "golang.org/x/sys v0.0.0-20200413165638-669c56c373c4" |
87 |
+ "golang.org/x/sys v0.0.0-20200413165638-669c56c373c4/go.mod" |
88 |
+ "golang.org/x/sys v0.0.0-20201126233918-771906719818" |
89 |
+ "golang.org/x/sys v0.0.0-20201126233918-771906719818/go.mod" |
90 |
+ "gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405" |
91 |
+ "gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod" |
92 |
+ "gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod" |
93 |
+ "gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f" |
94 |
+ "gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod" |
95 |
+ "gopkg.in/yaml.v1 v1.0.0-20140924161607-9f9df34309c0" |
96 |
+ "gopkg.in/yaml.v1 v1.0.0-20140924161607-9f9df34309c0/go.mod" |
97 |
+ "gopkg.in/yaml.v2 v2.2.2/go.mod" |
98 |
+ "gopkg.in/yaml.v2 v2.2.4/go.mod" |
99 |
+ "gopkg.in/yaml.v2 v2.4.0" |
100 |
+ "gopkg.in/yaml.v2 v2.4.0/go.mod" |
101 |
+) |
102 |
+ |
103 |
+go-module_set_globals |
104 |
+ |
105 |
+DESCRIPTION="cheat allows you to create and view interactive cheatsheets on the command-line" |
106 |
+HOMEPAGE="https://github.com/cheat/cheat" |
107 |
+SRC_URI=" |
108 |
+ https://github.com/cheat/cheat/archive/${PV}.tar.gz -> ${P}.tar.gz |
109 |
+ ${EGO_SUM_SRC_URI} |
110 |
+" |
111 |
+ |
112 |
+# licenses present in the final built |
113 |
+# software. Checked with dev-go/golicense |
114 |
+LICENSE="MIT Apache-2.0 BSD BSD-2" |
115 |
+SLOT="0" |
116 |
+KEYWORDS="~amd64 ~x86" |
117 |
+IUSE="" |
118 |
+ |
119 |
+RDEPEND="" |
120 |
+BDEPEND="app-text/pandoc" |
121 |
+ |
122 |
+src_prepare() { |
123 |
+ sed -e "s|\/tmp|${T}|g" -i Makefile || die |
124 |
+ default |
125 |
+} |
126 |
+ |
127 |
+src_test() { |
128 |
+ # we can't use the default behavior |
129 |
+ # since the check rule performs formatting |
130 |
+ # with a non-standard go tool |
131 |
+ emake test |
132 |
+} |
133 |
+ |
134 |
+src_install() { |
135 |
+ dobin "dist/${PN}" |
136 |
+ newbashcomp scripts/cheat.bash "${PN}" |
137 |
+ insinto /usr/share/zsh/site-functions |
138 |
+ newins scripts/cheat.zsh _cheat |
139 |
+ insinto /usr/share/fish/vendor_completions.d |
140 |
+ doins scripts/cheat.fish |
141 |
+ doman doc/cheat.1 |
142 |
+} |
143 |
+ |
144 |
+pkg_postinst() { |
145 |
+ optfeature "To enable fzf integration export CHEAT_USE_FZF=true" app-shells/fzf |
146 |
+} |