summaryrefslogtreecommitdiff
path: root/dev-util/scc/scc-3.4.0.ebuild
blob: 32bcfe2853e667a099b0f40add81f13967a9b382 (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
27
28
29
30
31
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module

DESCRIPTION="scc is a very fast accurate code counter"
HOMEPAGE="https://github.com/boyter/scc/tree/master"
SRC_URI="https://github.com/boyter/scc/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT Unlicense"
SLOT="0"
KEYWORDS="~amd64"
IUSE="examples"

RDEPEND="${DEPEND}"
DOCS="CONTRIBUTING.md LANGUAGES.md README.md"

src_compile() {
	ego build
}

src_install() {
	dobin scc
	einstalldocs
	if use examples; then
		insinto "/usr/share/doc/${PF}"
		doins -r examples
	fi
}