diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-08-28 14:56:07 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-08-28 14:56:07 +0100 |
commit | 852755c64dfdf54c5457f631bfc34ced2e58fdb8 (patch) | |
tree | 433ad60942518e52456637e8a45088b60bb43b89 /dev-go/delve/delve-1.9.0.ebuild | |
parent | d248a331ab8127c4d49fc052be26bffe0927a33a (diff) |
gentoo auto-resync : 28:08:2022 - 14:56:07
Diffstat (limited to 'dev-go/delve/delve-1.9.0.ebuild')
-rw-r--r-- | dev-go/delve/delve-1.9.0.ebuild | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-go/delve/delve-1.9.0.ebuild b/dev-go/delve/delve-1.9.0.ebuild new file mode 100644 index 000000000000..25e79115027e --- /dev/null +++ b/dev-go/delve/delve-1.9.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +DESCRIPTION="A source-level debugger for the Go programming language" +HOMEPAGE="https://github.com/go-delve/delve" + +SRC_URI="https://github.com/go-delve/delve/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT BSD BSD-2 Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +src_compile() { + go build -mod vendor -ldflags="-X main.Build=${PV}" -o "${S}/dlv" ./cmd/dlv || die +} + +src_test() { + local packages + readarray -t packages < <(go list ./...) + (( ${#packages[@]} > 0 )) || die "go list failed" + # The first test fails, without network since it is calling go build ... + # disabled for now. Future ebuilds will patch that test. + go test -count 1 -p 1 -v "-ldflags=-X main.Build=${PV}" ${packages[@]:1} || die +} + +src_install() { + dobin dlv + dodoc README.md CHANGELOG.md +} |