mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 05:53:12 -04:00
app-misc/ghq: 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:
@@ -10,10 +10,7 @@ HOMEPAGE="https://github.com/x-motemen/ghq"
|
|||||||
if [[ "${PV}" == 9999 ]]; then
|
if [[ "${PV}" == 9999 ]]; then
|
||||||
inherit git-r3
|
inherit git-r3
|
||||||
EGIT_REPO_URI="https://github.com/x-motemen/ghq.git"
|
EGIT_REPO_URI="https://github.com/x-motemen/ghq.git"
|
||||||
src_unpack() {
|
RESTRICT="mirror"
|
||||||
git-r3_src_unpack
|
|
||||||
go-module_live_vendor
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
SRC_URI="https://github.com/x-motemen/ghq/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
SRC_URI="https://github.com/x-motemen/ghq/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
SRC_URI+=" https://github.com/ingenarel/guru-depfiles/releases/download/${P}-deps.tar.xz/${P}-deps.tar.xz"
|
SRC_URI+=" https://github.com/ingenarel/guru-depfiles/releases/download/${P}-deps.tar.xz/${P}-deps.tar.xz"
|
||||||
@@ -24,7 +21,15 @@ fi
|
|||||||
|
|
||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
RESTRICT="mirror"
|
|
||||||
|
src_unpack() {
|
||||||
|
if [[ "${PV}" == 9999 ]];then
|
||||||
|
git-r3_src_unpack
|
||||||
|
go-module_live_vendor
|
||||||
|
else
|
||||||
|
default
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
src_prepare(){
|
src_prepare(){
|
||||||
default
|
default
|
||||||
@@ -32,10 +37,10 @@ src_prepare(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
if [[ "$PV" == 9999 ]]; then
|
if [[ "${PV}" == 9999 ]]; then
|
||||||
emake build
|
emake build
|
||||||
else
|
else
|
||||||
emake build VERSION="${PV}" CURRENT_REVISION="$MY_GIT_REV"
|
emake build VERSION="${PV}" CURRENT_REVISION="${MY_GIT_REV}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,10 +10,7 @@ HOMEPAGE="https://github.com/x-motemen/ghq"
|
|||||||
if [[ "${PV}" == 9999 ]]; then
|
if [[ "${PV}" == 9999 ]]; then
|
||||||
inherit git-r3
|
inherit git-r3
|
||||||
EGIT_REPO_URI="https://github.com/x-motemen/ghq.git"
|
EGIT_REPO_URI="https://github.com/x-motemen/ghq.git"
|
||||||
src_unpack() {
|
RESTRICT="mirror"
|
||||||
git-r3_src_unpack
|
|
||||||
go-module_live_vendor
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
SRC_URI="https://github.com/x-motemen/ghq/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
SRC_URI="https://github.com/x-motemen/ghq/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
SRC_URI+=" https://github.com/ingenarel/guru-depfiles/releases/download/${P}-deps.tar.xz/${P}-deps.tar.xz"
|
SRC_URI+=" https://github.com/ingenarel/guru-depfiles/releases/download/${P}-deps.tar.xz/${P}-deps.tar.xz"
|
||||||
@@ -24,7 +21,15 @@ fi
|
|||||||
|
|
||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
RESTRICT="mirror"
|
|
||||||
|
src_unpack() {
|
||||||
|
if [[ "${PV}" == 9999 ]];then
|
||||||
|
git-r3_src_unpack
|
||||||
|
go-module_live_vendor
|
||||||
|
else
|
||||||
|
default
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
src_prepare(){
|
src_prepare(){
|
||||||
default
|
default
|
||||||
@@ -32,10 +37,10 @@ src_prepare(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
if [[ "$PV" == 9999 ]]; then
|
if [[ "${PV}" == 9999 ]]; then
|
||||||
emake build
|
emake build
|
||||||
else
|
else
|
||||||
emake build VERSION="${PV}" CURRENT_REVISION="$MY_GIT_REV"
|
emake build VERSION="${PV}" CURRENT_REVISION="${MY_GIT_REV}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user