summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Douglas <douglarek@gmail.com>2024-12-05 22:37:03 +0800
committerJoonas Niilola <juippis@gentoo.org>2025-01-03 18:36:26 +0200
commit2efe75d553933c263f0ed3c7fc9b41993d678623 (patch)
tree3d680a839d9e1d0aab4614193645d16edf04e743 /dev-go/delve
parentapp-admin/mongosh-bin: drop 1.3.1 (diff)
downloadgentoo-2efe75d553933c263f0ed3c7fc9b41993d678623.tar.gz
gentoo-2efe75d553933c263f0ed3c7fc9b41993d678623.tar.bz2
gentoo-2efe75d553933c263f0ed3c7fc9b41993d678623.zip
dev-go/delve: add 1.23.1
Closes: https://bugs.gentoo.org/945914 Signed-off-by: Leo Douglas <douglarek@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/39602 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-go/delve')
-rw-r--r--dev-go/delve/Manifest1
-rw-r--r--dev-go/delve/delve-1.23.1.ebuild36
2 files changed, 37 insertions, 0 deletions
diff --git a/dev-go/delve/Manifest b/dev-go/delve/Manifest
index be728967f676..2f1a29bd8706 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.22.1.tar.gz 9565782 BLAKE2B 51945229974adf0bd0addcfb07439964c02b658b2b330a03a01fe3abfc7b451c77d427e1234fc650ece9ec37b4f4d222091b41dfb24ee19b342bb6a7a4515f01 SHA512 73b6e7f5c88ffe3c3197a33106c2d10349bb622f10ec54e3dd0b045ed5717a341d48c5415f6b56b3a927afa6d994ff30dced802f82ed14d149f202f46c7a6b44
+DIST delve-1.23.1.tar.gz 9532112 BLAKE2B 5d617fe6664b25629004f7088b53ba103832ddc07345e75ca95c9a4b41075c05aa885c3a3edb1794585ff7e3f5fd3cd517aaefb86c6a656f17698cf1fec8ec5f SHA512 1f88b5aa7d0442b5c4f79be5cf465d76bc3849e849f36677f36735a57b117db0a3cdecc2bbc215573d9fcdae724e6f50b792550b6188e844e392d9a659281dfe
diff --git a/dev-go/delve/delve-1.23.1.ebuild b/dev-go/delve/delve-1.23.1.ebuild
new file mode 100644
index 000000000000..57b26f6c4d95
--- /dev/null
+++ b/dev-go/delve/delve-1.23.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2025 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_prepare() {
+ default
+
+ # disable failing tests
+ sed -e 's/TestDebugger_LaunchWithTTY/_&/' -i service/debugger/debugger_unix_test.go || die
+ sed -e 's/TestDump/_&/' -i pkg/proc/proc_test.go || die
+ rm cmd/dlv/dlv_test.go || die
+}
+
+src_compile() {
+ ego build -mod=vendor -ldflags="-X main.Build=${PV}" -o "${S}/dlv" ./cmd/dlv
+}
+
+src_test() {
+ ego test -count 1 -p 1 -ldflags="-X main.Build=${PV}" ./...
+}
+
+src_install() {
+ dobin dlv
+ dodoc README.md CHANGELOG.md
+}