# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="1" inherit eutils toolchain-funcs qt4 DESCRIPTION="Voice chat software for gaming written in Qt4" HOMEPAGE="http://mumble.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="alsa dbus debug oss portaudio pulseaudio texttospeech" RDEPEND=">=media-libs/speex-1.2_beta3_p2 dev-libs/boost x11-libs/libXevie || ( ( x11-libs/qt-core:4 x11-libs/qt-gui:4 x11-libs/qt-opengl:4 x11-libs/qt-sql:4 dbus? ( x11-libs/qt-dbus:4 ) ) ( =x11-libs/qt-4.3*:4 ) ) alsa? ( media-libs/alsa-lib ) dbus? ( sys-apps/dbus ) portaudio? ( media-libs/portaudio ) pulseaudio? ( media-sound/pulseaudio ) texttospeech? ( app-accessibility/speech-dispatcher )" DEPEND="${DEPEND} >=sys-devel/gcc-3.4" pkg_setup() { echo local fail="no" if has_version "x11-libs/qt-core:4"; then # >=qt-4.4 checks if ! built_with_use x11-libs/qt-core ssl; then ewarn "You need to build qt-core with the ssl use-flag to enable it for ${PN}." fail="yes" fi if ! built_with_use x11-libs/qt-sql sqlite; then ewarn "You need to build qt-sql with the sqlite use-flags to enable it for ${PN}." fail="yes" fi if use dbus && ! built_with_use x11-libs/qt-gui dbus; then ewarn "You need to build qt-gui with the dbus use-flag to enable it for ${PN}." fail="yes" fi if use debug; then if ! built_with_use x11-libs/qt-core debug; then ewarn "qt-core has not been built with debug use-flag enabled." ewarn "This might compromise the debugging of ${PN}." fi if ! built_with_use x11-libs/qt-opengl debug; then ewarn "qt-opengl has not been built with debug use-flag enabled." ewarn "This might compromise the debugging of ${PN}." fi if ! built_with_use x11-libs/qt-sql debug; then ewarn "qt-sql has not been built with debug use-flag enabled." ewarn "This might compromise the debugging of ${PN}." fi if use dbus && ! built_with_use x11-libs/qt-dbus debug; then ewarn "qt-dbus has not been built with debug use-flag enabled." ewarn "This might compromise the debugging of ${PN}." fi fi else #