diff options
Diffstat (limited to 'dev-libs/re2')
-rw-r--r-- | dev-libs/re2/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/re2/re2-0.2022.06.01.ebuild | 52 |
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-libs/re2/Manifest b/dev-libs/re2/Manifest index b4888526ff60..9d21493e49d7 100644 --- a/dev-libs/re2/Manifest +++ b/dev-libs/re2/Manifest @@ -1,5 +1,7 @@ DIST re2-2021-11-01.tar.gz 408934 BLAKE2B 31662b1e9cdfec67347cbe146763a29cc8970683d545965e649a5f54ac318c40cd6daf553b6098fae7024a944f73914641b05970f1274511fac6766abe6b9130 SHA512 9ea04638b7a8667fa9a9d9894c543417c86dde21a93bd4508ae8a43fdd21384092866a3f55e93249942f36488c165e93bee18c61bab3cf138a920654563b8122 DIST re2-2022-04-01.tar.gz 380861 BLAKE2B ebb9ac6754382dc3a2b4c6ebab994678d364b83fc433e8c7b3b8ca8733503da41b37b796081cc24120801bdda8e69fbf111ccb9ddca51808129c65c622738e61 SHA512 fc3d7cc1ee6bd771719845566d83ffc8c4e19d838748e842a1e19c7564473c9a0a061bebb3966ffa82de6515346f9bbddc2d94ceb3de89233f58826774bd7ce7 +DIST re2-2022-06-01.tar.gz 381032 BLAKE2B a4cf937e0341102a3151cd1741d51cae1bdd8ab589dcd4c9ee2f51ca43b325f7604fd5e6ae85db8ddd8fcca615ade6817a45664a037baf9cd14023ae4c4a46ac SHA512 f3d5f2a3aa5eda74bc8f434d7b000eed8e107c894307a889466a4cb16a15b352a0332e10d80ed603c9e2e38bbcbdf11f15b6953cbdf461cc9fb0560e89a8ceb8 EBUILD re2-0.2021.11.01.ebuild 1352 BLAKE2B 4ad2554b45cee9027bb7fbf9ee731ed1e8b20648613a0a980a260e60c408edeee71208c7e91d3901fc7171bdfb59eb6933b1632c0ceb48bcf0441597706bee43 SHA512 f174c10a29fb1952841a7bd30ba28d03a13fb07423d5a7343c90b04d1b4027ab6c51a57541cb0f5fab24e75c13085362ca77256ba8e47d5f4fab1680862f62d2 EBUILD re2-0.2022.04.01.ebuild 1356 BLAKE2B cdf5159b4c76e967b204b39a882ce62c217d653b36e1bafac6ff5611817d99b0fe567014efbc347ca1f5d8e987f91555044775ace99b2128f577424cc0bf2a74 SHA512 4db1e770dec298a128b00ab8b6dc42c219a33aef680c3c5ca2af26cd18b02a140ec591d3fb11769eeaa0ef337f88685d1f6edd3873901a51a60b8831edce0f4b +EBUILD re2-0.2022.06.01.ebuild 1356 BLAKE2B cdf5159b4c76e967b204b39a882ce62c217d653b36e1bafac6ff5611817d99b0fe567014efbc347ca1f5d8e987f91555044775ace99b2128f577424cc0bf2a74 SHA512 4db1e770dec298a128b00ab8b6dc42c219a33aef680c3c5ca2af26cd18b02a140ec591d3fb11769eeaa0ef337f88685d1f6edd3873901a51a60b8831edce0f4b MISC metadata.xml 486 BLAKE2B d99b0956f406a1e5fbfaf9a8516aaa86c328829bbfd6b4c3cfc2e925d2862e08dd31cebb730c957ea38a9b5aa84a3010ddd51760e2db8385f9b5d608b40b4d37 SHA512 e882f04350157da3e0ad7438f2c6a340853f6b589996041931f6686860d61c861e003692f5df616282e498c18266ded4803fd63760c2457dfbd04ca1b5d93391 diff --git a/dev-libs/re2/re2-0.2022.06.01.ebuild b/dev-libs/re2/re2-0.2022.06.01.ebuild new file mode 100644 index 000000000000..c566acee7cdd --- /dev/null +++ b/dev-libs/re2/re2-0.2022.06.01.ebuild @@ -0,0 +1,52 @@ +# Copyright 2012-2022 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" + +LICENSE="BSD" +# NOTE: Always run libre2 through abi-compliance-checker! +# https://abi-laboratory.pro/tracker/timeline/re2/ +SONAME="9" +SLOT="0/${SONAME}" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="icu" + +BDEPEND="icu? ( virtual/pkgconfig )" +DEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/re2-${RE2_VER}" + +DOCS=( AUTHORS CONTRIBUTORS 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 +} + +multilib_src_install() { + emake SONAME="${SONAME}" DESTDIR="${D}" prefix="${EPREFIX}/usr" libdir="\$(exec_prefix)/$(get_libdir)" shared-install +} |