summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-go/gopls/Manifest2
-rw-r--r--dev-go/gopls/gopls-0.9.4.ebuild40
2 files changed, 42 insertions, 0 deletions
diff --git a/dev-go/gopls/Manifest b/dev-go/gopls/Manifest
index ace11b1c3011..bc56cd5b4529 100644
--- a/dev-go/gopls/Manifest
+++ b/dev-go/gopls/Manifest
@@ -1,2 +1,4 @@
DIST gopls-0.9.1-deps.tar.xz 21987952 BLAKE2B 3279c9bb5223460ea4881ad2d4061a7eaf973682af26f8af3f6a19436310bd7037ec4e31594e019b2cf17e51784945d89808bd9fccaebbf654b4865383fddef2 SHA512 d29177bab21a27c67ea664f7b1264b5a9ce889d597fa150a9c008a10b0609186fccaae3a0cf6330cf0e88e0fb98c010546be7364486696d0ccebbaf9e5256043
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
diff --git a/dev-go/gopls/gopls-0.9.4.ebuild b/dev-go/gopls/gopls-0.9.4.ebuild
new file mode 100644
index 000000000000..5952c14f68b0
--- /dev/null
+++ b/dev-go/gopls/gopls-0.9.4.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"
+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
+}