dev-libs/libbson - 1.22.2 (mva)

Search

Install

Install this version:

emerge -a =dev-libs/libbson-1.22.2

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

autounmask =dev-libs/libbson-1.22.2

Or alternatively:

emerge --autounmask-write -a =dev-libs/libbson-1.22.2

Package Information

Description:
Library routines related to building,parsing and iterating BSON documents
Homepage:
https://github.com/mongodb/mongo-c-driver/tree/master/src/libbson
License:
Apache-2.0

Ebuild Details

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

EAPI=8

inherit cmake

DESCRIPTION="Library routines related to building,parsing and iterating BSON documents"
HOMEPAGE="https://github.com/mongodb/mongo-c-driver/tree/master/src/libbson"
SRC_URI="https://github.com/mongodb/mongo-c-driver/releases/download/${PV}/mongo-c-driver-${PV}.tar.gz"

S="${WORKDIR}/mongo-c-driver-${PV}"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ppc ~riscv ~sparc ~x86"
IUSE="examples static-libs"

DEPEND="dev-python/sphinx"

PATCHES=(
	"${FILESDIR}/${PN}-1.14.0-no-docs.patch"
)

src_configure() {
	local mycmakeargs=(
		-DENABLE_BSON=ON
		-DENABLE_EXAMPLES=OFF
		-DENABLE_MAN_PAGES=ON
		-DENABLE_MONGOC=OFF
		-DENABLE_TESTS=OFF
		-DENABLE_STATIC="$(usex static-libs ON OFF)"
		-DENABLE_UNINSTALL=OFF
	)

	cmake_src_configure
}

src_install() {
	if use examples; then
		docinto examples
		dodoc src/libbson/examples/*.c
	fi

	cmake_src_install
}

USE Flags

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

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

dev-python/sphinx

Manifest for 1.22.2

Type File Size Source URLs
DIST mongo-c-driver-1.22.2.tar.gz 7452153 bytes https://github.com/mongodb/mongo-c-driver/releases/download/1.22.2/mongo-c-driver-1.22.2.tar.gz