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
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"
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
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
}