Gentoo Archives: gentoo-commits

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-vcs/lazygit/
Date: Wed, 23 Feb 2022 13:44:46
Message-Id: 1645622981.97b57b4f0c335cab2504bbaf5729019a4dcf84cd.cybertailor@gentoo
1 commit: 97b57b4f0c335cab2504bbaf5729019a4dcf84cd
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Mon Feb 21 18:56:29 2022 +0000
4 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
5 CommitDate: Wed Feb 23 13:29:41 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=97b57b4f
7
8 dev-vcs/lazygit: switch from deprecated eclass
9
10 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
11
12 dev-vcs/lazygit/Manifest | 1 -
13 dev-vcs/lazygit/lazygit-0.31.4.ebuild | 36 ----------------------------------
14 dev-vcs/lazygit/lazygit-0.33.ebuild | 28 ++++++++++++--------------
15 dev-vcs/lazygit/lazygit-9999.ebuild | 37 -----------------------------------
16 4 files changed, 13 insertions(+), 89 deletions(-)
17
18 diff --git a/dev-vcs/lazygit/Manifest b/dev-vcs/lazygit/Manifest
19 index 98f0ed9fc..70ac4c31c 100644
20 --- a/dev-vcs/lazygit/Manifest
21 +++ b/dev-vcs/lazygit/Manifest
22 @@ -1,2 +1 @@
23 -DIST lazygit-0.31.4.tar.gz 3540918 BLAKE2B 58f07b6f4c6fafe787c6e5dcd9e0bf4fa4133be34f893b5c1429021c8308953e0486442e563e99f19be4c51aa2c100067de6b7bf244fd0f932cd54e9d56a06d7 SHA512 2fb4f312ca4c4803f49cebf2487203e73f8d6b2c58f0ca477ff7857a5fc91f422c5942b7ab7b7e820cd95a205f270ba4d09075a1395dc4cf23531151fdb623e2
24 DIST lazygit-0.33.tar.gz 3729628 BLAKE2B 1cd9a081e5c0b5bd1248404771ed0d2617ef07ce1257a14ebaa13eab785d70ead908d3151fa6019fbc5149d24f7d69a351e7137c2c3878e38cd0630751197e9d SHA512 e878ef0eb64a8d3fb536767f33787dbf06fd27deb2a292e9658f1c97073b5c30d95f3390215bf973e90acc136bcddb839024fddcd4bf25e6dab5f2762a2db379
25
26 diff --git a/dev-vcs/lazygit/lazygit-0.31.4.ebuild b/dev-vcs/lazygit/lazygit-0.31.4.ebuild
27 deleted file mode 100644
28 index 233a104b0..000000000
29 --- a/dev-vcs/lazygit/lazygit-0.31.4.ebuild
30 +++ /dev/null
31 @@ -1,36 +0,0 @@
32 -# Copyright 1999-2021 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=7
36 -
37 -EGO_PN="github.com/jesseduffield/lazygit"
38 -
39 -inherit golang-build golang-vcs-snapshot
40 -
41 -DESCRIPTION="Lazygit, a simple terminal UI for git commands"
42 -HOMEPAGE="https://github.com/jesseduffield/lazygit"
43 -SRC_URI="https://github.com/jesseduffield/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 -
45 -LICENSE="MIT"
46 -SLOT="0"
47 -KEYWORDS="~amd64"
48 -IUSE="doc"
49 -
50 -DEPEND=( sys-libs/glibc )
51 -RDEPEND=(
52 - ${DEPEND}
53 - dev-vcs/git
54 -)
55 -
56 -DOCS=( src/${EGO_PN}/{CONTRIBUTING,README}.md )
57 -
58 -src_compile() {
59 - GOPATH="${S}" go build -v -o bin/lazygit src/${EGO_PN}/main.go || die
60 -}
61 -
62 -src_install() {
63 - dobin bin/lazygit
64 -
65 - use doc && dodoc -r "src/${EGO_PN}/docs/."
66 - einstalldocs
67 -}
68
69 diff --git a/dev-vcs/lazygit/lazygit-0.33.ebuild b/dev-vcs/lazygit/lazygit-0.33.ebuild
70 index 7e93aa089..7ec69e16b 100644
71 --- a/dev-vcs/lazygit/lazygit-0.33.ebuild
72 +++ b/dev-vcs/lazygit/lazygit-0.33.ebuild
73 @@ -1,36 +1,34 @@
74 # Copyright 1999-2022 Gentoo Authors
75 # Distributed under the terms of the GNU General Public License v2
76
77 -EAPI=7
78 +EAPI=8
79
80 -EGO_PN="github.com/jesseduffield/lazygit"
81 +inherit go-module
82
83 -inherit golang-build golang-vcs-snapshot
84 -
85 -DESCRIPTION="Lazygit, a simple terminal UI for git commands"
86 +DESCRIPTION="Simple terminal UI for git commands"
87 HOMEPAGE="https://github.com/jesseduffield/lazygit"
88 SRC_URI="https://github.com/jesseduffield/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
89
90 LICENSE="MIT"
91 SLOT="0"
92 KEYWORDS="~amd64"
93 -IUSE="doc"
94
95 -DEPEND=( sys-libs/glibc )
96 -RDEPEND=(
97 - ${DEPEND}
98 - dev-vcs/git
99 -)
100 +# TestCanDeactivatePopupContextsWithoutViews fails
101 +RESTRICT="test"
102 +
103 +RDEPEND="dev-vcs/git"
104
105 -DOCS=( src/${EGO_PN}/{CONTRIBUTING,README}.md )
106 +DOCS=( {CODE-OF-CONDUCT,CONTRIBUTING,README}.md docs )
107
108 src_compile() {
109 - GOPATH="${S}" go build -v -o bin/lazygit src/${EGO_PN}/main.go || die
110 + go build -o bin/lazygit || die
111 +}
112 +
113 +src_test() {
114 + ./test.sh || die
115 }
116
117 src_install() {
118 dobin bin/lazygit
119 -
120 - use doc && dodoc -r "src/${EGO_PN}/docs/."
121 einstalldocs
122 }
123
124 diff --git a/dev-vcs/lazygit/lazygit-9999.ebuild b/dev-vcs/lazygit/lazygit-9999.ebuild
125 deleted file mode 100644
126 index 1ffebb9de..000000000
127 --- a/dev-vcs/lazygit/lazygit-9999.ebuild
128 +++ /dev/null
129 @@ -1,37 +0,0 @@
130 -# Copyright 1999-2020 Gentoo Authors
131 -# Distributed under the terms of the GNU General Public License v2
132 -
133 -EAPI=7
134 -
135 -EGO_PN="github.com/jesseduffield/lazygit"
136 -
137 -inherit git-r3 golang-build golang-vcs
138 -
139 -DESCRIPTION="Lazygit, a simple terminal UI for git commands"
140 -HOMEPAGE="https://github.com/jesseduffield/lazygit"
141 -EGIT_REPO_URI="https://github.com/jesseduffield/lazygit.git"
142 -SRC_URI=""
143 -
144 -LICENSE="MIT"
145 -SLOT="0"
146 -KEYWORDS=""
147 -IUSE="doc"
148 -
149 -DEPEND=( sys-libs/glibc )
150 -RDEPEND=(
151 - ${DEPEND}
152 - dev-vcs/git
153 -)
154 -
155 -DOCS=( src/${EGO_PN}/{CONTRIBUTING,README}.md )
156 -
157 -src_compile() {
158 - GOPATH="${S}" go build -v -o bin/lazygit src/${EGO_PN}/main.go || die
159 -}
160 -
161 -src_install() {
162 - dobin bin/lazygit
163 -
164 - use doc && dodoc -r "src/${EGO_PN}/docs/."
165 - einstalldocs
166 -}