mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-libs/re2: add 0.2024.07.02
Release: - https://github.com/google/re2/releases/tag/2024-07-02 Changes in comparison to 0.2022.12.01: - add USE flags * benchmark * test * test-full - drop keywords that abseil-cpp doesn't have * ~hppa * ~ia64 * ~ppc * ~s390 - skip * removed docs * unrelated tests Signed-off-by: Aliaksei Urbanski <aliaksei.urbanski@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/37548 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
committed by
Joonas Niilola
parent
6fd2eebb82
commit
1f5f896f27
@@ -1,2 +1,3 @@
|
||||
DIST re2-2022-06-01.tar.gz 381032 BLAKE2B a4cf937e0341102a3151cd1741d51cae1bdd8ab589dcd4c9ee2f51ca43b325f7604fd5e6ae85db8ddd8fcca615ade6817a45664a037baf9cd14023ae4c4a46ac SHA512 f3d5f2a3aa5eda74bc8f434d7b000eed8e107c894307a889466a4cb16a15b352a0332e10d80ed603c9e2e38bbcbdf11f15b6953cbdf461cc9fb0560e89a8ceb8
|
||||
DIST re2-2022-12-01.tar.gz 382554 BLAKE2B f3b3f00e4a991db90695510a8820493c42605ce91278c3e7e5de9f0736b8d7b627921672905d4404a252425f619c8d27f81b05f4d69f33d4c23225ac0c44fe2e SHA512 783f856e6556ce60f0e9a15b2366cb4df21ca019cdc85ef7ad47a11d0345935300dede5da61892bdc77d2642da82ddc81b6670049eb87f357a64a9c684140ec9
|
||||
DIST re2-2024-07-02.tar.gz 390672 BLAKE2B 86b915dc0b8e68b35fd0ed20bedd5e9c5781826442f332d115166a9a70f34b7e9b4ef60206264035b82652230d42a3c6aa2b91a774fca3b1e415ce65ace2ae96 SHA512 3776383355ccfdec85e0cdfb3ce980c6ecb3c336d603dd34c0a547c7c06a6243947a13cb352372335edac12d4f28cf1b7a51d034f5b34db3e46cbcac5e3f7479
|
||||
|
||||
@@ -9,7 +9,12 @@
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="benchmark">Build a benchmark binary, install it as re2-bench</flag>
|
||||
<flag name="test-full">Run additional, quite slow tests</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/google/re2/issues</bugs-to>
|
||||
<remote-id type="github">google/re2</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
||||
77
dev-libs/re2/re2-0.2024.07.02.ebuild
Normal file
77
dev-libs/re2/re2-0.2024.07.02.ebuild
Normal file
@@ -0,0 +1,77 @@
|
||||
# Copyright 2012-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit multilib-minimal toolchain-funcs
|
||||
|
||||
# Different date format used upstream.
|
||||
RE2_VER=${PV#0.}
|
||||
RE2_VER=${RE2_VER//./-}
|
||||
|
||||
DESCRIPTION="An efficient, principled regular expression library"
|
||||
HOMEPAGE="https://github.com/google/re2"
|
||||
SRC_URI="https://github.com/google/re2/archive/${RE2_VER}.tar.gz -> re2-${RE2_VER}.tar.gz"
|
||||
S="${WORKDIR}/re2-${RE2_VER}"
|
||||
|
||||
LICENSE="BSD"
|
||||
# NOTE: Always run libre2 through abi-compliance-checker!
|
||||
# https://abi-laboratory.pro/tracker/timeline/re2/
|
||||
SONAME="11"
|
||||
SLOT="0/${SONAME}"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="benchmark icu test test-full"
|
||||
REQUIRED_USE="
|
||||
sparc? ( !benchmark )
|
||||
test-full? ( test )
|
||||
"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="icu? ( virtual/pkgconfig )"
|
||||
RDEPEND="
|
||||
!sparc? ( benchmark? ( dev-cpp/benchmark ) )
|
||||
icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
|
||||
dev-cpp/abseil-cpp:=
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
test? ( dev-cpp/gtest[${MULTILIB_USEDEP}] )
|
||||
"
|
||||
|
||||
DOCS=( README doc/syntax.txt )
|
||||
HTML_DOCS=( doc/syntax.html )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
grep -q "^SONAME=${SONAME}\$" Makefile || die "SONAME mismatch"
|
||||
if use icu; then
|
||||
sed -i -e 's:^# \(\(CC\|LD\)ICU=.*\):\1:' Makefile || die
|
||||
fi
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export AR CXX
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake SONAME="${SONAME}" shared
|
||||
if multilib_is_native_abi && use benchmark; then
|
||||
emake benchmark
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
if use test-full; then
|
||||
emake shared-bigtest
|
||||
else
|
||||
emake shared-test
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake SONAME="${SONAME}" DESTDIR="${D}" prefix="${EPREFIX}/usr" libdir="\$(exec_prefix)/$(get_libdir)" shared-install
|
||||
if multilib_is_native_abi && use benchmark; then
|
||||
newbin obj/test/regexp_benchmark re2-bench
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user