# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/teamspeak-client-bin/teamspeak-client-bin-3.0.9.2.ebuild,v 1.3 2013/02/13 22:30:36 tomwij Exp $ EAPI=5 inherit eutils unpacker DESCRIPTION="TeamSpeak Client - Voice Communication Software" HOMEPAGE="http://www.TeamSpeak.com/" LICENSE="teamspeak3" SLOT="0" KEYWORDS="~amd64 ~x86" RESTRICT="mirror strip" 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 )" RDEPEND="x11-libs/qt-gui:4[accessibility,xinerama] x11-libs/qt-sql:4" S="${WORKDIR}" 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." # 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." } src_install() { dodir /opt/teamspeak3-client insinto /opt/teamspeak3-client doins -r * fperms +x /opt/teamspeak3-client/ts3client exeinto /usr/bin doexe "${FILESDIR}/teamspeak3" make_desktop_entry teamspeak3 TeamSpeak3 \ "/opt/teamspeak3-client/pluginsdk/docs/client_html/images/logo.png" \ Network }