mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
"The most opinionated go source code linter for code audit." Signed-off-by: William Hubbs <williamh@gentoo.org>
26 lines
569 B
Bash
26 lines
569 B
Bash
# Copyright 2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
inherit go-module
|
|
|
|
DESCRIPTION="The most opinionated Go source code linter for code audit"
|
|
HOMEPAGE="https://github.com/go-critic/go-critic"
|
|
SRC_URI="https://github.com/go-critic/go-critic/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
# tests fail
|
|
RESTRICT="test"
|
|
|
|
src_compile() {
|
|
emake GOCRITIC_VERSION=v${PV} build-release
|
|
}
|
|
|
|
src_install() {
|
|
dobin bin/*
|
|
}
|