dev-go/delve: add 1.27.0

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2026-06-26 09:10:09 +03:00
parent 352b7a0671
commit 362e88bbaf
2 changed files with 63 additions and 0 deletions

View File

@@ -5,3 +5,4 @@ DIST delve-1.25.2.tar.gz 9796321 BLAKE2B 4b2e8a745a863d6ce2578913cbe1797d44a266b
DIST delve-1.26.0.tar.gz 9584376 BLAKE2B 5309cb7ea07bd80ecf5de39c9db45311537b34a95745f8de8aa7a2a68cab9ece0aecb748ff727825657c7f8ea9851911c482b4c41ce870c5de04a951e60edd55 SHA512 1b9d5c7b91bbf1df47c1fdb3553893497defe7a71ae9c7cef160cf15afac391fe77f66b748e028b29aa3456c21cfc079c2751afb788cb065ee8580501d21ad0e
DIST delve-1.26.1.tar.gz 9604052 BLAKE2B f6773a9e7368b5af1fac97686cf637b62d8b77bd785e4713835304b0d13d4ced0987539a2fd3f9261252afe7783ec82483e1432eb2dc992702465d4ae7898fe4 SHA512 c69a3357173a88a5627714ad41355136417d0f14c88864bc5f52bf1abf1961ec3c2f830b9c26106e83f8a4145ac0dd06cd24dbc2589bd54baadb2f40b08d08e5
DIST delve-1.26.3.tar.gz 9407805 BLAKE2B 90b392e5c0c532343097fae524ac1b534468fc199947dc112aafdb1f13c0610328be6a2f97ead09112c750fd7880fa02ab6eadfbfb6b8cb3b22287a6150200aa SHA512 9d765012a86fbea40b92918f6151481aba2b52463da759a2183c324b140a7056ce56177c46a23e17b7af4bf718d1bfbce53bf8ed71123c33951129fde5a87677
DIST delve-1.27.0.tar.gz 9392113 BLAKE2B 73839cba4b368acb218247ced17bda01722ab21ced49a1a0edc4763eaa77f08a5a4122065fbfe9366f9e7def088cf28c232f835c8609670af02a941f1a940c52 SHA512 5b561200c06e972c9226c1c9ff8e8e68730f3ec53e4e7a3d1c4160f6d95cd270fe1e024e0aaf11927b5fe9eeccb64f4341c1e437679e687370fd3ff5586d30ef

View File

@@ -0,0 +1,62 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module shell-completion sysroot
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"
IUSE="test"
RESTRICT="!test? ( test )"
BDEPEND="
>=dev-lang/go-1.26.1
test? ( sys-process/lsof )
"
src_prepare() {
default
# disable failing tests, require network
rm cmd/dlv/dlv_test.go || die
sed -e 's/TestGuessSubstitutePath/_&/' -i service/test/integration2_test.go || die
}
src_compile() {
ego build -mod=vendor -ldflags="-X main.Build=${PV}" -o "${S}/dlv" ./cmd/dlv
einfo "generating shell completion files"
sysroot_try_run_prefixed "${S}/dlv" completion bash > dlv.bash || die
sysroot_try_run_prefixed "${S}/dlv" completion zsh > dlv.zsh || die
sysroot_try_run_prefixed "${S}/dlv" completion fish > dlv.fish || die
}
src_test() {
ego test -count 1 -p 1 -ldflags="-X main.Build=${PV}" ./...
}
src_install() {
dobin dlv
dodoc README.md CHANGELOG.md
[[ -s dlv.bash ]] && newbashcomp dlv.bash dlv
[[ -s dlv.zsh ]] && newzshcomp dlv.zsh _dlv
[[ -s dlv.fish ]] && dofishcomp dlv.fish
}
pkg_postinst() {
elog "Telemetry notice:"
elog "Starting with version 1.24.0, Delve will begin collecting opt-in telemetry"
elog "data using the same mechanism used by the Go toolchain."
elog
elog "For more information, please see:"
elog " * https://github.com/golang/go/issues/68384"
elog " * https://go.dev/doc/telemetry#background"
elog " * https://github.com/go-delve/delve/issues/3815"
}