summaryrefslogtreecommitdiff
path: root/app-vim/vim-go/vim-go-1.26.ebuild
blob: 5d58adf679cd092fb771e713d866f59cc9037221 (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
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit vim-plugin

DESCRIPTION="vim plugin: Go development plugin for Vim"
HOMEPAGE="https://github.com/fatih/vim-go"
SRC_URI="https://github.com/fatih/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD"
KEYWORDS="~amd64 ~x86"
RESTRICT="test"

RDEPEND="dev-go/gopls"

DOCS=( README.md CHANGELOG.md )

src_compile() {
	# safely skip `make test` triggered by `make` as it runs `go get` commands
	# TODO: Is :GoInstallBinaries still necessary? For details see:
	#       https://github.com/fatih/vim-go/blob/master/doc/vim-go.txt
	:;
}

src_install(){
	insinto /usr/share/vim/vimfiles/
	doins -r templates

	vim-plugin_src_install
}