summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2016-12-27 22:53:52 -0500
committerMike Gilbert <floppym@gentoo.org>2016-12-27 22:54:23 -0500
commitbac5b508817eba3b6f91c7340cc1db777ff6ee84 (patch)
treec9c990e722a5b27635f92bd90ffa80bae0a6d4a4 /dev-libs/re2
parentsys-apps/openrc: add selinux? dep on sysvinit (diff)
downloadgentoo-bac5b508817eba3b6f91c7340cc1db777ff6ee84.tar.gz
gentoo-bac5b508817eba3b6f91c7340cc1db777ff6ee84.tar.bz2
gentoo-bac5b508817eba3b6f91c7340cc1db777ff6ee84.zip
dev-libs/re2: override SONAME
Upstream does not seem to maintain any sort of binary compatibility, so implement our own naming scheme. Bug: https://bugs.gentoo.org/603824 Package-Manager: Portage-2.3.3_p9, Repoman-2.3.1_p2
Diffstat (limited to 'dev-libs/re2')
-rw-r--r--dev-libs/re2/re2-0.2016.11.01-r1.ebuild (renamed from dev-libs/re2/re2-0.2016.11.01.ebuild)10
1 files changed, 8 insertions, 2 deletions
diff --git a/dev-libs/re2/re2-0.2016.11.01.ebuild b/dev-libs/re2/re2-0.2016.11.01-r1.ebuild
index 49602550dc4b..c9e58b535e11 100644
--- a/dev-libs/re2/re2-0.2016.11.01.ebuild
+++ b/dev-libs/re2/re2-0.2016.11.01-r1.ebuild
@@ -17,7 +17,8 @@ SRC_URI="https://github.com/google/re2/archive/${RE2_VER}.tar.gz -> re2-${RE2_VE
LICENSE="BSD"
# NOTE: Always run libre2 through abi-compliance-checker!
# https://abi-laboratory.pro/tracker/timeline/re2/
-SLOT="0/0.2016.11.01"
+SONAME="gentoo-2016-09-01"
+SLOT="0/${SONAME}"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE="icu"
@@ -32,6 +33,7 @@ HTML_DOCS=( doc/syntax.html )
src_prepare() {
default
+ grep -qv '^SONAME=0$' Makefile || die "Check SONAME in Makefile"
if use icu; then
sed -i -e 's:^# \(\(CC\|LD\)ICU=.*\):\1:' Makefile || die
fi
@@ -42,6 +44,10 @@ src_configure() {
tc-export AR CXX NM
}
+multilib_src_compile() {
+ emake SONAME="${SONAME}"
+}
+
multilib_src_install() {
- emake DESTDIR="${D}" prefix="${EPREFIX}/usr" libdir="\$(exec_prefix)/$(get_libdir)" install
+ emake SONAME="${SONAME}" DESTDIR="${D}" prefix="${EPREFIX}/usr" libdir="\$(exec_prefix)/$(get_libdir)" install
}