app-misc/cheat - 4.4.2 (nest)

Search

Package Information

Description:
Interactive cheatsheets on the command-line
Homepage:
https://github.com/cheat/cheat
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
4.4.2 8 ~amd64 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module shell-completion

DESCRIPTION="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"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

src_compile() {
	GOFLAGS="-v -x -mod=vendor" \
		go build ./cmd/... || die "build failed"
}

src_test() {
	GOFLAGS="-v -x -mod=vendor" \
		go test -work ./... || die "test failed"
}

src_install() {
	einstalldocs
	dobin cheat
	doman doc/cheat.1

	newbashcomp scripts/cheat.bash cheat
	newfishcomp scripts/cheat.fish cheat
	newzshcomp scripts/cheat.zsh _cheat
}

Manifest for 4.4.2

Type File Size Source URLs
DIST cheat-4.4.2.tar.gz 3131874 bytes https://github.com/cheat/cheat/archive/4.4.2.tar.gz