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.7.2.ebuild46
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-go/golangci-lint/Manifest b/dev-go/golangci-lint/Manifest
index 9445d141608a..1473760f9e33 100644
--- a/dev-go/golangci-lint/Manifest
+++ b/dev-go/golangci-lint/Manifest
@@ -6,3 +6,5 @@ DIST golangci-lint-2.6.1-deps.tar.xz 33027976 BLAKE2B bd03a908e1c522e87661ed0e30
DIST golangci-lint-2.6.1.tar.gz 5329109 BLAKE2B 3f8b625556bba25717b9d736e284f186f34defa80ec7edc2b2fbe2c4488b84a8e68a890ea0e56be1af87c1ecabd693c85e31efec551a1eed19faa9631f9c8f54 SHA512 9d68a40ea41c287774ede970272d7cbd8cf101bad85240e6517e9fc1b581054a6a1c45e25cb0b727b6a077136452427ecfdd9b4ec77c2c3bf32e6e1246751068
DIST golangci-lint-2.6.2-vendor.tar.xz 5330920 BLAKE2B 0b8a5fec5d920741d55f2f7306222d3748b3a0eb993d35b41275aaa3454fae6d55421a2b7d1c411d47353eb897b21f678ae37e83fdfa82c5568c862b2c730a1e SHA512 2e8a0594bf67b8a3e47cb7c11ab10073e9bb5afe7fd9a0e852c51510c57a180daa7c1ebedd44e8be27cda8c2ce47339771f49ed6be4bf3092d074e7bb2f904ff
DIST golangci-lint-2.6.2.tar.gz 5329919 BLAKE2B 8865bf507bd30d83a39ff4e46899287ce80127712af89df78e2b62a1af637821b792b2c14dd933627fa3c1c97e556f9be23f425241e0ee0bbf854d904bd30491 SHA512 30514f96c8a0cdd2c72985382b993307250d647720dd5b672a6af15a5b50872ed8e161452aa76f7cf03a6e9ff2a6e3ccd74c68f6efcda86bd3019c024c03fd43
+DIST golangci-lint-2.7.2-vendor.tar.xz 5348368 BLAKE2B 3ebafb6a56b8e0862b03fd6bdf8015896014efec11c358e0f54c8275978a9362449888115ddc1e85de4ae1e3da7d6d1a029d6a915a6cfaa7baa88c459c783d91 SHA512 f539444d4a5a6faedf03a34c74f390ad558066b19427c2750547cae86554cbea4925f079b2c1fcff6a03d7758711debf0c2e5c68e4b900407f0cd394d5d3993e
+DIST golangci-lint-2.7.2.tar.gz 5356800 BLAKE2B 1a92938430361a5d532f79c013925a893b3866caf3a3bbbe6be4cd59e2ae86d48333bb517a933987d18dcb66d664a807fa886dbbc8d738bf6394fe05a476572d SHA512 9450c9032f124677a94d60ff9a243f5cbcab2f5d3aeba7746f5ef7cf01274f02f3b8c9d3d534c7e333d236ac514a282719ffe5ea259b6718988a0fc23d5ee7aa
diff --git a/dev-go/golangci-lint/golangci-lint-2.7.2.ebuild b/dev-go/golangci-lint/golangci-lint-2.7.2.ebuild
new file mode 100644
index 000000000000..85b3d960b3c1
--- /dev/null
+++ b/dev-go/golangci-lint/golangci-lint-2.7.2.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}-vendor.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
+}