commit:     a62fc24657f9219e10d268704fca2416d988314a
Author:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
AuthorDate: Sat Oct 10 13:31:19 2020 +0000
Commit:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
CommitDate: Sat Oct 10 13:33:43 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a62fc246

dev-vcs/lazygit: add live ebuild

Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>

 dev-vcs/lazygit/lazygit-9999.ebuild | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/dev-vcs/lazygit/lazygit-9999.ebuild 
b/dev-vcs/lazygit/lazygit-9999.ebuild
new file mode 100644
index 00000000..1ffebb9d
--- /dev/null
+++ b/dev-vcs/lazygit/lazygit-9999.ebuild
@@ -0,0 +1,37 @@
+# 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 git-r3 golang-build golang-vcs
+
+DESCRIPTION="Lazygit, a simple terminal UI for git commands"
+HOMEPAGE="https://github.com/jesseduffield/lazygit";
+EGIT_REPO_URI="https://github.com/jesseduffield/lazygit.git";
+SRC_URI=""
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS=""
+IUSE="doc"
+
+DEPEND=( sys-libs/glibc )
+RDEPEND=(
+       ${DEPEND}
+       dev-vcs/git
+)
+
+DOCS=( src/${EGO_PN}/{CONTRIBUTING,README}.md )
+
+src_compile() {
+       GOPATH="${S}" go build -v -o bin/lazygit src/${EGO_PN}/main.go || die
+}
+
+src_install() {
+       dobin bin/lazygit
+
+       use doc && dodoc -r "src/${EGO_PN}/docs/."
+       einstalldocs
+}

Reply via email to