1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils unpacker
8 DESCRIPTION="TeamSpeak Client - Voice Communication Software"
9 HOMEPAGE="http://www.teamspeak.com/"
11 amd64? ( http://ftp.4players.de/pub/hosted/ts3/releases/${PV}/TeamSpeak3-Client-linux_amd64-${PV/_/-}.run )
12 x86? ( http://ftp.4players.de/pub/hosted/ts3/releases/${PV}/TeamSpeak3-Client-linux_x86-${PV/_/-}.run )"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="alsa pulseaudio"
19 REQUIRED_USE="|| ( alsa pulseaudio )"
22 dev-libs/quazip[-qt4,qt5]
24 >=dev-qt/qtgui-5.5:5[accessibility]
25 >=dev-qt/qtnetwork-5.5:5
26 >=dev-qt/qtsql-5.5:5[sqlite]
27 >=dev-qt/qtwidgets-5.5:5
30 alsa? ( media-libs/alsa-lib )
31 pulseaudio? ( media-sound/pulseaudio )"
33 RESTRICT="mirror strip"
38 elog "Please download ${A}"
39 elog "from ${HOMEPAGE}?page=downloads and place this"
40 elog "file in ${DISTDIR}"
44 # Remove the qt-libraries as they just cause trouble with the system's Qt, see bug #328807.
45 rm libQt* || die "Couldn't remove bundled Qt libraries."
47 rm -r platforms sqldrivers qt.conf || die "Couldn't remove bundle Qt files."
49 # Remove unwanted soundbackends.
51 rm soundbackends/libalsa* || die
54 if ! use pulseaudio ; then
55 rm soundbackends/libpulseaudio* || die
59 rm libquazip.so || die
61 # Rename the tsclient to its shorter version, required by the teamspeak3 script we install.
62 mv ts3client_linux_* ts3client || die "Couldn't rename ts3client to its shorter version."
66 insinto /opt/teamspeak3-client
69 fperms +x /opt/teamspeak3-client/ts3client
71 dobin "${FILESDIR}/teamspeak3"
73 make_desktop_entry teamspeak3 TeamSpeak3 \
74 "/opt/teamspeak3-client/pluginsdk/docs/client_html/images/logo.png" \