mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
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:
parent
038ad5ece7
commit
ba9303f178
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue