aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
}