Skip to content

Commit

Permalink
devel/mongo-c-driver: Use USE_GITHUB helper and always use (lib)utf8p…
Browse files Browse the repository at this point in the history
…roc from ports

* Use USE_GITHUB helper instead of working around it
* Always unbundle (lib)utf8proc as per Porters Handbook
* Partially fix USES= pathfix

PR:		276062
Reviewed by:	Krzysztof <ports@bsdserwis.com> (maintainer)
  • Loading branch information
Daniel Engberg authored and Daniel Engberg committed Jan 3, 2024
1 parent 81be046 commit 474a16b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
18 changes: 10 additions & 8 deletions devel/mongo-c-driver/Makefile
@@ -1,7 +1,7 @@
PORTNAME= mongo-c-driver
DISTVERSION= 1.25.3
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= https://codeload.github.com/mongodb/${PORTNAME}/tar.gz/${DISTVERSION}?dummy=/

MAINTAINER= ports@bsdserwis.com
COMMENT= C Driver for MongoDB
Expand All @@ -11,31 +11,37 @@ LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/COPYING

LIB_DEPENDS= libbson-1.0.so:devel/libbson \
libutf8proc.so:textproc/utf8proc \
libzstd.so:archivers/zstd

USES= cmake cpe pathfix pkgconfig python:env
CPE_VENDOR= mongodb
PATHFIX_WRKSRC= ${WRKSRC}/src/libmongoc
USE_LDCONFIG= yes

USE_GITHUB= yes
GH_ACCOUNT= mongodb
GH_PROJECT= mongo-c-driver

CMAKE_ARGS= -DENABLE_ZLIB=SYSTEM
CMAKE_ON= ENABLE_MONGOC \
ENABLE_ZSTD \
USE_SYSTEM_LIBBSON
CMAKE_OFF= BUILD_TESTING \
ENABLE_EXAMPLES \
ENABLE_TESTS \
ENABLE_UNINSTALL
ENABLE_UNINSTALL \
USE_BUNDLED_UTF8PROC

OPTIONS_DEFINE= CRYPTOPROFILE DOCS ICU MONGODBAWS RDTSCP SASL SNAPPY \
SRV SSL UTF8PROC ZSTD
SRV SSL ZSTD
OPTIONS_DEFAULT= SSL
OPTIONS_SUB= yes

CRYPTOPROFILE_DESC= Use system crypto profile (requires OpenSSL)
MONGODBAWS_DESC= Enable support for the MONGODB-AWS authentication mechanism
RDTSCP_DESC= Fast performance counters on Intel using the RDTSCP instruction
SRV_DESC= Enable support for mongodb+srv URIs
UTF8PROC_DESC= SCRAM-SHA-256 authentication with non-ASCII passwords (Use system utf8proc instead of bundled one)

CRYPTOPROFILE_CMAKE_ON= -DENABLE_CRYPTO_SYSTEM_PROFILE=ON
CRYPTOPROFILE_CMAKE_OFF= -DENABLE_CRYPTO_SYSTEM_PROFILE=OFF
Expand Down Expand Up @@ -69,10 +75,6 @@ SRV_CMAKE_OFF= -DENABLE_SRV=OFF
SSL_USES= ssl
SSL_CMAKE_OFF= -DENABLE_SSL=OFF

UTF8PROC_LIB_DEPENDS= libutf8proc.so:textproc/utf8proc
UTF8PROC_CMAKE_ON= -DUSE_BUNDLED_UTF8PROC=OFF
UTF8PROC_CMAKE_OFF= -DUSE_BUNDLED_UTF8PROC=ON

ZSTD_LIB_DEPENDS= libzstd.so:archivers/zstd
ZSTD_CMAKE_ON= -DENABLE_ZSTD=ON
ZSTD_CMAKE_OFF= -DENABLE_ZSTD=OFF
Expand Down
6 changes: 3 additions & 3 deletions devel/mongo-c-driver/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1703795554
SHA256 (mongo-c-driver-1.25.3.tar.gz) = d7cdedc5164b7b8ca39bb45bee789da44097052c882fa84996e4d90eec6fe8d3
SIZE (mongo-c-driver-1.25.3.tar.gz) = 7306922
TIMESTAMP = 1704141051
SHA256 (mongodb-mongo-c-driver-1.25.3_GH0.tar.gz) = d7cdedc5164b7b8ca39bb45bee789da44097052c882fa84996e4d90eec6fe8d3
SIZE (mongodb-mongo-c-driver-1.25.3_GH0.tar.gz) = 7306922

0 comments on commit 474a16b

Please sign in to comment.