# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 MY_PV="${PV/_/-}" inherit desktop toolchain-funcs unpacker xdg DESCRIPTION="A client software for quality voice communication via the internet" HOMEPAGE="https://www.teamspeak.com/" SRC_URI="https://files.teamspeak-services.com/releases/client/${PV}/TeamSpeak3-Client-linux_amd64-${MY_PV}.run" S="${WORKDIR}" LICENSE="teamspeak3 || ( GPL-2 GPL-3 LGPL-3 )" SLOT="3" KEYWORDS="-* amd64" IUSE="+alsa pulseaudio system-libcxx +system-quazip" REQUIRED_USE="|| ( alsa pulseaudio )" RESTRICT="bindist mirror" BDEPEND=">=dev-util/patchelf-0.10" RDEPEND=" dev-libs/glib:2 dev-qt/qtcore:5 dev-qt/qtgui:5[accessibility,dbus,X(-)] dev-qt/qtnetwork:5 dev-qt/qtsql:5[sqlite] dev-qt/qtsvg:5 dev-qt/qtwebchannel:5 dev-qt/qtwebengine:5[geolocation(+),widgets] dev-qt/qtwebsockets:5 dev-qt/qtwidgets:5 alsa? ( media-libs/alsa-lib ) pulseaudio? ( media-libs/libpulse ) system-libcxx? ( llvm-runtimes/libcxx[libcxxabi] ) !system-libcxx? ( sys-libs/libunwind ) system-quazip? ( dev-libs/quazip:0/1[qt5(+)] ) " QA_PREBUILT=" opt/teamspeak3-client/libc++.so.1 opt/teamspeak3-client/libc++abi.so.1 opt/teamspeak3-client/libquazip.so opt/teamspeak3-client/error_report opt/teamspeak3-client/package_inst opt/teamspeak3-client/soundbackends/libalsa_linux_*.so opt/teamspeak3-client/ts3client opt/teamspeak3-client/update " src_prepare() { default if ! use alsa; then rm soundbackends/libalsa_linux_*.so || die fi mv ts3client_linux_* ts3client || die # Fixes QA Notice: Unresolved soname dependencies. # Since this is a binary only package, it must be patched. local quazip_so="libquazip1-qt5.so.1.0.0" if has_version "