aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2019-03-15 16:27:13 +0100
committerLars Wendler <polynomial-c@gentoo.org>2019-04-02 13:14:15 +0200
commit084e3e42a4a894e329a9c8115c3dec664f3bc38b (patch)
tree5cdf726a2125c82e3a3dbbb6d755853f7f7b5b5e /dev-libs
parentdev-libs/olm: Prepare for live ebuild usage (diff)
downloadmatrix-084e3e42a4a894e329a9c8115c3dec664f3bc38b.tar.gz
matrix-084e3e42a4a894e329a9c8115c3dec664f3bc38b.tar.bz2
matrix-084e3e42a4a894e329a9c8115c3dec664f3bc38b.zip
dev-libs/olm: Multiple build improvements
- Removed "-Wall -Werror" - Use correct libdir for installation. Mostly important for 17.1 profiles - Use ABI-compliant CC and AR - Override PREFIX and DESTDIR when calling emake. This way we don't need to replace PREFIX everywhere in the Makefile
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/olm/olm-2.3.0.ebuild15
1 files changed, 14 insertions, 1 deletions
diff --git a/dev-libs/olm/olm-2.3.0.ebuild b/dev-libs/olm/olm-2.3.0.ebuild
index 68ac723..b7fd959 100644
--- a/dev-libs/olm/olm-2.3.0.ebuild
+++ b/dev-libs/olm/olm-2.3.0.ebuild
@@ -3,6 +3,8 @@
EAPI=7
+inherit toolchain-funcs
+
DESCRIPTION="An implementation of the Double Ratchet cryptographic ratchet in C++"
HOMEPAGE="https://git.matrix.org/git/olm/about/"
@@ -20,6 +22,17 @@ IUSE=""
src_prepare() {
default
+ sed \
+ -e '/^LDFLAGS/d' \
+ -e 's@-Wall -Werror@@' \
+ -e "s@\$(PREFIX)/lib@\$(PREFIX)/$(get_libdir)@g" \
+ -i Makefile || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" AR="$(tc-getAR)"
+}
- sed -i 's@$(PREFIX)@/usr@g' Makefile
+src_install() {
+ emake PREFIX="${EPREFIX}/usr" DESTDIR="${D}" install
}