git: 3851e5c18b33 - main - shells/elvish: fix enchance version information

From: Zsolt Udvari <uzsolt_at_FreeBSD.org>
Date: Mon, 26 Aug 2024 17:56:35 UTC
The branch main has been updated by uzsolt:

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

commit 3851e5c18b33b7503d89a9cb8408c59a500a97b4
Author:     Qi Xiao <xiaqqaix@gmail.com>
AuthorDate: 2024-08-26 17:53:09 +0000
Commit:     Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2024-08-26 17:53:09 +0000

    shells/elvish: fix enchance version information
    
    The instructions for how to enhance Elvish's version information has
    changed.
    
    While I'm here remove empty line from GH_TUPLE.
    
    PR:             277194
    Approved by:    Adam Jimerson <vendion@gmail.com> (maintainer)
---
 shells/elvish/Makefile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/shells/elvish/Makefile b/shells/elvish/Makefile
index 63756c863e0b..48f8d9052e95 100644
--- a/shells/elvish/Makefile
+++ b/shells/elvish/Makefile
@@ -16,8 +16,7 @@ CPE_VENDOR=	elv
 USE_GITHUB=	yes
 GH_ACCOUNT=	elves
 GH_PROJECT=	elvish
-GH_TUPLE=	\
-		creack:pty:v1.1.21:creack_pty/vendor/github.com/creack/pty \
+GH_TUPLE=	creack:pty:v1.1.21:creack_pty/vendor/github.com/creack/pty \
 		etcd-io:bbolt:v1.3.8:etcd_io_bbolt/vendor/go.etcd.io/bbolt \
 		golang:sync:v0.6.0:golang_sync/vendor/golang.org/x/sync \
 		golang:sys:v0.16.0:golang_sys/vendor/golang.org/x/sys \
@@ -28,7 +27,7 @@ GH_TUPLE=	\
 
 GO_PKGNAME=	github.com/${GH_ACCOUNT}/${PORTNAME}
 GO_TARGET=	./cmd/elvish
-GO_BUILDFLAGS=	-ldflags="-s -w -X src.elv.sh/pkg/buildinfo.Version=${DISTVERSIONPREFIX}${DISTVERSION} -X src.elv.sh/pkg/buildinfo.Reproducible=true" \
+GO_BUILDFLAGS=	-ldflags="-s -w -X src.elv.sh/pkg/buildinfo.BuildVariant=freebsd" \
 		-buildmode=pie
 GO_TESTFLAGS=	-race
 CGO_ENABLED=	0