git: 861a574647fc - main - devel/gomigrate: Enable all databases and files source

From: Gabriel M. Dutra <dutra_at_FreeBSD.org>
Date: Fri, 02 May 2025 17:41:09 UTC
The branch main has been updated by dutra:

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

commit 861a574647fcbc5555889bcb61f637b42b45359c
Author:     Gabriel M. Dutra <dutra@FreeBSD.org>
AuthorDate: 2025-05-02 17:33:29 +0000
Commit:     Gabriel M. Dutra <dutra@FreeBSD.org>
CommitDate: 2025-05-02 17:40:52 +0000

    devel/gomigrate: Enable all databases and files source
    
    The gomigrate controls each database support using tags on build.
    This commit adds ldflag to fix the version and to enable all databases.
    
    PR:             285572
    Reported by:    Ruslan Makhmatkhanov <rm@FreeBSD.org>
---
 devel/gomigrate/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/devel/gomigrate/Makefile b/devel/gomigrate/Makefile
index 762805a21a04..c698938ed522 100644
--- a/devel/gomigrate/Makefile
+++ b/devel/gomigrate/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	migrate
 DISTVERSIONPREFIX=	v
 DISTVERSION=	4.18.2
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	devel
 PKGNAMEPREFIX=	go
 
@@ -18,6 +18,12 @@ CONFLICTS_INSTALL=	migrate
 
 GO_MODULE=	github.com/golang-migrate/migrate/v4
 GO_TARGET=	./cmd/${PORTNAME}
+_DATABASES=	postgres mysql redshift cassandra spanner cockroachdb \
+		yugabytedb clickhouse mongodb sqlserver firebird neo4j pgx pgx5 rqlite
+
+_FILES=file go_bindata github github_ee bitbucket aws_s3 google_cloud_storage godoc_vfs gitlab
+
+GO_BUILDFLAGS=	-ldflags="-X main.Version=${DISTVERSION}" -tags "${_DATABASES} ${_FILES}"
 
 PLIST_FILES=	bin/${PORTNAME}