summaryrefslogtreecommitdiff
blob: 43015cc55e9e624068b907e1898c03848dfb4416 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
inherit go-module

ARCHIVE_URI="https://github.com/golang/tools/archive/refs/tags/gopls/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
DESCRIPTION="\"Go please\" is the official Go language server"
HOMEPAGE="https://github.com/golang/tools/blob/master/gopls/README.md"
SLOT="0"
LICENSE="BSD"
BDEPEND=">=dev-lang/go-1.18"

EGO_SUM=(
"github.com/BurntSushi/toml v0.3.1/go.mod"
"github.com/BurntSushi/toml v0.4.1/go.mod"
"github.com/BurntSushi/toml v1.0.0"
"github.com/BurntSushi/toml v1.0.0/go.mod"
"github.com/client9/misspell v0.3.4"
"github.com/client9/misspell v0.3.4/go.mod"
"github.com/creack/pty v1.1.9/go.mod"
"github.com/davecgh/go-spew v1.1.0/go.mod"
"github.com/davecgh/go-spew v1.1.1"
"github.com/davecgh/go-spew v1.1.1/go.mod"
"github.com/frankban/quicktest v1.14.2"
"github.com/frankban/quicktest v1.14.2/go.mod"
"github.com/google/go-cmp v0.5.6/go.mod"
"github.com/google/go-cmp v0.5.7"
"github.com/google/go-cmp v0.5.7/go.mod"
"github.com/google/safehtml v0.0.2"
"github.com/google/safehtml v0.0.2/go.mod"
"github.com/jba/printsrc v0.2.2"
"github.com/jba/printsrc v0.2.2/go.mod"
"github.com/jba/templatecheck v0.6.0"
"github.com/jba/templatecheck v0.6.0/go.mod"
"github.com/kr/pretty v0.1.0/go.mod"
"github.com/kr/pretty v0.3.0"
"github.com/kr/pretty v0.3.0/go.mod"
"github.com/kr/pty v1.1.1/go.mod"
"github.com/kr/text v0.1.0/go.mod"
"github.com/kr/text v0.2.0"
"github.com/kr/text v0.2.0/go.mod"
"github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod"
"github.com/pmezard/go-difflib v1.0.0"
"github.com/pmezard/go-difflib v1.0.0/go.mod"
"github.com/rogpeppe/go-internal v1.6.1/go.mod"
"github.com/rogpeppe/go-internal v1.8.1"
"github.com/rogpeppe/go-internal v1.8.1/go.mod"
"github.com/sergi/go-diff v1.1.0"
"github.com/sergi/go-diff v1.1.0/go.mod"
"github.com/stretchr/objx v0.1.0/go.mod"
"github.com/stretchr/testify v1.4.0"
"github.com/stretchr/testify v1.4.0/go.mod"
"github.com/yuin/goldmark v1.2.1/go.mod"
"github.com/yuin/goldmark v1.4.1/go.mod"
"golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod"
"golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod"
"golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod"
"golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod"
"golang.org/x/exp/typeparams v0.0.0-20220218215828-6cf2b201936e"
"golang.org/x/exp/typeparams v0.0.0-20220218215828-6cf2b201936e/go.mod"
"golang.org/x/mod v0.3.0/go.mod"
"golang.org/x/mod v0.5.1/go.mod"
"golang.org/x/mod v0.6.0-dev.0.20211013180041-c96bc1413d57/go.mod"
"golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3"
"golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod"
"golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod"
"golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod"
"golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod"
"golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod"
"golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod"
"golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod"
"golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod"
"golang.org/x/sync v0.0.0-20210220032951-036812b2e83c"
"golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod"
"golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod"
"golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod"
"golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod"
"golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod"
"golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod"
"golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod"
"golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod"
"golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod"
"golang.org/x/sys v0.0.0-20211213223007-03aa0b5f6827/go.mod"
"golang.org/x/sys v0.0.0-20220209214540-3681064d5158"
"golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod"
"golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod"
"golang.org/x/text v0.3.0/go.mod"
"golang.org/x/text v0.3.3/go.mod"
"golang.org/x/text v0.3.6/go.mod"
"golang.org/x/text v0.3.7"
"golang.org/x/text v0.3.7/go.mod"
"golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod"
"golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod"
"golang.org/x/tools v0.1.0/go.mod"
"golang.org/x/tools v0.1.8/go.mod"
"golang.org/x/tools v0.1.9/go.mod"
"golang.org/x/tools v0.1.11-0.20220316014157-77aa08bb151a/go.mod"
"golang.org/x/tools v0.1.11-0.20220407163324-91bcfb1bdf9c"
"golang.org/x/tools v0.1.11-0.20220407163324-91bcfb1bdf9c/go.mod"
"golang.org/x/vuln v0.0.0-20220324005316-18fd808f5c7f"
"golang.org/x/vuln v0.0.0-20220324005316-18fd808f5c7f/go.mod"
"golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod"
"golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod"
"golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod"
"golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1"
"golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod"
"gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod"
"gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod"
"gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod"
"gopkg.in/errgo.v2 v2.1.0/go.mod"
"gopkg.in/yaml.v2 v2.2.2/go.mod"
"gopkg.in/yaml.v2 v2.2.4"
"gopkg.in/yaml.v2 v2.2.4/go.mod"
"honnef.co/go/tools v0.2.2/go.mod"
"honnef.co/go/tools v0.3.0"
"honnef.co/go/tools v0.3.0/go.mod"
"mvdan.cc/gofumpt v0.3.0"
"mvdan.cc/gofumpt v0.3.0/go.mod"
"mvdan.cc/unparam v0.0.0-20211214103731-d0ef000c54e5"
"mvdan.cc/unparam v0.0.0-20211214103731-d0ef000c54e5/go.mod"
"mvdan.cc/xurls/v2 v2.4.0"
"mvdan.cc/xurls/v2 v2.4.0/go.mod"
)

go-module_set_globals
SRC_URI="
	${ARCHIVE_URI}
	${EGO_SUM_SRC_URI}
"

S=${WORKDIR}/tools-gopls-v${PV}/${PN}

src_prepare() {
	default
	rm internal/regtest/misc/vendor_test.go || die
}

src_compile() {
	GOBIN="${S}/bin" CGO_ENABLED=0 go install ./...
	[[ -x bin/${PN} ]] || die "${PN} build failed"
}

src_test() {
	go test -work "./..." || die
}

src_install() {
	dobin bin/${PN}
	dodoc -r doc README.md
}