dev-libs/croaring - 4.7.0 (guru)

Search

Install

Install this version:

emerge -a =dev-libs/croaring-4.7.0

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

autounmask =dev-libs/croaring-4.7.0

Or alternatively:

emerge --autounmask-write -a =dev-libs/croaring-4.7.0

Package Information

Description:
Roaring bitmaps in C (and C++), with SIMD optimizations
Homepage:
https://roaringbitmap.org/
License:
|| ( MIT Apache-2.0 )

Ebuild Details

Version EAPI Keywords Slot
4.7.0 8 ~amd64 0/22
View Raw Ebuild
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="Roaring bitmaps in C (and C++), with SIMD optimizations"
HOMEPAGE="https://roaringbitmap.org/"
SRC_URI="
	https://github.com/RoaringBitmap/CRoaring/archive/refs/tags/v${PV}.tar.gz
		-> ${P}.tar.gz
"

S="${WORKDIR}/CRoaring-${PV}"

LICENSE="|| ( MIT Apache-2.0 )"
SLOT="0/22"
KEYWORDS="~amd64"
IUSE="cpu_flags_arm_neon cpu_flags_x86_avx cpu_flags_x86_avx512f test"

RESTRICT="!test? ( test )"

BDEPEND="
	test? ( >=dev-util/cmocka-2.0 )
"

src_prepare() {
	# Otherwise pyroaring (the only reverse dependency) isn't able to #include
	sed -i 's:I${includedir}:I${includedir}/roaring:' roaring.pc.in

	cmake_src_prepare
}

src_configure() {
	local mycmakeargs=(
		# messes with `-march=native` but oh well
		-DROARING_DISABLE_AVX=$(usex cpu_flags_x86_avx OFF ON)
		-DROARING_DISABLE_NEON=$(usex cpu_flags_arm_neon OFF ON)
		-DROARING_DISABLE_AVX512=$(usex cpu_flags_x86_avx512f OFF ON)
		-DBUILD_SHARED_LIBS=ON
		-DROARING_BUILD_STATIC=OFF
		-DENABLE_ROARING_TESTS=$(usex test)
		-DROARING_USE_CPM=OFF
	)

	cmake_src_configure
}

USE Flags

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

Inherited Eclasses

Dependencies

BDEPEND

	test? ( >=dev-util/cmocka-2.0 )

Manifest for 4.7.0

Type File Size Source URLs
DIST croaring-4.7.0.tar.gz 100787718 bytes https://github.com/RoaringBitmap/CRoaring/archive/refs/tags/v4.7.0.tar.gz