blob: 3af1507ad38364acadd84821931753064f8e3a95 (
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
|
# Copyright 2012-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake-multilib
MY_PV=${PV//./-}
DESCRIPTION="An efficient, principled regular expression library"
HOMEPAGE="https://github.com/google/re2"
SRC_URI="https://github.com/google/re2/releases/download/${MY_PV}/${PN}-${MY_PV}.tar.gz"
S="${WORKDIR}/${PN}-${MY_PV}"
LICENSE="BSD"
# NOTE: Follow SONAME variable in CMakeLists.txt
SONAME="11"
SLOT="0/${SONAME}"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
IUSE="icu test"
RESTRICT="!test? ( test )"
BDEPEND="
virtual/pkgconfig
test? (
dev-cpp/gtest[${MULTILIB_USEDEP}]
)
"
RDEPEND="
>=dev-cpp/abseil-cpp-20250512.1:=
icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
"
DEPEND="${RDEPEND}"
DOCS=( README.md doc/syntax.txt )
HTML_DOCS=( doc/syntax.html )
multilib_src_configure() {
local mycmakeargs=(
-DBUILD_SHARED_LIBS=ON
-DRE2_BENCHMARK=OFF
-DRE2_BUILD_TESTING=OFF
-DRE2_TEST=$(usex test)
-DRE2_USE_ICU=$(usex icu)
)
cmake_src_configure
}
|