summaryrefslogtreecommitdiff
path: root/net-im/utox
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/utox')
-rw-r--r--net-im/utox/metadata.xml4
-rw-r--r--net-im/utox/utox-9999.ebuild18
2 files changed, 17 insertions, 5 deletions
diff --git a/net-im/utox/metadata.xml b/net-im/utox/metadata.xml
index cc3fe249..8c7121dd 100644
--- a/net-im/utox/metadata.xml
+++ b/net-im/utox/metadata.xml
@@ -4,4 +4,8 @@
<maintainer>
<email>maintainer-wanted@gentoo.org</email>
</maintainer>
+ <use>
+ <flag name="dbus">Adds dbus support for desktop notifications</flag>
+ <flag name="filter_audio">Adds support for filtering audio input</flag>
+ </use>
</pkgmetadata>
diff --git a/net-im/utox/utox-9999.ebuild b/net-im/utox/utox-9999.ebuild
index 41676f8e..77c583a8 100644
--- a/net-im/utox/utox-9999.ebuild
+++ b/net-im/utox/utox-9999.ebuild
@@ -1,22 +1,23 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
-inherit fdo-mime gnome2-utils toolchain-funcs git-2
+inherit eutils fdo-mime git-2 gnome2-utils toolchain-funcs
DESCRIPTION="Lightweight Tox client"
-HOMEPAGE="https://github.com/notsecure/uTox.git"
+HOMEPAGE="https://github.com/notsecure/uTox"
EGIT_REPO_URI="git://github.com/notsecure/uTox.git
https://github.com/notsecure/uTox.git"
LICENSE="GPL-3"
SLOT="0"
-IUSE="+dbus"
+IUSE="+dbus +filter_audio"
RDEPEND="net-libs/tox[av]
media-libs/freetype
+ filter_audio? ( media-libs/libfilteraudio )
media-libs/libv4l
media-libs/libvpx
media-libs/openal
@@ -31,6 +32,10 @@ src_prepare() {
}
src_configure() {
+ if use filter_audio && [ "${PROFILE_IS_HARDENED}" = 1 ]; then
+ ewarn "Building µTox with support for filter_audio using hardened profile results in"
+ ewarn "crash upon start. For details, see https://github.com/notsecure/uTox/issues/844"
+ fi
# respect CFLAGS
sed -i \
-e '/CFLAGS/s# -g ##' \
@@ -38,7 +43,10 @@ src_configure() {
}
src_compile() {
- emake CC="$(tc-getCC)" DBUS=$(usex dbus "1" "0")
+ emake \
+ CC="$(tc-getCC)" \
+ DBUS=$(usex dbus "1" "0") \
+ FILTER_AUDIO=$(usex filter_audio "1" "0")
}
src_install() {