summaryrefslogtreecommitdiff
path: root/dev-util/gocyclo/gocyclo-0.4.0-r1.ebuild
blob: ebad5b4286a0e920d2150c999eb1c0af3972fc08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright 2022 BaldEagleOS Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8

inherit go-module

DESCRIPTION="Calculate cyclomatic complexities of functions in Go source code"
HOMEPAGE="https://github.com/fzipp/gocyclo"

SRC_URI="
	https://github.com/fzipp/gocyclo/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 arm x86"

src_compile() {
	default
	go build -o ${PN} cmd/gocyclo/main.go
}

src_install() {
	dobin gocyclo
	default
}