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 63116158064 for ; Thu, 2 May 2024 04:20:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8DF1BE2ACE; Thu, 2 May 2024 04:20:05 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5F233E2ACE for ; Thu, 2 May 2024 04:20:05 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3D300335DC0 for ; Thu, 2 May 2024 04:20:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4643C170E for ; Thu, 2 May 2024 04:20:01 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1714623595.334b68c9fbed092c3622e4d65a8ff2526ec5d3a4.zmedico@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-go/go-tools/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-go/go-tools/Manifest dev-go/go-tools/go-tools-0.20.0.ebuild X-VCS-Directories: dev-go/go-tools/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 334b68c9fbed092c3622e4d65a8ff2526ec5d3a4 X-VCS-Branch: master Date: Thu, 2 May 2024 04:20:01 +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: b8582462-3a3a-4c36-b244-9fdcb0feecc0 X-Archives-Hash: 9fb97504339e14aee44bc68d7ec7a553 commit: 334b68c9fbed092c3622e4d65a8ff2526ec5d3a4 Author: Zac Medico gentoo org> AuthorDate: Thu May 2 04:11:02 2024 +0000 Commit: Zac Medico gentoo org> CommitDate: Thu May 2 04:19:55 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=334b68c9 dev-go/go-tools: add 0.20.0 Also set RESTRICT="test" because there are many failures. Bug: https://bugs.gentoo.org/904314 Signed-off-by: Zac Medico gentoo.org> dev-go/go-tools/Manifest | 2 ++ dev-go/go-tools/go-tools-0.20.0.ebuild | 52 ++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/dev-go/go-tools/Manifest b/dev-go/go-tools/Manifest index af0b9654c8c0..69c562a90597 100644 --- a/dev-go/go-tools/Manifest +++ b/dev-go/go-tools/Manifest @@ -1,2 +1,4 @@ DIST go-tools-0.1.10-deps.tar.xz 16247548 BLAKE2B 7dc27e377eec3c7fa49d37614d2b7b826735228ae3b22b9481bcba4e344afd51145e98a885c33b5b732d9e6382a5f50a94efcd6f3a820088dd528e561bd5fae0 SHA512 a7bcb32b0393640dd603e07958dc70abba750d219b46f2de649d7e3644432364798c5227df5d764ab6e62d01b60f10d74668914ea09f469ce19134bc934d17ba DIST go-tools-0.1.10.tar.gz 3014465 BLAKE2B f3b6129ad00385539eab3426bc542a120bd41d3984174d5d8b91bee6435d7a179c0058f2a50de3235a07e5b67f6d9657288bd578591d61187447441bb6408e76 SHA512 9c817c98739a1788b7fb459728528b5c647226e64df495661c1b3027bfa571e884d6c28d8796558b65e2ba54774976897bddcd052568f33d4e30ce8ee5d883e1 +DIST go-tools-0.20.0-deps.tar.xz 383336 BLAKE2B 0bddd81087bae28c2d874a2ea647a5293b32895fded73351813c1542066d7ee1a0d3d8a0aaa5c13cea3e117c692b46690282f992293d83c8fbd2901adc71911f SHA512 eeaa8a85ec81eed757156f99d6bc99f69c89debf52eb862e870c7effb7a0b800736e04f507efa19be122a5246aed2519d4c33bd850bc790947f065ab8a87a323 +DIST go-tools-0.20.0.tar.gz 3779878 BLAKE2B 42175d921dfb5acb25c9eee224138675619860aefaca09db8e354481c146faa52b2fcc64d99953d8508a79ce8375ebcc42a1e7d20f4721e55b8c843989565fbc SHA512 c67706593d0a48f941955e40cadc1e39961b07ba51c9342b302ba99f93a1e55b9feec21d6171ee370f96293253be27b480274d48a16eff1055373f81b73f2dd9 diff --git a/dev-go/go-tools/go-tools-0.20.0.ebuild b/dev-go/go-tools/go-tools-0.20.0.ebuild new file mode 100644 index 000000000000..fe369f14fa0a --- /dev/null +++ b/dev-go/go-tools/go-tools-0.20.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module + +DESCRIPTION="Tools that support the Go programming language (godoc, etc.)" +HOMEPAGE="https://godoc.org/golang.org/x/tools" +SRC_URI="https://github.com/golang/tools/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz" +S=${WORKDIR}/${P#go-} + +LICENSE="BSD MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" + +# Many test failures. +RESTRICT="test" + +GO_TOOLS_BINS=( + authtest benchcmp bisect bundle callgraph compilebench cookieauth deadcode + defers digraph eg fieldalignment file2fuzz findcall fiximports fuzz-driver + fuzz-runner gitauth go-contrib-init godex godoc goimports gomvpkg gonew + gopackages gorename gostacks gotype goyacc html2article httpmux ifaceassert + lostcancel netrcauth nilness nodecount play present present2md shadow + splitdwarf ssadump stress stringer stringintconv toolstash unmarshal + unusedresult +) + +src_compile() { + local bin packages + readarray -t packages < <(ego list ./...) + GOBIN="${S}/bin" nonfatal ego install -work "${packages[@]}" || true + for bin in "${GO_TOOLS_BINS[@]}"; do + [[ -x ${S}/bin/${bin} ]] || \ + die "File not found, check build log: ${S}/bin/${bin}" + done +} + +src_test() { + ego test -work ./... +} + +src_install() { + # bug 558818: install binaries in $GOROOT/bin to avoid file collisions + local goroot=$(go env GOROOT) + goroot=${goroot#${EPREFIX}} + exeinto "${goroot}/bin" + doexe bin/* + dodir /usr/bin + ln "${ED}/${goroot}/bin/godoc" "${ED}/usr/bin/godoc" || die +}