From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B0414158015 for ; Tue, 26 Dec 2023 21:26:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 03C4C2BC014; Tue, 26 Dec 2023 21:26:23 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E38D02BC014 for ; Tue, 26 Dec 2023 21:26:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 39C0634072E for ; Tue, 26 Dec 2023 21:26:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CFEA61357 for ; Tue, 26 Dec 2023 21:26:20 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1703625887.b170713645d6e197f6c6843a7b63c1f1d64a4df8.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-go/delve/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-go/delve/Manifest dev-go/delve/delve-1.21.2.ebuild X-VCS-Directories: dev-go/delve/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: b170713645d6e197f6c6843a7b63c1f1d64a4df8 X-VCS-Branch: master Date: Tue, 26 Dec 2023 21:26:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2eda5a87-0abd-43de-98d3-69a603914b80 X-Archives-Hash: a6e175c707465a67611a3163911c1b8d commit: b170713645d6e197f6c6843a7b63c1f1d64a4df8 Author: Alfred Persson Forsberg catcream org> AuthorDate: Sun Dec 10 19:15:04 2023 +0000 Commit: Sam James gentoo org> CommitDate: Tue Dec 26 21:24:47 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1707136 dev-go/delve: add 1.21.2 Closes: https://bugs.gentoo.org/915978 Signed-off-by: Alfred Persson Forsberg catcream.org> Signed-off-by: Sam James gentoo.org> dev-go/delve/Manifest | 1 + dev-go/delve/delve-1.21.2.ebuild | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) 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 +}