databases/mongodb-tools: use go 1.23

By reading some of the fixed issues in the last release I found
that the go version was bumped upstream.
Although it builds and runs fine I let the port follow.
Add a pre-configure check that the port uses the same go version
as is mentioned in go.mod.
This commit is contained in:
Ronald Klop 2025-04-03 18:27:57 +02:00
parent 038ad5ece7
commit ba9303f178
No known key found for this signature in database
GPG key ID: 551E8E6207A42166

View file

@ -1,5 +1,6 @@
PORTNAME= mongodb-tools
DISTVERSION= 100.12.0
PORTREVISION= 1
CATEGORIES= databases
MAINTAINER= ronald@FreeBSD.org
@ -9,7 +10,7 @@ WWW= https://www.mongodb.com/docs/database-tools/
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE.md
USES= compiler:c++14-lang go:1.22 localbase
USES= compiler:c++14-lang go:1.23 localbase
USE_GITHUB= yes
GH_ACCOUNT= mongodb
GH_PROJECT= mongo-tools
@ -55,6 +56,10 @@ SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
SASL_USE= my_tags=sasl
SSL_USE= my_tags=ssl
pre-configure:
# Verify we use the proper go version.
${SH} -xc "test \"X`grep -E '^go [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$$' ${WRKSRC}/go.mod`\" = \"Xgo ${GO_VERSION}.0\""
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in README.md CONTRIBUTING.md THIRD-PARTY-NOTICES