--- /usr/portage/media-sound/teamspeak-client-bin/teamspeak-client-bin-3.0.11.1.ebuild 2013-08-07 22:25:49.000000000 +0200 +++ teamspeak-client-bin-3.0.11.1-r99.ebuild 2013-09-07 12:06:28.871614112 +0200 @@ -13,6 +13,8 @@ SLOT="0" KEYWORDS="~amd64 ~x86" RESTRICT="fetch mirror strip" +IUSE="alsa pulseaudio" + SRC_URI="amd64? ( http://ftp.4players.de/pub/hosted/ts3/releases/${PV}/TeamSpeak3-Client-linux_amd64-${PV/_/-}.run ) x86? ( http://ftp.4players.de/pub/hosted/ts3/releases/${PV}/TeamSpeak3-Client-linux_x86-${PV/_/-}.run )" @@ -20,7 +22,12 @@ RDEPEND="dev-qt/qtcore:4 dev-qt/qtgui:4[accessibility,xinerama] dev-qt/qtsql:4 sys-libs/glibc - sys-libs/zlib" + sys-libs/zlib + + alsa? ( media-libs/alsa-lib ) + pulseaudio? ( media-sound/pulseaudio )" + +REQUIRED_USE="|| ( alsa pulseaudio )" S="${WORKDIR}" @@ -38,6 +45,10 @@ src_prepare() { # Remove the qt-libraries as they just cause trouble with the system's Qt, see bug #328807. rm libQt* || die "Couldn't remove bundled Qt libraries." + # remove unwanted soundbackends + if ! use alsa ; then rm soundbackends/libalsa* ; fi + if ! use pulseaudio ; then rm soundbackends/libpulseaudio* ; fi + # Rename the tsclient to its shorter version, required by the teamspeak3 script we install. mv ts3client_linux_* ts3client || die "Couldn't rename ts3client to its shorter version." }