dev-libs/mongo-cxx-driver - 3.7.0 (mva)

Search

Install

Install this version:

emerge -a =dev-libs/mongo-cxx-driver-3.7.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-libs/mongo-cxx-driver-3.7.0

Or alternatively:

emerge --autounmask-write -a =dev-libs/mongo-cxx-driver-3.7.0

Package Information

Description:
C++ Driver for MongoDB
Homepage:
https://mongocxx.org
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
3.7.0 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 2026 mva
# Distributed under the terms of the Public Domain or CC0 License

EAPI=8

inherit cmake

MY_PV="${PV//_/-}"

DESCRIPTION="C++ Driver for MongoDB"
HOMEPAGE="https://mongocxx.org"
SRC_URI="https://github.com/mongodb/${PN}/archive/refs/tags/r${MY_PV}.tar.gz -> ${P}.tar.gz"

S="${WORKDIR}/${PN}-r${MY_PV}"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="static-libs static-mongoc"

DEPEND="dev-libs/boost"
RDEPEND="
	${DEPEND}
	>=dev-libs/mongo-c-driver-1.17.0
	static-mongoc? ( dev-libs/mongo-c-driver[static-libs] )
"

src_configure() {
	local mycmakeargs=(
		-DBUILD_VERSION="${PV}"
		-DENABLE_UNINSTALL=OFF
		-DBSONCXX_POLY_USE_BOOST=ON
		-DBUILD_SHARED_AND_STATIC_LIBS="$(usex static-libs ON OFF)"
		-DBUILD_SHARED_LIBS_WITH_STATIC_MONGOC="$(usex static-mongoc ON OFF)"
	)

	cmake_src_configure
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-libs/mongo-cxx-driver | euse -E <flag> -p dev-libs/mongo-cxx-driver | euse -D <flag> -p dev-libs/mongo-cxx-driver

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

dev-libs/boost

RDEPEND

	dev-libs/boost
	>=dev-libs/mongo-c-driver-1.17.0
	static-mongoc? ( dev-libs/mongo-c-driver[static-libs] )

Manifest for 3.7.0

Type File Size Source URLs
DIST mongo-cxx-driver-3.7.0.tar.gz 1492264 bytes https://github.com/mongodb/mongo-cxx-driver/archive/refs/tags/r3.7.0.tar.gz