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:
e19c6d5744 (commitcomment-172006236)

Signed-off-by: ingenarel <ingenarelitems@gmail.com>
This commit is contained in:
ingenarel
2025-12-10 06:51:38 +06:00
parent 880455c7d9
commit a5bc9e843d
2 changed files with 18 additions and 8 deletions

View File

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

View File

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