mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
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:
@@ -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 && {
|
||||
|
||||
@@ -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 && {
|
||||
|
||||
Reference in New Issue
Block a user