mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Part-of: https://github.com/gentoo/gentoo/pull/44287 Closes: https://github.com/gentoo/gentoo/pull/44287 Signed-off-by: Sam James <sam@gentoo.org>
48 lines
1.0 KiB
Bash
48 lines
1.0 KiB
Bash
# 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
|
|
}
|