summaryrefslogtreecommitdiff
path: root/dev-go
diff options
context:
space:
mode:
Diffstat (limited to 'dev-go')
-rw-r--r--dev-go/golangci-lint/Manifest2
-rw-r--r--dev-go/golangci-lint/golangci-lint-2.6.1.ebuild46
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-go/golangci-lint/Manifest b/dev-go/golangci-lint/Manifest
index 5a4348f9d2c3..0e6c60d423db 100644
--- a/dev-go/golangci-lint/Manifest
+++ b/dev-go/golangci-lint/Manifest
@@ -20,3 +20,5 @@ DIST golangci-lint-2.5.0-deps.tar.xz 32920816 BLAKE2B 05cef8ad47009e81d3fc1884d8
DIST golangci-lint-2.5.0.tar.gz 5258480 BLAKE2B 9ee2cd3b5b342fae85864107c60f60d0e1174c9ce857082c13a159d8d506429413b66ec32fa39b4517988539f0aa5e3230c9efa2631e7a2203203457d6b8c778 SHA512 3260a1606beb396af244d35e34c2fa606c94023f873f12d2d97b3c0a79082b92a059cf721114845747efbb4f309c145f0967846fc2bcdbe235079b6ec1d3f92a
DIST golangci-lint-2.6.0-deps.tar.xz 33151332 BLAKE2B 96efa1b89e1fcd6e57985ce34ba5d9adff667158b0c302dfc041bfbe3562d546c2d1720dedf2d0016c5d8c34dc8e179af49a8e002915ce87024ccdd292e477be SHA512 00dca3a235854ffb1509883d9ab861da3d103acefee92e4ea3210e71a19b2e566484e621851f2278af3ff4ab826fb742748901e3cff478a35562342be8d180e4
DIST golangci-lint-2.6.0.tar.gz 5326981 BLAKE2B 869dfb720724964cde014e506b6937d5b0f7929c837c50075ea03f6931898054f11e7dcbb597ea10cc2ec4710fb37400af0f9bbcfda3972ef319dbb34946e732 SHA512 eea86feb5d99f86e44ea1d70d67f8bc580d31dfb52d79c232ee4c44dcab481938cdff85e4849102b473aab931de1caf40193e0adbbc9548d185a98ac15c64746
+DIST golangci-lint-2.6.1-deps.tar.xz 33027976 BLAKE2B bd03a908e1c522e87661ed0e30c9e8e26aae8b2ac948154cff7a509b6afa10f6f14f6c09f3bcd414c3fdcae3b27f9c1abd761bec7c7afbb7c0319f14a0e8ac00 SHA512 339a287f33efd7ec77e51144d00c2223256b5e3424f521b5329db85aacf57e72c33efd2b70679e8ba44b94d3772c5ffa61f0f50c81369d09390483e5bd2c5fb9
+DIST golangci-lint-2.6.1.tar.gz 5329109 BLAKE2B 3f8b625556bba25717b9d736e284f186f34defa80ec7edc2b2fbe2c4488b84a8e68a890ea0e56be1af87c1ecabd693c85e31efec551a1eed19faa9631f9c8f54 SHA512 9d68a40ea41c287774ede970272d7cbd8cf101bad85240e6517e9fc1b581054a6a1c45e25cb0b727b6a077136452427ecfdd9b4ec77c2c3bf32e6e1246751068
diff --git a/dev-go/golangci-lint/golangci-lint-2.6.1.ebuild b/dev-go/golangci-lint/golangci-lint-2.6.1.ebuild
new file mode 100644
index 000000000000..d7fd07699bf3
--- /dev/null
+++ b/dev-go/golangci-lint/golangci-lint-2.6.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module shell-completion toolchain-funcs
+
+DESCRIPTION="Fast linters runner for Go"
+HOMEPAGE="https://golangci-lint.run/ https://github.com/golangci/golangci-lint"
+SRC_URI="https://github.com/golangci/golangci-lint/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI+=" https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-deps.tar.xz"
+
+LICENSE="GPL-3"
+# Dependent licenses
+LICENSE+=" Apache-2.0 BSD BSD-2 GPL-3 ISC MIT MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+src_compile() {
+ emake build
+
+ if ! tc-is-cross-compiler; then
+ einfo "generating shell completion files"
+ ./golangci-lint completion bash > ${PN}.bash || die
+ ./golangci-lint completion zsh > ${PN}.zsh || die
+ ./golangci-lint completion fish > ${PN}.fish || die
+ fi
+}
+
+src_test() {
+ emake test
+}
+
+src_install() {
+ dobin golangci-lint
+ local DOCS=( README.md CHANGELOG.md )
+ einstalldocs
+
+ if ! tc-is-cross-compiler; then
+ newbashcomp ${PN}.bash ${PN}
+ newzshcomp ${PN}.zsh _${PN}
+ dofishcomp ${PN}.fish
+ else
+ ewarn "Shell completion files not installed! Install them manually with '${PN} completion --help'"
+ fi
+}