Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-vcs/lazygit/
Date: Sun, 11 Oct 2020 14:54:27
Message-Id: 1602336823.a62fc24657f9219e10d268704fca2416d988314a.andrewammerlaan@gentoo
1 commit: a62fc24657f9219e10d268704fca2416d988314a
2 Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
3 AuthorDate: Sat Oct 10 13:31:19 2020 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Sat Oct 10 13:33:43 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a62fc246
7
8 dev-vcs/lazygit: add live ebuild
9
10 Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>
11
12 dev-vcs/lazygit/lazygit-9999.ebuild | 37 +++++++++++++++++++++++++++++++++++++
13 1 file changed, 37 insertions(+)
14
15 diff --git a/dev-vcs/lazygit/lazygit-9999.ebuild b/dev-vcs/lazygit/lazygit-9999.ebuild
16 new file mode 100644
17 index 00000000..1ffebb9d
18 --- /dev/null
19 +++ b/dev-vcs/lazygit/lazygit-9999.ebuild
20 @@ -0,0 +1,37 @@
21 +# Copyright 1999-2020 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=7
25 +
26 +EGO_PN="github.com/jesseduffield/lazygit"
27 +
28 +inherit git-r3 golang-build golang-vcs
29 +
30 +DESCRIPTION="Lazygit, a simple terminal UI for git commands"
31 +HOMEPAGE="https://github.com/jesseduffield/lazygit"
32 +EGIT_REPO_URI="https://github.com/jesseduffield/lazygit.git"
33 +SRC_URI=""
34 +
35 +LICENSE="MIT"
36 +SLOT="0"
37 +KEYWORDS=""
38 +IUSE="doc"
39 +
40 +DEPEND=( sys-libs/glibc )
41 +RDEPEND=(
42 + ${DEPEND}
43 + dev-vcs/git
44 +)
45 +
46 +DOCS=( src/${EGO_PN}/{CONTRIBUTING,README}.md )
47 +
48 +src_compile() {
49 + GOPATH="${S}" go build -v -o bin/lazygit src/${EGO_PN}/main.go || die
50 +}
51 +
52 +src_install() {
53 + dobin bin/lazygit
54 +
55 + use doc && dodoc -r "src/${EGO_PN}/docs/."
56 + einstalldocs
57 +}