summaryrefslogtreecommitdiff
blob: 5fffe12876dde487602e2202afa9f02f1d369a34 (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
32
33
34
35
36
37
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
EGO_PN="github.com/golang/lint/..."

if [[ ${PV} = *9999* ]]; then
	inherit golang-vcs
else
	EGIT_COMMIT=206c0f0
	SRC_URI="https://github.com/golang/lint/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64"
	inherit golang-vcs-snapshot
fi
inherit golang-build

DESCRIPTION="a linter for Go"
HOMEPAGE="https://godoc.org/golang.org/x/tools"
LICENSE="BSD"
SLOT="0/${PVR}"
IUSE=""
DEPEND=">=dev-lang/go-1.6
	dev-go/go-tools"
RDEPEND="!<dev-lang/go-1.6
	dev-go/go-tools:="

DOCS=(
	src/github.com/golang/lint/CONTRIBUTING.md
	src/github.com/golang/lint/README.md
	src/github.com/golang/lint/misc
	)

	src_install() {
		golang-build_src_install
		einstalldocs
	dobin bin/*
}