commit: 261c5e2a09b882c9dd79d82095e9bf05c8e6973e Author: ingenarel <ingenarelitems <AT> gmail <DOT> com> AuthorDate: Wed Dec 3 07:51:31 2025 +0000 Commit: Saad Abdullah <ingenarelitems <AT> gmail <DOT> com> CommitDate: Wed Dec 3 07:51:31 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=261c5e2a
dev-vcs/lazygit: modify src_unpack() internally instead of redefining Signed-off-by: ingenarel <ingenarelitems <AT> gmail.com> dev-vcs/lazygit/lazygit-0.54.2.ebuild | 11 ++++++++--- dev-vcs/lazygit/lazygit-0.55.0.ebuild | 11 ++++++++--- dev-vcs/lazygit/lazygit-0.55.1.ebuild | 11 ++++++++--- dev-vcs/lazygit/lazygit-0.56.0.ebuild | 11 ++++++++--- 4 files changed, 32 insertions(+), 12 deletions(-) diff --git a/dev-vcs/lazygit/lazygit-0.54.2.ebuild b/dev-vcs/lazygit/lazygit-0.54.2.ebuild index 398916c00d..8dd8579927 100644 --- a/dev-vcs/lazygit/lazygit-0.54.2.ebuild +++ b/dev-vcs/lazygit/lazygit-0.54.2.ebuild @@ -10,9 +10,6 @@ HOMEPAGE="https://github.com/jesseduffield/lazygit" if [[ "${PV}" == 9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/jesseduffield/${PN}.git" - src_unpack() { - git-r3_src_unpack - } else KEYWORDS="~amd64" SRC_URI="https://github.com/jesseduffield/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" @@ -24,6 +21,14 @@ RDEPEND="dev-vcs/git" DOCS=( {CODE-OF-CONDUCT,CONTRIBUTING,README}.md docs ) +src_unpack() { + if [[ "$PV" == *9999* ]];then + git-r3_src_unpack + else + default + fi +} + src_compile() { ego build -o "bin/${PN}" \ -ldflags "-X main.version=${PV}" diff --git a/dev-vcs/lazygit/lazygit-0.55.0.ebuild b/dev-vcs/lazygit/lazygit-0.55.0.ebuild index 398916c00d..8dd8579927 100644 --- a/dev-vcs/lazygit/lazygit-0.55.0.ebuild +++ b/dev-vcs/lazygit/lazygit-0.55.0.ebuild @@ -10,9 +10,6 @@ HOMEPAGE="https://github.com/jesseduffield/lazygit" if [[ "${PV}" == 9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/jesseduffield/${PN}.git" - src_unpack() { - git-r3_src_unpack - } else KEYWORDS="~amd64" SRC_URI="https://github.com/jesseduffield/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" @@ -24,6 +21,14 @@ RDEPEND="dev-vcs/git" DOCS=( {CODE-OF-CONDUCT,CONTRIBUTING,README}.md docs ) +src_unpack() { + if [[ "$PV" == *9999* ]];then + git-r3_src_unpack + else + default + fi +} + src_compile() { ego build -o "bin/${PN}" \ -ldflags "-X main.version=${PV}" diff --git a/dev-vcs/lazygit/lazygit-0.55.1.ebuild b/dev-vcs/lazygit/lazygit-0.55.1.ebuild index 398916c00d..8dd8579927 100644 --- a/dev-vcs/lazygit/lazygit-0.55.1.ebuild +++ b/dev-vcs/lazygit/lazygit-0.55.1.ebuild @@ -10,9 +10,6 @@ HOMEPAGE="https://github.com/jesseduffield/lazygit" if [[ "${PV}" == 9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/jesseduffield/${PN}.git" - src_unpack() { - git-r3_src_unpack - } else KEYWORDS="~amd64" SRC_URI="https://github.com/jesseduffield/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" @@ -24,6 +21,14 @@ RDEPEND="dev-vcs/git" DOCS=( {CODE-OF-CONDUCT,CONTRIBUTING,README}.md docs ) +src_unpack() { + if [[ "$PV" == *9999* ]];then + git-r3_src_unpack + else + default + fi +} + src_compile() { ego build -o "bin/${PN}" \ -ldflags "-X main.version=${PV}" diff --git a/dev-vcs/lazygit/lazygit-0.56.0.ebuild b/dev-vcs/lazygit/lazygit-0.56.0.ebuild index 398916c00d..8dd8579927 100644 --- a/dev-vcs/lazygit/lazygit-0.56.0.ebuild +++ b/dev-vcs/lazygit/lazygit-0.56.0.ebuild @@ -10,9 +10,6 @@ HOMEPAGE="https://github.com/jesseduffield/lazygit" if [[ "${PV}" == 9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/jesseduffield/${PN}.git" - src_unpack() { - git-r3_src_unpack - } else KEYWORDS="~amd64" SRC_URI="https://github.com/jesseduffield/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" @@ -24,6 +21,14 @@ RDEPEND="dev-vcs/git" DOCS=( {CODE-OF-CONDUCT,CONTRIBUTING,README}.md docs ) +src_unpack() { + if [[ "$PV" == *9999* ]];then + git-r3_src_unpack + else + default + fi +} + src_compile() { ego build -o "bin/${PN}" \ -ldflags "-X main.version=${PV}"
