git: 90bb0c393f35 - main - graphics/vhs: Update to 0.10.0

From: Jesús Daniel Colmenares Oviedo <dtxdf_at_FreeBSD.org>
Date: Thu, 19 Jun 2025 17:25:21 UTC
The branch main has been updated by dtxdf:

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

commit 90bb0c393f3530e03a7d683ed23a8f6172c43e9f
Author:     Jesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>
AuthorDate: 2025-06-19 17:22:01 +0000
Commit:     Jesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>
CommitDate: 2025-06-19 17:24:17 +0000

    graphics/vhs: Update to 0.10.0
    
    ChangeLog: https://github.com/charmbracelet/vhs/releases/tag/v0.10.0
    
    Approved by:    acm (mentor)
---
 graphics/vhs/Makefile | 10 ++++++++--
 graphics/vhs/distinfo | 10 +++++-----
 2 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/graphics/vhs/Makefile b/graphics/vhs/Makefile
index 25d3a39457cf..874050dcfe21 100644
--- a/graphics/vhs/Makefile
+++ b/graphics/vhs/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	vhs
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.9.0
-PORTREVISION=	4
+DISTVERSION=	0.10.0
 CATEGORIES=	graphics
 
 MAINTAINER=	dtxdf@FreeBSD.org
@@ -17,6 +16,9 @@ RUN_DEPENDS=	bash>0:shells/bash \
 
 USES=		go:modules
 GO_MODULE=	github.com/charmbracelet/vhs
+GO_BUILDFLAGS=	-ldflags "\
+			-X 'main.Version=${DISTVERSIONPREFIX}${DISTVERSION}' \
+			-X 'main.CommitSHA=${GITID}'"
 
 PLIST_FILES=	bin/vhs
 
@@ -29,4 +31,8 @@ UNGOOGLED_CHROMIUM_DESC=	Install ungoogled-chromium
 CHROMIUM_RUN_DEPENDS=		chromium>0:www/chromium
 UNGOOGLED_CHROMIUM_RUN_DEPENDS=	ungoogled-chromium>0:www/ungoogled-chromium
 
+# Run 'git checkout ${DISTVERSIONPREFIX}${DISTVERSION} && git rev-parse HEAD'
+# in the VHS repository to get the value of GITID.
+GITID=		710bb769af94d844ffdc3c8b737a6775813fc0a4
+
 .include <bsd.port.mk>
diff --git a/graphics/vhs/distinfo b/graphics/vhs/distinfo
index 443e659b86a3..2f85fb13f24e 100644
--- a/graphics/vhs/distinfo
+++ b/graphics/vhs/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1739414655
-SHA256 (go/graphics_vhs/vhs-v0.9.0/v0.9.0.mod) = d4fcee68f3136d8950b5ef4f91dadc15ab3bd98df21123f4089a8ee2bd144104
-SIZE (go/graphics_vhs/vhs-v0.9.0/v0.9.0.mod) = 2961
-SHA256 (go/graphics_vhs/vhs-v0.9.0/v0.9.0.zip) = 988a5589b1d9461b87f5f6f54be47a890fc0e74c4f9bafef87317948d4bfbae0
-SIZE (go/graphics_vhs/vhs-v0.9.0/v0.9.0.zip) = 213150
+TIMESTAMP = 1750315587
+SHA256 (go/graphics_vhs/vhs-v0.10.0/v0.10.0.mod) = 16aba18b78ef0c467431c45af4460aa611c40263953732b0b41c043233b715ed
+SIZE (go/graphics_vhs/vhs-v0.10.0/v0.10.0.mod) = 3244
+SHA256 (go/graphics_vhs/vhs-v0.10.0/v0.10.0.zip) = a5a5ebd738e5deb127454221076a1f8575e4747c9bb2e0ae7d521a7e5325d202
+SIZE (go/graphics_vhs/vhs-v0.10.0/v0.10.0.zip) = 214438