git: 853acc201a9a - main - www/glance: Add port

From: Adam Weinberger <adamw_at_FreeBSD.org>
Date: Mon, 17 Mar 2025 17:55:12 UTC
The branch main has been updated by adamw:

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

commit 853acc201a9abfd81686e41c6e66faffcbd2fc41
Author:     Adam Weinberger <adamw@FreeBSD.org>
AuthorDate: 2025-03-17 17:48:17 +0000
Commit:     Adam Weinberger <adamw@FreeBSD.org>
CommitDate: 2025-03-17 17:55:05 +0000

    www/glance: Add port
    
    Glance is a go-based dashboard with a plethora of widgets. It's
    themeable, lightweight, attractive, and easy to configure.
    
    https://github.com/glanceapp/glance
---
 www/Makefile         |  1 +
 www/glance/Makefile  | 35 +++++++++++++++++++++++++++++++++++
 www/glance/distinfo  |  5 +++++
 www/glance/pkg-descr |  8 ++++++++
 4 files changed, 49 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 7d8547c00d87..1ddee69d6ffa 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -218,6 +218,7 @@
     SUBDIR += gitlab
     SUBDIR += gitlab-pages
     SUBDIR += gitlab-workhorse
+    SUBDIR += glance
     SUBDIR += glassfish
     SUBDIR += glassfish4
     SUBDIR += glpi
diff --git a/www/glance/Makefile b/www/glance/Makefile
new file mode 100644
index 000000000000..23dea0fa626a
--- /dev/null
+++ b/www/glance/Makefile
@@ -0,0 +1,35 @@
+PORTNAME=	glance
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.7.7
+CATEGORIES=	www
+
+MAINTAINER=	adamw@FreeBSD.org
+COMMENT=	Self-hosted dashboard that puts all your feeds in one place
+WWW=		https://github.com/glanceapp/glance
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		go:modules
+GO_MODULE=	github.com/glanceapp/glance
+
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
+PLIST_FILES=	bin/glance
+PORTDOCS=	configuration.md \
+		custom-api.md \
+		extensions.md \
+		preconfigured-pages.md \
+		themes.md \
+		v0.7.0-upgrade.md
+PORTEXAMPLES=	glance.yml
+
+post-install-DOCS-on:
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/docs/*.md ${STAGEDIR}${DOCSDIR}
+
+post-install-EXAMPLES-on:
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/docs/glance.yml ${STAGEDIR}${EXAMPLESDIR}
+
+.include <bsd.port.mk>
diff --git a/www/glance/distinfo b/www/glance/distinfo
new file mode 100644
index 000000000000..9b8813f980d0
--- /dev/null
+++ b/www/glance/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1742232990
+SHA256 (go/www_glance/glance-v0.7.7/v0.7.7.mod) = 6854d28439342a58e1a3d224fbbf98a5a6d89ccc385f063bfc1d817a98ce9e3f
+SIZE (go/www_glance/glance-v0.7.7/v0.7.7.mod) = 1162
+SHA256 (go/www_glance/glance-v0.7.7/v0.7.7.zip) = 58389d6d93f032a1d2f585ebf9dbc19fc0e9c90fc2d7ec4b02b90c466e8d4c6d
+SIZE (go/www_glance/glance-v0.7.7/v0.7.7.zip) = 13051025
diff --git a/www/glance/pkg-descr b/www/glance/pkg-descr
new file mode 100644
index 000000000000..7f65faf5c701
--- /dev/null
+++ b/www/glance/pkg-descr
@@ -0,0 +1,8 @@
+Glance is a fast, lightweight dashboard that can display all manner of
+widgets, including RSS feeds, stocks, Reddit and Hacker News and Twitch
+feeds, bookmarks, system information, and more.
+
+It's configurable through a single straightforward YAML file, and is
+easily themeable (see /usr/local/share/doc/glance/themes.md), including
+Catppuccin Mocha which objectively everyone should be using anyway.
+Widgets can be cached, so pages load nearly instantly.