dev-vcs/lazygit: switch from deprecated eclass

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2022-02-21 23:56:29 +05:00
parent f896bee213
commit 97b57b4f0c
4 changed files with 13 additions and 89 deletions

View File

@@ -1,2 +1 @@
DIST lazygit-0.31.4.tar.gz 3540918 BLAKE2B 58f07b6f4c6fafe787c6e5dcd9e0bf4fa4133be34f893b5c1429021c8308953e0486442e563e99f19be4c51aa2c100067de6b7bf244fd0f932cd54e9d56a06d7 SHA512 2fb4f312ca4c4803f49cebf2487203e73f8d6b2c58f0ca477ff7857a5fc91f422c5942b7ab7b7e820cd95a205f270ba4d09075a1395dc4cf23531151fdb623e2
DIST lazygit-0.33.tar.gz 3729628 BLAKE2B 1cd9a081e5c0b5bd1248404771ed0d2617ef07ce1257a14ebaa13eab785d70ead908d3151fa6019fbc5149d24f7d69a351e7137c2c3878e38cd0630751197e9d SHA512 e878ef0eb64a8d3fb536767f33787dbf06fd27deb2a292e9658f1c97073b5c30d95f3390215bf973e90acc136bcddb839024fddcd4bf25e6dab5f2762a2db379

View File

@@ -1,36 +0,0 @@
# Copyright 1999-2021 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="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
}

View File

@@ -1,36 +1,34 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
EGO_PN="github.com/jesseduffield/lazygit"
inherit go-module
inherit golang-build golang-vcs-snapshot
DESCRIPTION="Lazygit, a simple terminal UI for git commands"
DESCRIPTION="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="doc"
DEPEND=( sys-libs/glibc )
RDEPEND=(
${DEPEND}
dev-vcs/git
)
# TestCanDeactivatePopupContextsWithoutViews fails
RESTRICT="test"
DOCS=( src/${EGO_PN}/{CONTRIBUTING,README}.md )
RDEPEND="dev-vcs/git"
DOCS=( {CODE-OF-CONDUCT,CONTRIBUTING,README}.md docs )
src_compile() {
GOPATH="${S}" go build -v -o bin/lazygit src/${EGO_PN}/main.go || die
go build -o bin/lazygit || die
}
src_test() {
./test.sh || die
}
src_install() {
dobin bin/lazygit
use doc && dodoc -r "src/${EGO_PN}/docs/."
einstalldocs
}

View File

@@ -1,37 +0,0 @@
# 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
}