From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/re2/
Date: Mon, 29 Jul 2024 07:33:52 +0000 (UTC) [thread overview]
Message-ID: <1722238428.1f5f896f27086549c33047d1bc48ffac55bd14a4.juippis@gentoo> (raw)
commit: 1f5f896f27086549c33047d1bc48ffac55bd14a4
Author: Aliaksei Urbanski <aliaksei.urbanski <AT> gmail <DOT> com>
AuthorDate: Sat Jul 13 23:20:38 2024 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Jul 29 07:33:48 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f5f896f
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 <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/37548
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
dev-libs/re2/Manifest | 1 +
dev-libs/re2/metadata.xml | 5 +++
dev-libs/re2/re2-0.2024.07.02.ebuild | 77 ++++++++++++++++++++++++++++++++++++
3 files changed, 83 insertions(+)
diff --git a/dev-libs/re2/Manifest b/dev-libs/re2/Manifest
index 8c30ddff49eb..e6c42dac5792 100644
--- a/dev-libs/re2/Manifest
+++ b/dev-libs/re2/Manifest
@@ -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
diff --git a/dev-libs/re2/metadata.xml b/dev-libs/re2/metadata.xml
index fb33372bc4e6..4d41c8bd3ab2 100644
--- a/dev-libs/re2/metadata.xml
+++ b/dev-libs/re2/metadata.xml
@@ -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>
diff --git a/dev-libs/re2/re2-0.2024.07.02.ebuild b/dev-libs/re2/re2-0.2024.07.02.ebuild
new file mode 100644
index 000000000000..69cfb252c064
--- /dev/null
+++ b/dev-libs/re2/re2-0.2024.07.02.ebuild
@@ -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
+}
next reply other threads:[~2024-07-29 7:33 UTC|newest]
Thread overview: 87+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-29 7:33 Joonas Niilola [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-07-30 6:58 [gentoo-commits] repo/gentoo:master commit in: dev-libs/re2/ Patrick Lauer
2024-07-29 7:33 Joonas Niilola
2024-07-29 7:33 Joonas Niilola
2024-01-03 18:52 Arthur Zamarin
2023-08-13 8:16 Stephan Hartmann
2022-12-19 11:06 Stephan Hartmann
2022-12-19 11:06 Stephan Hartmann
2022-11-01 5:21 WANG Xuerui
2022-08-26 10:08 Sam James
2022-08-25 18:25 Arthur Zamarin
2022-08-25 18:23 Arthur Zamarin
2022-06-26 17:54 Stephan Hartmann
2022-04-04 6:22 Stephan Hartmann
2022-03-09 8:59 Jakov Smolić
2021-12-31 2:28 Sam James
2021-12-31 0:46 Sam James
2021-12-31 0:46 Sam James
2021-12-30 20:25 Arthur Zamarin
2021-11-18 22:22 Mike Gilbert
2021-11-18 22:22 Mike Gilbert
2021-07-08 3:53 Sam James
2021-07-05 22:35 Sam James
2021-07-02 4:10 Sam James
2021-07-02 4:09 Sam James
2021-06-29 5:53 Yixun Lan
2021-06-04 19:51 Mike Gilbert
2021-06-04 19:51 Mike Gilbert
2021-05-09 21:48 Sam James
2021-05-09 21:48 Sam James
2021-05-09 21:44 Sam James
2021-05-09 21:42 Sam James
2021-04-02 15:00 Mike Gilbert
2021-03-26 14:38 Mike Gilbert
2020-12-08 19:23 Stephan Hartmann
2020-11-22 3:26 Sam James
2020-11-22 3:26 Sam James
2020-11-19 11:16 Agostino Sarubbo
2020-11-18 23:42 Thomas Deutschmann
2020-11-03 20:20 Mike Gilbert
2020-10-20 20:35 Mike Gilbert
2020-09-24 11:02 Stephan Hartmann
2020-09-24 6:59 Agostino Sarubbo
2020-09-24 6:49 Agostino Sarubbo
2020-09-22 19:33 Sam James
2020-09-22 19:33 Sam James
2020-09-05 2:04 Mike Gilbert
2020-07-17 23:25 Sam James
2020-07-17 7:02 Agostino Sarubbo
2020-07-14 19:05 Mike Gilbert
2020-07-14 19:05 Mike Gilbert
2020-06-13 18:59 Mike Gilbert
2020-06-06 19:31 Mart Raudsepp
2020-06-03 10:27 Agostino Sarubbo
2020-05-24 8:09 Agostino Sarubbo
2020-05-24 7:40 Agostino Sarubbo
2020-05-03 19:57 Mike Gilbert
2020-04-02 19:28 Mike Gilbert
2020-03-21 9:24 Mart Raudsepp
2020-02-07 13:16 Agostino Sarubbo
2020-02-07 12:12 Agostino Sarubbo
2020-02-06 8:10 Agostino Sarubbo
2019-12-29 19:34 Mike Gilbert
2019-12-29 19:34 Mike Gilbert
2019-09-13 17:51 Mike Gilbert
2019-08-25 19:47 Mike Gilbert
2019-04-26 17:51 Anthony G. Basile
2019-01-21 19:40 Sergei Trofimovich
2019-01-04 22:41 Mikle Kolyada
2019-01-01 21:19 Sergei Trofimovich
2018-12-26 20:06 Sergei Trofimovich
2018-12-26 20:04 Sergei Trofimovich
2018-12-26 13:15 Sergei Trofimovich
2018-12-09 23:51 Thomas Deutschmann
2018-12-07 21:26 Richard Freeman
2018-10-03 2:03 Mike Gilbert
2018-06-13 14:36 Mike Gilbert
2018-06-06 14:28 Mike Gilbert
2017-03-27 19:28 Paweł Hajdan
2016-12-28 3:54 Mike Gilbert
2016-12-26 15:24 Mike Gilbert
2016-12-25 18:48 Mike Gilbert
2016-11-24 5:17 Mike Gilbert
2016-10-17 3:56 Mike Gilbert
2016-10-14 10:38 Agostino Sarubbo
2016-10-14 10:37 Agostino Sarubbo
2016-05-09 21:25 Mike Gilbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1722238428.1f5f896f27086549c33047d1bc48ffac55bd14a4.juippis@gentoo \
--to=juippis@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox