summaryrefslogtreecommitdiff
path: root/dev-go
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2022-07-10 13:50:41 -0700
committerZac Medico <zmedico@gentoo.org>2022-07-10 13:50:53 -0700
commit541e1f7f52c11c2a12a05aac9c1884f23fb12eef (patch)
treefca4d84c6fcca4de16ea624e508030fb9af38703 /dev-go
parentsys-fs/zfs: backport another dracut boot patch (diff)
downloadgentoo-541e1f7f52c11c2a12a05aac9c1884f23fb12eef.tar.gz
gentoo-541e1f7f52c11c2a12a05aac9c1884f23fb12eef.tar.bz2
gentoo-541e1f7f52c11c2a12a05aac9c1884f23fb12eef.zip
dev-go/gopls: add 0.9.0
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.0.ebuild40
2 files changed, 42 insertions, 0 deletions
diff --git a/dev-go/gopls/Manifest b/dev-go/gopls/Manifest
index 9151638d21a7..b77a96f75755 100644
--- a/dev-go/gopls/Manifest
+++ b/dev-go/gopls/Manifest
@@ -1,2 +1,4 @@
DIST gopls-0.8.3-deps.tar.xz 22577604 BLAKE2B 762d0eabc16771439fbd0d8cd2018e201a863563b7717def4b4b45307887b7c01db188d9545b43288145b54e969042d5410d53e93b1aac33a3135f8c42eb15f8 SHA512 9816395c6ffa7f13260d88cd72c2a5072a15a75fc1be3d342f80325603b9bd26cd7486be72887561113c4cd8a59d80ae1a5318d1548294a3d57ee04e6efdc385
DIST gopls-0.8.3.tar.gz 3036967 BLAKE2B feb8ee9dae8eed6ebccddaa8425db20a2e6964af3a537e6cfe9e1bf71dc62a6301516b7114e4e33470f82afa27041bc20c7362a1cd5840da0168ce43bc356023 SHA512 b5be84e3ce79f98f2109ca421cfa913a5031518a068d673b6eec8ec5f61a7bd204ae6e7e11af7f4bf94a6f60107d4268359ed3b2751b3df5a98e685de78147b8
+DIST gopls-0.9.0-deps.tar.xz 21748784 BLAKE2B dfbe63c2c830548e2c7ed02563d59e0e0c09e3b05da570532d16f9f6b8c9fe4be2c43d6266de69e19b91bbc4f43ff20d768e45b24739e5f6c5e3d0da03ada834 SHA512 60ac489b49812e62cd9758acb6a44adfa8091322684770cbc8fdf048764eda52f9e93bfb4247700cf9480c71e8e16254e9a74102d6ae60a51e647ede5bd5d928
+DIST gopls-0.9.0.tar.gz 3101189 BLAKE2B 11b24db6dca208212444df1e25d65700dd814344bbcf66a9a4d08d5a16f18f5040195dfc27628b3020628d3ad79e9d890e218016b66a473cdbab0b415daf6bd3 SHA512 c0dc0fdffec517115acf8e7ce3de1d5357d467f2ea23e070ea800a43a137be67094e69f5f366613dcbb771379818789c2105b2b59f53c04762146876d12f74ea
diff --git a/dev-go/gopls/gopls-0.9.0.ebuild b/dev-go/gopls/gopls-0.9.0.ebuild
new file mode 100644
index 000000000000..5952c14f68b0
--- /dev/null
+++ b/dev-go/gopls/gopls-0.9.0.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
+}