commit:     f5acf6a7311b7a1f6d35e3e738e33ca2024eb811
Author:     Quincy Fleming <quincyf467 <AT> protonmail <DOT> com>
AuthorDate: Sat Apr  8 17:12:49 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Apr 10 02:52:39 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5acf6a7

dev-go/delve: add 1.20.2

Signed-off-by: Quincy Fleming <quincyf467 <AT> protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/30522
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-go/delve/Manifest            |  1 +
 dev-go/delve/delve-1.20.2.ebuild | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)

diff --git a/dev-go/delve/Manifest b/dev-go/delve/Manifest
index 34e02eafa58f..6a434f2036fe 100644
--- a/dev-go/delve/Manifest
+++ b/dev-go/delve/Manifest
@@ -1,2 +1,3 @@
+DIST delve-1.20.2.tar.gz 9198885 BLAKE2B 
16cb8d5ec8c83082c6d61e0c5235597e46a3ff2e1c4f5628eb92040e663e101ed33ac903ec3c5be4eb6b338df8bc8f6017547bca73e9ade0a9e89d37b4e39318
 SHA512 
c48027d200257d0a979fbf2ea3a65f6dc645d1c231264023b10c216de1e3d80db86ac775cdb02f4dcd261756c8e26bbdce598cce709eb2aa4c9853f2e0cf6cf8
 DIST delve-1.8.0.tar.gz 9007735 BLAKE2B 
81289ed39ecbfb118d171b56e88b7a5689671054ac906ee315d46d4e568853e1d6753f36389ea26d7a6f57e6f356ea7e4075b0a1571bebb36a51883fd2343279
 SHA512 
bda883bf27c5bf0c1d1bbbd58fe81757abd1beaead69906c48c2b67d2ab7ab8e202238e09f2d59a0afb2455753ad40536156d59e28657563780b7b15f121dc5a
 DIST delve-1.9.0.tar.gz 9052933 BLAKE2B 
0af3c8e340aff800b5d26d5021220f92f1eb5fb25c83a23b71989a99e2ffdfb63e1f38e3bf6e3bd84788e0f1a04f8b5e2a28cc6576d81dfffd5c4cb409734a49
 SHA512 
7a616281eeb92d07657ed8522672648a993bb54fbe6c8bbea5979cac8f0cff37dfe183950b481a444a20ffa7c95a6a83133356a12ce2894ba0a595d5cacf4100

diff --git a/dev-go/delve/delve-1.20.2.ebuild b/dev-go/delve/delve-1.20.2.ebuild
new file mode 100644
index 000000000000..af82268a6195
--- /dev/null
+++ b/dev-go/delve/delve-1.20.2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2023 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
+}

Reply via email to