mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 19:43:24 -04:00
dev-vcs/lazygit: add new package
Add ebuild for lazygit-0.19: a simple terminal UI for git commands, written in Go with the gocui library. The patch fix crash if git config use 'showSignature = true' option. Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
This commit is contained in:
40
dev-vcs/lazygit/lazygit-0.19.ebuild
Normal file
40
dev-vcs/lazygit/lazygit-0.19.ebuild
Normal file
@@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
EGO_PN="github.com/jesseduffield/lazygit"
|
||||
|
||||
inherit golang-build golang-vcs-snapshot
|
||||
|
||||
DESCRIPTION="Lazygit, a simple terminal UI for git commands"
|
||||
HOMEPAGE="https://github.com/jesseduffield/lazygit"
|
||||
SRC_URI="https://github.com/jesseduffield/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=( sys-libs/glibc )
|
||||
RDEPEND=(
|
||||
${DEPEND}
|
||||
dev-vcs/git
|
||||
)
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-fix-gpg-breaking-terminal.patch" )
|
||||
|
||||
src_compile() {
|
||||
GOPATH="${S}" go build -v -o bin/lazygit src/${EGO_PN}/main.go || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/lazygit
|
||||
|
||||
local DOCS=(
|
||||
src/${EGO_PN}/{CONTRIBUTING,README}.md
|
||||
src/${EGO_PN}/docs/*.md
|
||||
src/${EGO_PN}/docs/keybindings/*.md
|
||||
)
|
||||
einstalldocs
|
||||
}
|
||||
Reference in New Issue
Block a user