aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2019-03-15 16:48:10 +0100
committerLars Wendler <polynomial-c@gentoo.org>2019-04-02 13:14:16 +0200
commit596f3b8629ad095d4203f70c9c86f9d6d13d9a68 (patch)
tree7e0f4af4e0efde3b1dae1c1310c4e024dbc70f6a /x11-plugins/purple-matrix
parentx11-plugins/purple-matrix: Prepare for release tarballs (diff)
downloadmatrix-596f3b8629ad095d4203f70c9c86f9d6d13d9a68.tar.gz
matrix-596f3b8629ad095d4203f70c9c86f9d6d13d9a68.tar.bz2
matrix-596f3b8629ad095d4203f70c9c86f9d6d13d9a68.zip
x11-plugins/purple-matrix: Build improvements
- Use ABI-compliant CC and AR - Don't add -Wall -Werror and -O0 to CFLAGS
Diffstat (limited to 'x11-plugins/purple-matrix')
-rw-r--r--x11-plugins/purple-matrix/purple-matrix-9999.ebuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/x11-plugins/purple-matrix/purple-matrix-9999.ebuild b/x11-plugins/purple-matrix/purple-matrix-9999.ebuild
index 273ef31..2bd9987 100644
--- a/x11-plugins/purple-matrix/purple-matrix-9999.ebuild
+++ b/x11-plugins/purple-matrix/purple-matrix-9999.ebuild
@@ -3,6 +3,8 @@
EAPI=7
+inherit toolchain-funcs
+
DESCRIPTION="Libpurple protocol plugin for matrix"
HOMEPAGE="https://github.com/matrix-org/purple-matrix"
if [[ "${PV}" == 9999 ]] ; then
@@ -33,7 +35,12 @@ BDEPEND="
virtual/pkgconfig
"
+src_prepare() {
+ default
+ sed '/^CFLAGS.*-O0/d' -i Makefile.common || die
+}
+
src_compile() {
use olm || export MATRIX_NO_E2E=1
- emake || die "Make failed!"
+ emake CC="$(tc-getCC)" PKG_CONFIG="$(tc-getBUILD_PKG_CONFIG)"
}