blob: 8b406c498579b2948a416d9a468c632b1ab19f07 (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit go-module
EGO_PN="github.com/go-delve/delve"
SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
DESCRIPTION="A source-level debugger for the Go programming language"
HOMEPAGE="https://github.com/go-delve/delve"
LICENSE="MIT BSD BSD-2 Apache-2.0"
SLOT="0"
IUSE="test"
# Needs network access to download more unspecified modules at least.
RESTRICT="test"
src_compile() {
go build -mod vendor -ldflags="-X main.Build=75485427957fba167a6eaca76b1ee9549d62916f" -o "${S}/dlv" ./cmd/dlv || die
}
src_test() {
go test
}
src_install() {
dodoc README.md CHANGELOG.md
dobin dlv
}
|