mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -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: https://github.com/gentoo/guru/commit/e19c6d574461655f11cb1c6e1b37ff22c9a6ff70#commitcomment-172006236 Signed-off-by: ingenarel <ingenarelitems@gmail.com>
This commit is contained in:
2 files changed
+18
-8
No files matched your search
@@ -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