From b8c7370a682e4e29cda623222d17a790c01c3642 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 7 Aug 2024 12:37:21 +0100 Subject: gentoo auto-resync : 07:08:2024 - 12:37:20 --- dev-libs/re2/Manifest | 4 +- dev-libs/re2/metadata.xml | 14 +++++- dev-libs/re2/re2-0.2024.07.02-r1.ebuild | 76 +++++++++++++++++++++++++++++++++ 3 files changed, 92 insertions(+), 2 deletions(-) create mode 100644 dev-libs/re2/re2-0.2024.07.02-r1.ebuild (limited to 'dev-libs/re2') diff --git a/dev-libs/re2/Manifest b/dev-libs/re2/Manifest index c6f53923040b..43b82ddccb30 100644 --- a/dev-libs/re2/Manifest +++ b/dev-libs/re2/Manifest @@ -1,5 +1,7 @@ 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 EBUILD re2-0.2022.06.01.ebuild 1359 BLAKE2B af48e1e56a5487555f37b856ef8a8ef162e1a5cd3dcaf548a51bd85cd1e3297a008a59273cd45456c02de3b0d168dd45b2001c2702be4d23ba95a42113cb5ae8 SHA512 6cbdaa2909149f7e0a503d6f67a32d23e6036df2f253bd82959a06f1031298ca5ff1659f43af81f4ca211b41a355c4f30625afa651241a0c99d095c8ba4b0f02 EBUILD re2-0.2022.12.01.ebuild 1359 BLAKE2B f08c4dc55dfee1bf06fbbb6c0793c023603668333817dd7fd51cf96961c45b24c58b73211614d507bafe462f4665523d49120d91418270d1c3120d4c4f4d9b34 SHA512 7d97dff11c2c085fde4a39d8c5c53f717e1b2823843ba1a592c616f11e4a06cc82ad69ed2e161f19174d00573e118abc5a39a3d3eeeb74246d53ec6444b7b47a -MISC metadata.xml 243 BLAKE2B b7207580928a1c8ce0280002fbaeaa31f0c181f0f321a6fc9f6bc8c58ea57dc569ddb4dc04486c6f9e8bc76a98ad4320c555257217f506f25815e105ec7a92ce SHA512 e1973942f324c0f93a547457b2fc3ea06531d077d0c92a10f29989576cb63a70a96ae5a70100e08d17e8c55a0812d905b46f06d6b145c095e301942f8622694c +EBUILD re2-0.2024.07.02-r1.ebuild 1797 BLAKE2B 307eee2bf3b461a74b2985b6efd24df4345cfc39190faaa230848771de5e42bc690399056d934443d6d69c4df796ef934d25412e8215fa78ffed76ebefb46227 SHA512 4844c06ad8b8d9b1b63683bd47e9bd8ca00faf7a1e513c45288b93533c1567d69a83b8fb1d47b3f997376217324794415587ad97d11be0ea8865f02c6ed6d911 +MISC metadata.xml 703 BLAKE2B e1b025447de661823b20426ea9ced01a41d1897ce037d3feaad1042f5717b319121ee54a77cbff831fe9c868131c4b1548850fa94d590d990e4c97c4bba8ff25 SHA512 83ed980012d4f0ee055f14d9c64a32a30f83ea685a8822dbc185e1f328a7a04bf54df95dac53c1d5d85dd14ee040a5dd43dac30e671285da75a38ba511f5c009 diff --git a/dev-libs/re2/metadata.xml b/dev-libs/re2/metadata.xml index 3924d20eebc1..4d41c8bd3ab2 100644 --- a/dev-libs/re2/metadata.xml +++ b/dev-libs/re2/metadata.xml @@ -1,8 +1,20 @@ - + + aliaksei.urbanski@gmail.com + Aliaksei Urbanski + + + proxy-maint@gentoo.org + Proxy Maintainers + + + Build a benchmark binary, install it as re2-bench + Run additional, quite slow tests + + https://github.com/google/re2/issues google/re2 diff --git a/dev-libs/re2/re2-0.2024.07.02-r1.ebuild b/dev-libs/re2/re2-0.2024.07.02-r1.ebuild new file mode 100644 index 000000000000..b37f149ffec5 --- /dev/null +++ b/dev-libs/re2/re2-0.2024.07.02-r1.ebuild @@ -0,0 +1,76 @@ +# 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=" + test-full? ( test ) +" +RESTRICT="!test? ( test )" + +BDEPEND="virtual/pkgconfig" +RDEPEND=" + >=dev-cpp/abseil-cpp-20240116.2-r3:= + benchmark? ( dev-cpp/benchmark ) + icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] ) +" +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 +} -- cgit v1.2.3