blob: 466e59347a0b764c4b75951b6a7d20e0217c2e75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# Copyright 1999-2019 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EGO_SRC="github.com/stripe/stripe-mock"
EGO_PN=${EGO_SRC}/...
inherit golang-build golang-vcs-snapshot
DESCRIPTION="Mock HTTP server that responds like the real Stripe API"
HOMEPAGE="https://github.com/stripe/stripe-mock"
SRC_URI="https://github.com/stripe/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
LICENSE="MIT"
SLOT="0"
src_install() {
golang-build_src_install
dobin bin/stripe-mock
rm -rf "${D%/}$(get_golibdir_gopath)" || die
}
|