commit: a5bc9e843d49eb2267fc3c9cc0d0891f4c288975 Author: ingenarel <ingenarelitems <AT> gmail <DOT> com> AuthorDate: Wed Dec 10 00:51:38 2025 +0000 Commit: Saad Abdullah <ingenarelitems <AT> gmail <DOT> com> CommitDate: Wed Dec 10 01:44:45 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a5bc9e84
app-misc/lf: modify src_unpack() internally instead of redefining functions should be defined on the order that they are called for more info, check: https://github.com/gentoo/guru/commit/e19c6d574461655f11cb1c6e1b37ff22c9a6ff70#commitcomment-172006236 Signed-off-by: ingenarel <ingenarelitems <AT> gmail.com> app-misc/lf/lf-38-r1.ebuild | 13 +++++++++---- app-misc/lf/lf-9999.ebuild | 13 +++++++++---- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/app-misc/lf/lf-38-r1.ebuild b/app-misc/lf/lf-38-r1.ebuild index 73bf635dbf..f08efa85cf 100644 --- a/app-misc/lf/lf-38-r1.ebuild +++ b/app-misc/lf/lf-38-r1.ebuild @@ -11,10 +11,6 @@ HOMEPAGE="https://github.com/gokcehan/lf" if [[ "${PV}" == 9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/gokcehan/lf.git" - src_unpack() { - git-r3_src_unpack - go-module_live_vendor - } else KEYWORDS="~amd64 ~arm ~arm64 ~x86" SRC_URI="https://github.com/gokcehan/${PN}/archive/refs/tags/r${PV}.tar.gz -> ${P}.tar.gz" @@ -29,6 +25,15 @@ LICENSE+=" Apache-2.0 BSD MIT " SLOT="0" IUSE="+static" +src_unpack() { + if [[ "${PV}" == 9999 ]];then + git-r3_src_unpack + go-module_live_vendor + else + default + fi +} + src_compile() { local ldflags="-w -X main.gVersion=r${PV}" use static && { diff --git a/app-misc/lf/lf-9999.ebuild b/app-misc/lf/lf-9999.ebuild index 73bf635dbf..f08efa85cf 100644 --- a/app-misc/lf/lf-9999.ebuild +++ b/app-misc/lf/lf-9999.ebuild @@ -11,10 +11,6 @@ HOMEPAGE="https://github.com/gokcehan/lf" if [[ "${PV}" == 9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/gokcehan/lf.git" - src_unpack() { - git-r3_src_unpack - go-module_live_vendor - } else KEYWORDS="~amd64 ~arm ~arm64 ~x86" SRC_URI="https://github.com/gokcehan/${PN}/archive/refs/tags/r${PV}.tar.gz -> ${P}.tar.gz" @@ -29,6 +25,15 @@ LICENSE+=" Apache-2.0 BSD MIT " SLOT="0" IUSE="+static" +src_unpack() { + if [[ "${PV}" == 9999 ]];then + git-r3_src_unpack + go-module_live_vendor + else + default + fi +} + src_compile() { local ldflags="-w -X main.gVersion=r${PV}" use static && {
