blob: 0b285e92cbbf9bcd6b3a3f2d47fd0e821bc4c380 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# 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
}
|