git: b2f9c66fd84a - main - net/go-pkgsite: Go documentation server

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Thu, 11 Sep 2025 15:10:17 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b2f9c66fd84a9314f2094559625a588488bb9cec

commit b2f9c66fd84a9314f2094559625a588488bb9cec
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-09-11 09:47:55 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-09-11 15:09:50 +0000

    net/go-pkgsite: Go documentation server
    
    The pkgsite program extracts and generates documentation for Go projects.
    
    Example usage:
    
    $ go install golang.org/x/pkgsite/cmd/pkgsite@latest
    $ cd myproject
    $ pkgsite -open .
    
    For more information, see the pkgsite documentation.
    
    WWW: https://pkg.go.dev/golang.org/x/pkgsite/cmd/pkgsite
---
 net/Makefile             |  1 +
 net/go-pkgsite/Makefile  | 20 ++++++++++++++++++++
 net/go-pkgsite/distinfo  |  5 +++++
 net/go-pkgsite/pkg-descr |  9 +++++++++
 4 files changed, 35 insertions(+)

diff --git a/net/Makefile b/net/Makefile
index 54ac15598827..1af132cd7fc2 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -210,6 +210,7 @@
     SUBDIR += gnu-radius
     SUBDIR += go-bapu
     SUBDIR += go-cs
+    SUBDIR += go-pkgsite
     SUBDIR += go-tcping
     SUBDIR += gobgp
     SUBDIR += gofish
diff --git a/net/go-pkgsite/Makefile b/net/go-pkgsite/Makefile
new file mode 100644
index 000000000000..b2b61f26b478
--- /dev/null
+++ b/net/go-pkgsite/Makefile
@@ -0,0 +1,20 @@
+PORTNAME=	go-pkgsite
+PORTVERSION=    ${MODVERSION:S/-/./g:R}
+DISTVERSIONPREFIX=	v
+CATEGORIES=	net devel
+
+MAINTAINER=	fuz@FreeBSD.org
+COMMENT=	Go documentation server
+WWW=		https://pkg.go.dev/golang.org/x/pkgsite/cmd/pkgsite
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		go:modules
+MODVERSION=	0.0.0-20250911091732-133263251ca1
+GO_MODULE=	golang.org/x/pkgsite@v${MODVERSION}
+
+GO_TARGET=	./cmd/pkgsite
+PLIST_FILES=	${GO_TARGET:T:S,^,bin/,}
+
+.include <bsd.port.mk>
diff --git a/net/go-pkgsite/distinfo b/net/go-pkgsite/distinfo
new file mode 100644
index 000000000000..2fc39fe9d221
--- /dev/null
+++ b/net/go-pkgsite/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1757583687
+SHA256 (go/net_go-pkgsite/go-pkgsite-v0.0.0.20250911091732/v0.0.0-20250911091732-133263251ca1.mod) = 1b88b6c23acd887da7959fd300005054c6b4bfa27a3a2dbe94a3f64b83dbc44a
+SIZE (go/net_go-pkgsite/go-pkgsite-v0.0.0.20250911091732/v0.0.0-20250911091732-133263251ca1.mod) = 4186
+SHA256 (go/net_go-pkgsite/go-pkgsite-v0.0.0.20250911091732/v0.0.0-20250911091732-133263251ca1.zip) = 03656cb8192c9f2737236b341eba49e97fdb110616ceced77a814c5829fc8762
+SIZE (go/net_go-pkgsite/go-pkgsite-v0.0.0.20250911091732/v0.0.0-20250911091732-133263251ca1.zip) = 22903231
diff --git a/net/go-pkgsite/pkg-descr b/net/go-pkgsite/pkg-descr
new file mode 100644
index 000000000000..cb6b538f198d
--- /dev/null
+++ b/net/go-pkgsite/pkg-descr
@@ -0,0 +1,9 @@
+The pkgsite program extracts and generates documentation for Go projects.
+
+Example usage:
+
+$ go install golang.org/x/pkgsite/cmd/pkgsite@latest
+$ cd myproject
+$ pkgsite -open .
+
+For more information, see the pkgsite documentation.