diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2024-04-19 19:08:24 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2024-04-19 19:08:24 +0300 |
commit | 2beefefa71a61b6c5a05addeea3dcbde0a7453e2 (patch) | |
tree | dc4468f8600b6920316db2567df6ff3b98be7550 /dev-go/delve | |
parent | dev-go/gopls: Stabilize 0.14.2 amd64, #930250 (diff) | |
download | gentoo-2beefefa71a61b6c5a05addeea3dcbde0a7453e2.tar.gz gentoo-2beefefa71a61b6c5a05addeea3dcbde0a7453e2.tar.bz2 gentoo-2beefefa71a61b6c5a05addeea3dcbde0a7453e2.zip |
dev-go/delve: add 1.22.1
Closes: https://bugs.gentoo.org/927854
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-go/delve')
-rw-r--r-- | dev-go/delve/Manifest | 1 | ||||
-rw-r--r-- | dev-go/delve/delve-1.22.1.ebuild | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/dev-go/delve/Manifest b/dev-go/delve/Manifest index 138f97fed527..be728967f676 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.21.2.tar.gz 9430716 BLAKE2B 4fe7e53791aa96284cea0ce614a066c15a9e15894c0fb84993f3405b4a5cd6abd1d88a912408912757de931fdc2ab4f73227d2bce1e58859b3336dd21698d75d SHA512 78953099b1ba79d04136b037d1fd45dc2f9013428a9eed77bb0bba7c43a00370d701d0576e9c1367e5e45f236ceb4bcdfc1c3366db95999dbe9e758e54225541 +DIST delve-1.22.1.tar.gz 9565782 BLAKE2B 51945229974adf0bd0addcfb07439964c02b658b2b330a03a01fe3abfc7b451c77d427e1234fc650ece9ec37b4f4d222091b41dfb24ee19b342bb6a7a4515f01 SHA512 73b6e7f5c88ffe3c3197a33106c2d10349bb622f10ec54e3dd0b045ed5717a341d48c5415f6b56b3a927afa6d994ff30dced802f82ed14d149f202f46c7a6b44 diff --git a/dev-go/delve/delve-1.22.1.ebuild b/dev-go/delve/delve-1.22.1.ebuild new file mode 100644 index 000000000000..a0947e824b74 --- /dev/null +++ b/dev-go/delve/delve-1.22.1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2024 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 + 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 +} |