mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
dev-util/stripe-cli: modify src_unpack() internally instead of redefining
Signed-off-by: ingenarel <ingenarelitems@gmail.com>
This commit is contained in:
@@ -12,10 +12,6 @@ HOMEPAGE="https://docs.stripe.com/stripe-cli"
|
||||
if [[ "${PV}" == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/stripe/stripe-cli"
|
||||
src_unpack() {
|
||||
git-r3_src_unpack
|
||||
go-module_live_vendor
|
||||
}
|
||||
else
|
||||
KEYWORDS="~amd64"
|
||||
SRC_URI="https://github.com/stripe/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
@@ -35,6 +31,15 @@ IUSE="bash-completion zsh-completion"
|
||||
|
||||
BDEPEND=">=dev-lang/go-1.24.1"
|
||||
|
||||
src_unpack() {
|
||||
if [[ "$PV" == *9999* ]];then
|
||||
git-r3_src_unpack
|
||||
go-module_live_vendor
|
||||
else
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
CGO_ENABLED=0 ego build -o "bin/${MY_PN}" "cmd/stripe/main.go"
|
||||
}
|
||||
|
||||
@@ -12,10 +12,6 @@ HOMEPAGE="https://docs.stripe.com/stripe-cli"
|
||||
if [[ "${PV}" == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/stripe/stripe-cli"
|
||||
src_unpack() {
|
||||
git-r3_src_unpack
|
||||
go-module_live_vendor
|
||||
}
|
||||
else
|
||||
KEYWORDS="~amd64"
|
||||
SRC_URI="https://github.com/stripe/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
@@ -34,6 +30,15 @@ SLOT="0"
|
||||
|
||||
BDEPEND=">=dev-lang/go-1.24.1"
|
||||
|
||||
src_unpack() {
|
||||
if [[ "$PV" == *9999* ]];then
|
||||
git-r3_src_unpack
|
||||
go-module_live_vendor
|
||||
else
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
CGO_ENABLED=0 ego build -o "bin/${MY_PN}" "cmd/stripe/main.go"
|
||||
}
|
||||
|
||||
@@ -12,10 +12,6 @@ HOMEPAGE="https://docs.stripe.com/stripe-cli"
|
||||
if [[ "${PV}" == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/stripe/stripe-cli"
|
||||
src_unpack() {
|
||||
git-r3_src_unpack
|
||||
go-module_live_vendor
|
||||
}
|
||||
else
|
||||
KEYWORDS="~amd64"
|
||||
SRC_URI="https://github.com/stripe/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
@@ -34,6 +30,15 @@ SLOT="0"
|
||||
|
||||
BDEPEND=">=dev-lang/go-1.24.1"
|
||||
|
||||
src_unpack() {
|
||||
if [[ "$PV" == *9999* ]];then
|
||||
git-r3_src_unpack
|
||||
go-module_live_vendor
|
||||
else
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
CGO_ENABLED=0 ego build -o "bin/${MY_PN}" "cmd/stripe/main.go"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user