1 |
commit: 0714d0e354319b924c14e95fd7db0780bf09550a |
2 |
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org> |
3 |
AuthorDate: Tue Nov 3 00:00:00 2020 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 3 20:19:57 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0714d0e3 |
7 |
|
8 |
dev-libs/re2: Version bump (0.2020.11.01). |
9 |
|
10 |
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org> |
11 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
12 |
|
13 |
dev-libs/re2/Manifest | 1 + |
14 |
dev-libs/re2/re2-0.2020.11.01.ebuild | 52 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 53 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/re2/Manifest b/dev-libs/re2/Manifest |
18 |
index bd7e0b0e7ad..e3dd8f55a17 100644 |
19 |
--- a/dev-libs/re2/Manifest |
20 |
+++ b/dev-libs/re2/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST re2-2020-08-01.tar.gz 404076 BLAKE2B 063c3e78cf4983d214309a93a234d864d5ad3acc63ca40befb0b78604ea1406676eb85c34489f3baf74afc0f05ea46482bd7400eb485cd1951feaf4c1429b21c SHA512 1ae261155a1eb96606788eb736faa4dc3240d85f47e3b4c412a4f85f7e4cc69f7c7cbab98397aaf725def1cbc9c5da2c679cfb5573a442d60897740766ae2967 |
23 |
DIST re2-2020-10-01.tar.gz 403344 BLAKE2B 163d44991dc80dc04871bc53c64d4eec9f9e8db36b057a44eba3b1f033f0b130d7fccf4ba8aec33cc515ab5b11bd4f5b0343b4381758e8d9446c5017f1f04d14 SHA512 cd620878ffa6d4e47f1583f27a179f6520fc1226554bd7c0e104d3d45b2bee70873c0d661e87eb4a9d912b58f86f115766c35d08e124f5f67ddcc3b50535f726 |
24 |
+DIST re2-2020-11-01.tar.gz 402756 BLAKE2B 4c5bb5d4859f5b822408483a90a37b4f7e18d3ee81ecfe52563b091c0594dc32343257521c53267ff0c4b62a81a58b2231b628915afd94d368aebf13b965921e SHA512 167f21ec5a94640820cc1e2e9f4a4d3819a5e70011d0f8afb3fec3b2f66e21688196cedc66ce785158e49d1a0cb34b5f9ae68729e602e77d1077eadcbca7d7fe |
25 |
|
26 |
diff --git a/dev-libs/re2/re2-0.2020.11.01.ebuild b/dev-libs/re2/re2-0.2020.11.01.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..55f22b8e2cd |
29 |
--- /dev/null |
30 |
+++ b/dev-libs/re2/re2-0.2020.11.01.ebuild |
31 |
@@ -0,0 +1,52 @@ |
32 |
+# Copyright 2012-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit multilib-minimal toolchain-funcs |
38 |
+ |
39 |
+# Different date format used upstream. |
40 |
+RE2_VER=${PV#0.} |
41 |
+RE2_VER=${RE2_VER//./-} |
42 |
+ |
43 |
+DESCRIPTION="An efficient, principled regular expression library" |
44 |
+HOMEPAGE="https://github.com/google/re2" |
45 |
+SRC_URI="https://github.com/google/re2/archive/${RE2_VER}.tar.gz -> re2-${RE2_VER}.tar.gz" |
46 |
+ |
47 |
+LICENSE="BSD" |
48 |
+# NOTE: Always run libre2 through abi-compliance-checker! |
49 |
+# https://abi-laboratory.pro/tracker/timeline/re2/ |
50 |
+SONAME="9" |
51 |
+SLOT="0/${SONAME}" |
52 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" |
53 |
+IUSE="icu" |
54 |
+ |
55 |
+BDEPEND="icu? ( virtual/pkgconfig )" |
56 |
+DEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )" |
57 |
+RDEPEND="${DEPEND}" |
58 |
+ |
59 |
+S="${WORKDIR}/re2-${RE2_VER}" |
60 |
+ |
61 |
+DOCS=( AUTHORS CONTRIBUTORS README doc/syntax.txt ) |
62 |
+HTML_DOCS=( doc/syntax.html ) |
63 |
+ |
64 |
+src_prepare() { |
65 |
+ default |
66 |
+ grep -q "^SONAME=${SONAME}\$" Makefile || die "SONAME mismatch" |
67 |
+ if use icu; then |
68 |
+ sed -i -e 's:^# \(\(CC\|LD\)ICU=.*\):\1:' Makefile || die |
69 |
+ fi |
70 |
+ multilib_copy_sources |
71 |
+} |
72 |
+ |
73 |
+src_configure() { |
74 |
+ tc-export AR CXX |
75 |
+} |
76 |
+ |
77 |
+multilib_src_compile() { |
78 |
+ emake SONAME="${SONAME}" shared |
79 |
+} |
80 |
+ |
81 |
+multilib_src_install() { |
82 |
+ emake SONAME="${SONAME}" DESTDIR="${D}" prefix="${EPREFIX}/usr" libdir="\$(exec_prefix)/$(get_libdir)" shared-install |
83 |
+} |