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 && {