git: d7a1eabd4d36 - main - devel/gopls: Add port: Go language server
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 07 Dec 2021 22:21:21 UTC
The branch main has been updated by otis:
URL: https://cgit.FreeBSD.org/ports/commit/?id=d7a1eabd4d361d0f659fadb7262935b252b9a757
commit d7a1eabd4d361d0f659fadb7262935b252b9a757
Author: Robert Clausecker <fuz@fuz.su>
AuthorDate: 2021-12-07 22:18:47 +0000
Commit: Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2021-12-07 22:18:47 +0000
devel/gopls: Add port: Go language server
gopls (pronounced "Go please") is the official Go language server
developed by the Go team. It provides IDE features to any
LSP-compatible editor.
PR: 260258
---
devel/Makefile | 1 +
devel/gopls/Makefile | 23 +++++++++++++++++++++++
devel/gopls/distinfo | 5 +++++
devel/gopls/pkg-descr | 10 ++++++++++
devel/gopls/pkg-plist | 19 +++++++++++++++++++
5 files changed, 58 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 1a45d5b40161..90c0a13af5a4 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -906,6 +906,7 @@
SUBDIR += google-perftools
SUBDIR += google-styleguide
SUBDIR += googletest
+ SUBDIR += gopls
SUBDIR += goprotobuf
SUBDIR += goredo
SUBDIR += goreleaser
diff --git a/devel/gopls/Makefile b/devel/gopls/Makefile
new file mode 100644
index 000000000000..1f08b5864efb
--- /dev/null
+++ b/devel/gopls/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= gopls
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.7.3
+CATEGORIES= devel
+
+MAINTAINER= fuz@fuz.su
+COMMENT= Go language LSP server
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= go:modules
+GO_MODULE= golang.org/x/tools/gopls
+GO_TARGET= .
+
+OPTIONS_DEFINE= DOCS
+
+post-install-DOCS-on:
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} "README.md doc" ${STAGEDIR}${DOCSDIR}
+ ${RM} ${STAGEDIR}${DOCSDIR}/doc/*.go
+
+.include <bsd.port.mk>
diff --git a/devel/gopls/distinfo b/devel/gopls/distinfo
new file mode 100644
index 000000000000..466380df6628
--- /dev/null
+++ b/devel/gopls/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1638798658
+SHA256 (go/devel_gopls/gopls-v0.7.3/v0.7.3.mod) = 271cc227e005f66ae97122f94e18787daad54419d2f881458948f6bfd706fc9f
+SIZE (go/devel_gopls/gopls-v0.7.3/v0.7.3.mod) = 686
+SHA256 (go/devel_gopls/gopls-v0.7.3/v0.7.3.zip) = 6b866a46556c5e724e185a4595a0956f5c6c566a4fec17369792eb765de91865
+SIZE (go/devel_gopls/gopls-v0.7.3/v0.7.3.zip) = 155055
diff --git a/devel/gopls/pkg-descr b/devel/gopls/pkg-descr
new file mode 100644
index 000000000000..690b34738981
--- /dev/null
+++ b/devel/gopls/pkg-descr
@@ -0,0 +1,10 @@
+gopls (pronounced "Go please") is the official Go language server
+developed by the Go team. It provides IDE features to any
+LSP-compatible editor.
+
+You should not need to interact with gopls directly---it will be
+automatically integrated into your editor. The specific features and
+settings vary slightly by editor, so we recommend that you proceed to
+the documentation for your editor below.
+
+WWW: https://pkg.go.dev/golang.org/x/tools/gopls
diff --git a/devel/gopls/pkg-plist b/devel/gopls/pkg-plist
new file mode 100644
index 000000000000..1542dcd879ca
--- /dev/null
+++ b/devel/gopls/pkg-plist
@@ -0,0 +1,19 @@
+bin/gopls
+%%PORTDOCS%%%%DOCSDIR%%/README.md
+%%PORTDOCS%%%%DOCSDIR%%/doc/advanced.md
+%%PORTDOCS%%%%DOCSDIR%%/doc/analyzers.md
+%%PORTDOCS%%%%DOCSDIR%%/doc/command-line.md
+%%PORTDOCS%%%%DOCSDIR%%/doc/commands.md
+%%PORTDOCS%%%%DOCSDIR%%/doc/contributing.md
+%%PORTDOCS%%%%DOCSDIR%%/doc/daemon.md
+%%PORTDOCS%%%%DOCSDIR%%/doc/design/design.md
+%%PORTDOCS%%%%DOCSDIR%%/doc/design/implementation.md
+%%PORTDOCS%%%%DOCSDIR%%/doc/design/integrating.md
+%%PORTDOCS%%%%DOCSDIR%%/doc/emacs.md
+%%PORTDOCS%%%%DOCSDIR%%/doc/features.md
+%%PORTDOCS%%%%DOCSDIR%%/doc/semantictokens.md
+%%PORTDOCS%%%%DOCSDIR%%/doc/settings.md
+%%PORTDOCS%%%%DOCSDIR%%/doc/subl.md
+%%PORTDOCS%%%%DOCSDIR%%/doc/troubleshooting.md
+%%PORTDOCS%%%%DOCSDIR%%/doc/vim.md
+%%PORTDOCS%%%%DOCSDIR%%/doc/workspace.md