git: 00cf029670f1 - main - www/tgpt: Fix Makefile

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Tue, 06 Aug 2024 15:23:24 UTC
The branch main has been updated by vvd:

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

commit 00cf029670f1536cd94ad8eaa0c86f183b51285e
Author:     Yusuf Yaman <nxjoseph@protonmail.com>
AuthorDate: 2024-08-06 15:15:04 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-08-06 15:22:54 +0000

    www/tgpt: Fix Makefile
    
    * Fix USES by adding: modules and removing GO_PKGNAME.
    * Remove output argument from GO_BUILDFLAGS as it does nothing.
    
    PR:     280660
    MFH:    2024Q3
---
 www/tgpt/Makefile | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/www/tgpt/Makefile b/www/tgpt/Makefile
index cb5808cbd1ca..8a9b07a49136 100644
--- a/www/tgpt/Makefile
+++ b/www/tgpt/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	tgpt
 DISTVERSIONPREFIX=	v
 DISTVERSION=	2.8.0
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	www
 
 MAINTAINER=	nxjoseph@protonmail.com
@@ -11,7 +11,7 @@ WWW=		https://github.com/aandrew-me/tgpt
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		go:1.22
+USES=		go:1.22,modules
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	aandrew-me
@@ -54,8 +54,7 @@ GH_TUPLE=	andybalholm:brotli:v1.0.5:andybalholm_brotli/vendor/github.com/andybal
 		stretchr:testify:v1.8.4:stretchr_testify/vendor/github.com/stretchr/testify \
 		tam7t:hpkp:2b70b4024ed5:tam7t_hpkp/vendor/github.com/tam7t/hpkp
 
-GO_PKGNAME=	github.com/${GH_ACCOUNT}/${PORTNAME}
-GO_BUILDFLAGS=	-ldflags="-s -w" -o ./build/tgpt
+GO_BUILDFLAGS=	-ldflags="-s -w"
 
 PLIST_FILES=	bin/tgpt