blob: 5c533d888303b40a0af03df90694ef7d35f62de7 (
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
|
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="\"Go please\" is the official Go language server"
HOMEPAGE="https://github.com/golang/tools/blob/master/gopls/README.md"
SRC_URI="https://github.com/golang/tools/archive/refs/tags/gopls/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://share.terinstock.com/${P}-vendor.tar.xz "
S=${WORKDIR}/tools-gopls-v${PV}/${PN}
LICENSE="BSD"
LICENSE+=" MIT"
BDEPEND=">=dev-lang/go-1.23"
SLOT="0"
KEYWORDS="~amd64 ~x86"
# TODO: fix test failure with deps tarball
RESTRICT+=" test"
src_compile() {
ego build -trimpath -ldflags "-X main.version=${PV}" .
}
src_test() {
go test -work "./..." || die
}
src_install() {
dobin gopls
dodoc -r doc README.md
}
|