public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Ammerlaan" <andrewammerlaan@riseup.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-misc/cheat/
Date: Sun, 27 Dec 2020 12:48:21 +0000 (UTC)	[thread overview]
Message-ID: <1609014790.22ccf4cca6f70bd3ea56c9ab8915f49d745abe2a.andrewammerlaan@gentoo> (raw)

commit:     22ccf4cca6f70bd3ea56c9ab8915f49d745abe2a
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat Dec 26 20:11:29 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Sat Dec 26 20:33:10 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=22ccf4cc

app-misc/cheat: fixes

use T instead of /tmp
install completions

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 app-misc/cheat/cheat-4.2.0-r1.ebuild | 122 +++++++++++++++++++++++++++++++++++
 1 file changed, 122 insertions(+)

diff --git a/app-misc/cheat/cheat-4.2.0-r1.ebuild b/app-misc/cheat/cheat-4.2.0-r1.ebuild
new file mode 100644
index 00000000..036f2c13
--- /dev/null
+++ b/app-misc/cheat/cheat-4.2.0-r1.ebuild
@@ -0,0 +1,122 @@
+# Copyright 2019-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit bash-completion-r1 go-module optfeature
+
+EGO_SUM=(
+	"github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38"
+	"github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38/go.mod"
+	"github.com/alecthomas/chroma v0.8.2"
+	"github.com/alecthomas/chroma v0.8.2/go.mod"
+	"github.com/alecthomas/colour v0.0.0-20160524082231-60882d9e2721"
+	"github.com/alecthomas/colour v0.0.0-20160524082231-60882d9e2721/go.mod"
+	"github.com/alecthomas/kong v0.2.4/go.mod"
+	"github.com/alecthomas/repr v0.0.0-20180818092828-117648cd9897"
+	"github.com/alecthomas/repr v0.0.0-20180818092828-117648cd9897/go.mod"
+	"github.com/creack/pty v1.1.9/go.mod"
+	"github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964"
+	"github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964/go.mod"
+	"github.com/davecgh/go-spew v1.1.0/go.mod"
+	"github.com/davecgh/go-spew v1.1.1"
+	"github.com/davecgh/go-spew v1.1.1/go.mod"
+	"github.com/dlclark/regexp2 v1.2.0"
+	"github.com/dlclark/regexp2 v1.2.0/go.mod"
+	"github.com/dlclark/regexp2 v1.4.0"
+	"github.com/dlclark/regexp2 v1.4.0/go.mod"
+	"github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815"
+	"github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod"
+	"github.com/kr/pretty v0.1.0"
+	"github.com/kr/pretty v0.1.0/go.mod"
+	"github.com/kr/pty v1.1.1/go.mod"
+	"github.com/kr/text v0.1.0"
+	"github.com/kr/text v0.1.0/go.mod"
+	"github.com/kr/text v0.2.0"
+	"github.com/kr/text v0.2.0/go.mod"
+	"github.com/mattn/go-colorable v0.1.6/go.mod"
+	"github.com/mattn/go-isatty v0.0.12"
+	"github.com/mattn/go-isatty v0.0.12/go.mod"
+	"github.com/mitchellh/go-homedir v1.1.0"
+	"github.com/mitchellh/go-homedir v1.1.0/go.mod"
+	"github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e"
+	"github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod"
+	"github.com/pkg/errors v0.8.1"
+	"github.com/pkg/errors v0.8.1/go.mod"
+	"github.com/pkg/errors v0.9.1/go.mod"
+	"github.com/pmezard/go-difflib v1.0.0"
+	"github.com/pmezard/go-difflib v1.0.0/go.mod"
+	"github.com/sergi/go-diff v1.0.0"
+	"github.com/sergi/go-diff v1.0.0/go.mod"
+	"github.com/sergi/go-diff v1.1.0"
+	"github.com/sergi/go-diff v1.1.0/go.mod"
+	"github.com/stretchr/objx v0.1.0/go.mod"
+	"github.com/stretchr/testify v1.2.2/go.mod"
+	"github.com/stretchr/testify v1.3.0"
+	"github.com/stretchr/testify v1.3.0/go.mod"
+	"github.com/stretchr/testify v1.4.0"
+	"github.com/stretchr/testify v1.4.0/go.mod"
+	"golang.org/x/sys v0.0.0-20200116001909-b77594299b42"
+	"golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod"
+	"golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod"
+	"golang.org/x/sys v0.0.0-20200413165638-669c56c373c4"
+	"golang.org/x/sys v0.0.0-20200413165638-669c56c373c4/go.mod"
+	"golang.org/x/sys v0.0.0-20201126233918-771906719818"
+	"golang.org/x/sys v0.0.0-20201126233918-771906719818/go.mod"
+	"gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405"
+	"gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod"
+	"gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod"
+	"gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f"
+	"gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod"
+	"gopkg.in/yaml.v1 v1.0.0-20140924161607-9f9df34309c0"
+	"gopkg.in/yaml.v1 v1.0.0-20140924161607-9f9df34309c0/go.mod"
+	"gopkg.in/yaml.v2 v2.2.2/go.mod"
+	"gopkg.in/yaml.v2 v2.2.4/go.mod"
+	"gopkg.in/yaml.v2 v2.4.0"
+	"gopkg.in/yaml.v2 v2.4.0/go.mod"
+)
+
+go-module_set_globals
+
+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/cheat/cheat/archive/${PV}.tar.gz -> ${P}.tar.gz
+	${EGO_SUM_SRC_URI}
+"
+
+# 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=""
+
+RDEPEND=""
+BDEPEND="app-text/pandoc"
+
+src_prepare() {
+	sed -e "s|\/tmp|${T}|g" -i Makefile || die
+	default
+}
+
+src_test() {
+	# we can't use the default behavior
+	# since the check rule performs formatting
+	# with a non-standard go tool
+	emake test
+}
+
+src_install() {
+	dobin "dist/${PN}"
+	newbashcomp scripts/cheat.bash "${PN}"
+	insinto /usr/share/zsh/site-functions
+	newins scripts/cheat.zsh _cheat
+	insinto /usr/share/fish/vendor_completions.d
+	doins scripts/cheat.fish
+	doman doc/cheat.1
+}
+
+pkg_postinst() {
+	optfeature "To enable fzf integration export CHEAT_USE_FZF=true" app-shells/fzf
+}


             reply	other threads:[~2020-12-27 12:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-27 12:48 Andrew Ammerlaan [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
2022-11-01  2:55 Ronny Gutbrod
2021-05-26 13:42 Andrew Ammerlaan
2021-04-29  8:23 Michał Górny
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=1609014790.22ccf4cca6f70bd3ea56c9ab8915f49d745abe2a.andrewammerlaan@gentoo \
    --to=andrewammerlaan@riseup.net \
    --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