dev-util/stripe-cli: modify src_unpack() internally instead of redefining

Signed-off-by: ingenarel <ingenarelitems@gmail.com>
This commit is contained in:
ingenarel
2025-12-03 14:03:41 +06:00
parent 261c5e2a09
commit f830d98e79
3 changed files with 27 additions and 12 deletions

View File

@@ -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"
}

View File

@@ -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"
}

View File

@@ -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"
}