blob: 32e3a901c4364ba3a37d7fa32b9973758dafcaf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EGO_PN=github.com/stripe/stripe-cli
inherit git-r3 go-module bash-completion-r1
# remove -cli suffix
MY_PN=${PN%-cli}
DESCRIPTION="A command-line tool for Stripe"
HOMEPAGE="https://stripe.com/docs/stripe-cli"
EGIT_REPO_URI="https://${EGO_PN}.git"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="bash-completion"
BDEPEND=">=dev-lang/go-1.18"
DEPEND="${BDEPEND}"
src_unpack() {
git-r3_src_unpack
go-module_live_vendor
}
src_compile() {
ego build -o ${MY_PN} cmd/stripe/main.go
}
src_install() {
dobin ${MY_PN}
if use bash-completion ; then
dobashcomp *.bash
fi
}
|