summaryrefslogtreecommitdiff
path: root/dev-go
diff options
context:
space:
mode:
authorAlfred Persson Forsberg <cat@catcream.org>2023-12-10 20:15:04 +0100
committerSam James <sam@gentoo.org>2023-12-26 21:24:47 +0000
commitb170713645d6e197f6c6843a7b63c1f1d64a4df8 (patch)
treea37ce95eec2a0b8f3a1b1a4a36d31dbb51955498 /dev-go
parentsys-boot/grub: Use libsdl2 instead of libsdl (diff)
downloadgentoo-b170713645d6e197f6c6843a7b63c1f1d64a4df8.tar.gz
gentoo-b170713645d6e197f6c6843a7b63c1f1d64a4df8.tar.bz2
gentoo-b170713645d6e197f6c6843a7b63c1f1d64a4df8.zip
dev-go/delve: add 1.21.2
Closes: https://bugs.gentoo.org/915978 Signed-off-by: Alfred Persson Forsberg <cat@catcream.org> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-go')
-rw-r--r--dev-go/delve/Manifest1
-rw-r--r--dev-go/delve/delve-1.21.2.ebuild33
2 files changed, 34 insertions, 0 deletions
diff --git a/dev-go/delve/Manifest b/dev-go/delve/Manifest
index 6a434f2036fe..5e9ef1616554 100644
--- a/dev-go/delve/Manifest
+++ b/dev-go/delve/Manifest
@@ -1,3 +1,4 @@
DIST delve-1.20.2.tar.gz 9198885 BLAKE2B 16cb8d5ec8c83082c6d61e0c5235597e46a3ff2e1c4f5628eb92040e663e101ed33ac903ec3c5be4eb6b338df8bc8f6017547bca73e9ade0a9e89d37b4e39318 SHA512 c48027d200257d0a979fbf2ea3a65f6dc645d1c231264023b10c216de1e3d80db86ac775cdb02f4dcd261756c8e26bbdce598cce709eb2aa4c9853f2e0cf6cf8
+DIST delve-1.21.2.tar.gz 9430716 BLAKE2B 4fe7e53791aa96284cea0ce614a066c15a9e15894c0fb84993f3405b4a5cd6abd1d88a912408912757de931fdc2ab4f73227d2bce1e58859b3336dd21698d75d SHA512 78953099b1ba79d04136b037d1fd45dc2f9013428a9eed77bb0bba7c43a00370d701d0576e9c1367e5e45f236ceb4bcdfc1c3366db95999dbe9e758e54225541
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.21.2.ebuild b/dev-go/delve/delve-1.21.2.ebuild
new file mode 100644
index 000000000000..af82268a6195
--- /dev/null
+++ b/dev-go/delve/delve-1.21.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
+}