diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> | 2020-10-20 00:00:00 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2020-10-20 16:35:49 -0400 |
commit | b608f892b1eb39470904f269978a8dbf6343b4a6 (patch) | |
tree | b2373183fea853ad5bff3abd2e598be9d517b4b1 /dev-libs/re2 | |
parent | kde-plasma/xembed-sni-proxy: drop 5.20.0* (diff) | |
download | gentoo-b608f892b1eb39470904f269978a8dbf6343b4a6.tar.gz gentoo-b608f892b1eb39470904f269978a8dbf6343b4a6.tar.bz2 gentoo-b608f892b1eb39470904f269978a8dbf6343b4a6.zip |
dev-libs/re2: Version bump (0.2020.10.01).
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'dev-libs/re2')
-rw-r--r-- | dev-libs/re2/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/re2/re2-0.2020.10.01.ebuild | 52 |
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-libs/re2/Manifest b/dev-libs/re2/Manifest index 97571d043d09..bd7e0b0e7ad8 100644 --- a/dev-libs/re2/Manifest +++ b/dev-libs/re2/Manifest @@ -1 +1,2 @@ DIST re2-2020-08-01.tar.gz 404076 BLAKE2B 063c3e78cf4983d214309a93a234d864d5ad3acc63ca40befb0b78604ea1406676eb85c34489f3baf74afc0f05ea46482bd7400eb485cd1951feaf4c1429b21c SHA512 1ae261155a1eb96606788eb736faa4dc3240d85f47e3b4c412a4f85f7e4cc69f7c7cbab98397aaf725def1cbc9c5da2c679cfb5573a442d60897740766ae2967 +DIST re2-2020-10-01.tar.gz 403344 BLAKE2B 163d44991dc80dc04871bc53c64d4eec9f9e8db36b057a44eba3b1f033f0b130d7fccf4ba8aec33cc515ab5b11bd4f5b0343b4381758e8d9446c5017f1f04d14 SHA512 cd620878ffa6d4e47f1583f27a179f6520fc1226554bd7c0e104d3d45b2bee70873c0d661e87eb4a9d912b58f86f115766c35d08e124f5f67ddcc3b50535f726 diff --git a/dev-libs/re2/re2-0.2020.10.01.ebuild b/dev-libs/re2/re2-0.2020.10.01.ebuild new file mode 100644 index 000000000000..9b7e0bf86ea7 --- /dev/null +++ b/dev-libs/re2/re2-0.2020.10.01.ebuild @@ -0,0 +1,52 @@ +# Copyright 2012-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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="8" +SLOT="0/${SONAME}" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~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 +} |