mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
dev-util/stripe-cli: add 1.34.0
Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus@disroot.org>
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
DIST stripe-cli-1.33.0-deps.tar.xz 61908536 BLAKE2B f58453400dee689744b100500eb2de51a2f3096b38e81dd8bd1773632464774b6025581ebc72d73a533f6246f436f582c25d5d0cf668287be24167ba0cf8563c SHA512 508b18357606cff7ae4e8b38c43e8127fde3bd2db5e500da4f04af397d1b9259e93e3aff121f9198e8a9d5fd84806b2edef06d6d5bd37f9a60a8115c4e3249ec
|
||||
DIST stripe-cli-1.33.0.tar.gz 2002613 BLAKE2B e7428cb042342a10ec363e6211c7aaf1cb22b8d77a52151bc2f8bb209d64a1e92ce55d1232a5a6fe20c3312da978cc477e9c2e5930d6f5f813644d24a44e56fb SHA512 65a1e7d15f4939bdb83b41b2184cd64b3ee33b1960656f2ad47e91c19a606aeabaf69bc65b6677fd3ae5b9be1763e5b876fc6ecb50a50f68492e42130f2dec5f
|
||||
DIST stripe-cli-1.34.0-deps.tar.xz 62052828 BLAKE2B fbc428897c67c168e42e6be466cdc08673d184c7f2ee8e9f2f541c1e1c27427d741d24187485a5a4c06a01ad4b4b8899dafb48cc9ec67c60d891e309dfaa5fe2 SHA512 cf5a1ee0233089e62720ac5d7e7a8aace7c374ffda85ab905af7f8d91128fd3d27da86b4fa47efd503e843aaabdf34e99ba6807339368361aa5a3ae1daddf85e
|
||||
DIST stripe-cli-1.34.0.tar.gz 3761638 BLAKE2B 36ff8daadb14c25f48229a183b88b2a8e94b0441c5ead23e8212b67a3d9ea613816fa9c29ef3b8c8293e6290e45c2cf4b408ed7963fd7cd3ff1fc2729c01f540 SHA512 91d87514a831de7e890f684908ba4c0ad793a142e735255494c11776e35ffaaa9c30fdeae7e0e164f1b498ae41e479826da02e3fd4db3610e6c6ca7910652b8a
|
||||
|
||||
59
dev-util/stripe-cli/stripe-cli-1.34.0.ebuild
Normal file
59
dev-util/stripe-cli/stripe-cli-1.34.0.ebuild
Normal file
@@ -0,0 +1,59 @@
|
||||
# Copyright 2024-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module shell-completion
|
||||
|
||||
MY_PN="${PN%-cli}"
|
||||
|
||||
DESCRIPTION="A command-line tool for Stripe"
|
||||
HOMEPAGE="https://docs.stripe.com/stripe-cli"
|
||||
if [[ "${PV}" == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/stripe/stripe-cli"
|
||||
else
|
||||
KEYWORDS="~amd64"
|
||||
SRC_URI="https://github.com/stripe/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
# possible depfiles link if used
|
||||
SRC_URI+="
|
||||
https://github.com/ingenarel/guru-depfiles/releases/download/${P}-deps.tar.xz/${P}-go-mod-deps.tar.xz ->
|
||||
${P}-deps.tar.xz
|
||||
"
|
||||
# you can either use -go-mod-deps or -vendor-deps for the file
|
||||
# vendor-deps are small, but may not work for some packages/version
|
||||
# go-mod-deps are LARGE, but will most likely always work
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
#gentoo-go-license stripe-cli-1.34.0.ebuild
|
||||
LICENSE+=" Apache-2.0 BSD-2 BSD ISC MIT MPL-2.0 Unlicense "
|
||||
|
||||
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"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "bin/${MY_PN}"
|
||||
|
||||
# disables telemetry
|
||||
doenvd "${FILESDIR}/99${PN}"
|
||||
|
||||
"bin/${MY_PN}" completion --shell bash
|
||||
newbashcomp "${MY_PN}-completion.bash" "${MY_PN}"
|
||||
"bin/${MY_PN}" completion --shell zsh
|
||||
newzshcomp "${MY_PN}-completion.zsh" "_${MY_PN}"
|
||||
}
|
||||
Reference in New Issue
Block a user