summaryrefslogtreecommitdiff
path: root/dev-go
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2022-10-17 19:59:45 -0700
committerZac Medico <zmedico@gentoo.org>2022-10-17 20:00:02 -0700
commitd8dc7b5dd5360138c5476b8478dba14f378fc8ce (patch)
treed59fdfb8ccba5140a3d629cad05e068657d7bce3 /dev-go
parentsys-block/fio: fix Python eclass usage (diff)
downloadgentoo-d8dc7b5dd5360138c5476b8478dba14f378fc8ce.tar.gz
gentoo-d8dc7b5dd5360138c5476b8478dba14f378fc8ce.tar.bz2
gentoo-d8dc7b5dd5360138c5476b8478dba14f378fc8ce.zip
dev-go/gopls: add 0.9.5
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'dev-go')
-rw-r--r--dev-go/gopls/Manifest2
-rw-r--r--dev-go/gopls/gopls-0.9.5.ebuild40
2 files changed, 42 insertions, 0 deletions
diff --git a/dev-go/gopls/Manifest b/dev-go/gopls/Manifest
index bc56cd5b4529..86c123f7dd92 100644
--- a/dev-go/gopls/Manifest
+++ b/dev-go/gopls/Manifest
@@ -2,3 +2,5 @@ DIST gopls-0.9.1-deps.tar.xz 21987952 BLAKE2B 3279c9bb5223460ea4881ad2d4061a7eaf
DIST gopls-0.9.1.tar.gz 3101075 BLAKE2B a9e05f28868f733c9ef60bbdf3c6b54f2507eae6b23d18a85d7fd0df69ff3c5fe2806a280a918763aa6e34db7e4d6ca4e3160c7c280e5e9d95511a3ad3846ee6 SHA512 f5a3863dacc5639e1773ee70608d0c22228e348d00cda5303044ad13c6be0d212b64f3866d541459e8e188461bd84e4b2270d5e40baa105f9f0c749db86df9ab
DIST gopls-0.9.4-deps.tar.xz 21995720 BLAKE2B fddcc1b1417979baacf1c1d587b835dbd00638a5fc7fb8bafe54dbe0f399d3d6b0f6b48c0ecf682c563f714e6d8adcb74763bf5021a31b7e5ad3138768d1dc6c SHA512 705908bba1ce599b7749704e7a031df9d9a5d22aa0c57a3fd4e3cd591aa0b0c22e351222d6504afbbe2df47e0a939b596550c19e42eaf3700305ec6179cee18a
DIST gopls-0.9.4.tar.gz 3159131 BLAKE2B f0a317dd23e74682e31e6587eb8e0a1d110472d2c98add5ef29592f9aa45036343da2e5d1f404f88875505ffd13019ff8a25ed8eda379eb8c3104d59e6a98e48 SHA512 3ee97b1090b355f79ae9a5a045a120ea6230b320d5b26fa0c1f42bf2288707922c5f111ef4dbdab7cd893245330eb9acc163cb452a2610941775b06536d921c1
+DIST gopls-0.9.5-deps.tar.xz 22410984 BLAKE2B 5f15c1b8fa75fac10b0b126071968ff9640200844df82a0f1586f7d119b99ce70dad2e05c11230241c1b02428f7a17034750c6bf04062316371623539c618e12 SHA512 190a63a20c89c7a647495a9e8fc20181bc570e3dc8a6c85c944f5da8a76bcd9d29d72a05bf9186e578928cdc5f14d548229f59b8771c1e7a3c2d72579da7082a
+DIST gopls-0.9.5.tar.gz 3163807 BLAKE2B 3792676e4f3f7cd5abdfde35d875914982edd4d0cce370ff2fb74f36eb5dc9bacd0f494a3f3668befd6fd40ebd62b3cec077953505b9f68f7795f3d3eb2ab4f2 SHA512 55bb1128920854f6d4c8b61ce8edf8b97d3ae14dc5ecf8cb9c8eea06223be9920161e6e0c3bfe27ebac144fc85de753ed98dde8284b817e669fecfd688c7e10e
diff --git a/dev-go/gopls/gopls-0.9.5.ebuild b/dev-go/gopls/gopls-0.9.5.ebuild
new file mode 100644
index 000000000000..965c22e94bb7
--- /dev/null
+++ b/dev-go/gopls/gopls-0.9.5.ebuild
@@ -0,0 +1,40 @@
+# 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 ~x86"
+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"
+SRC_URI="
+ ${ARCHIVE_URI}
+ https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz
+"
+# TODO: fix test failure with deps tarball
+RESTRICT+=" test"
+
+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
+}