diff options
author | 2021-06-04 02:00:00 +0000 | |
---|---|---|
committer | 2021-06-04 15:48:08 -0400 | |
commit | 9e8b3a599faec5dc251afe4ed62b2866e6b3f13a (patch) | |
tree | 77a2a10a3ee9cc8678db1b89e926f3a2ec837d6d /dev-libs/re2/re2-0.2021.06.01.ebuild | |
parent | app-i18n/librime: Revert "workaround dev-cpp/glog dependency on sparc". (diff) | |
download | gentoo-9e8b3a599faec5dc251afe4ed62b2866e6b3f13a.tar.gz gentoo-9e8b3a599faec5dc251afe4ed62b2866e6b3f13a.tar.bz2 gentoo-9e8b3a599faec5dc251afe4ed62b2866e6b3f13a.zip |
dev-libs/re2: Version bump (0.2021.06.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/re2-0.2021.06.01.ebuild')
-rw-r--r-- | dev-libs/re2/re2-0.2021.06.01.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-libs/re2/re2-0.2021.06.01.ebuild b/dev-libs/re2/re2-0.2021.06.01.ebuild new file mode 100644 index 000000000000..383b552b2a85 --- /dev/null +++ b/dev-libs/re2/re2-0.2021.06.01.ebuild @@ -0,0 +1,52 @@ +# Copyright 2012-2021 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="9" +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 +} |