diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2023-04-23 00:48:19 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2023-04-23 01:53:25 +0200 |
commit | 1e0c3a4229845d63eae7f6e3dcfdc6df656c3091 (patch) | |
tree | a3cb8a878c3bf62af27a1e626c9a1034ae46f40b /media-sound | |
parent | www-client/opera-developer: remove old (diff) | |
download | gentoo-1e0c3a4229845d63eae7f6e3dcfdc6df656c3091.tar.gz gentoo-1e0c3a4229845d63eae7f6e3dcfdc6df656c3091.tar.bz2 gentoo-1e0c3a4229845d63eae7f6e3dcfdc6df656c3091.zip |
media-sound/teamspeak-client: unbundle/update libs, install icons
Closes: https://bugs.gentoo.org/903658
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/teamspeak-client/metadata.xml | 1 | ||||
-rw-r--r-- | media-sound/teamspeak-client/teamspeak-client-3.5.6-r8.ebuild | 110 |
2 files changed, 111 insertions, 0 deletions
diff --git a/media-sound/teamspeak-client/metadata.xml b/media-sound/teamspeak-client/metadata.xml index aa2e04127c49..f215969f5e51 100644 --- a/media-sound/teamspeak-client/metadata.xml +++ b/media-sound/teamspeak-client/metadata.xml @@ -14,5 +14,6 @@ </longdescription> <use> <flag name="system-libcxx">Use <pkg>sys-libs/libcxx</pkg> instead of shipped libs.</flag> + <flag name="system-quazip">Use <pkg>dev-libs/quazip</pkg> instead of shipped libs.</flag> </use> </pkgmetadata> diff --git a/media-sound/teamspeak-client/teamspeak-client-3.5.6-r8.ebuild b/media-sound/teamspeak-client/teamspeak-client-3.5.6-r8.ebuild new file mode 100644 index 000000000000..2204f40c1a94 --- /dev/null +++ b/media-sound/teamspeak-client/teamspeak-client-3.5.6-r8.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2023 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=" + amd64? ( https://files.teamspeak-services.com/releases/client/${PV}/TeamSpeak3-Client-linux_amd64-${MY_PV}.run ) + x86? ( https://files.teamspeak-services.com/releases/client/${PV}/TeamSpeak3-Client-linux_x86-${MY_PV}.run ) +" +S="${WORKDIR}" + +LICENSE="teamspeak3 || ( GPL-2 GPL-3 LGPL-3 )" +SLOT="3" +KEYWORDS="-* ~amd64 ~x86" +IUSE="+alsa pulseaudio system-libcxx +system-quazip" + +REQUIRED_USE="|| ( alsa pulseaudio )" +RESTRICT="bindist mirror" + +BDEPEND=">=dev-util/patchelf-0.10" +RDEPEND=" + app-arch/snappy + dev-libs/openssl:0 + 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 + net-libs/libsrtp:0 + sys-libs/zlib:0/1 + virtual/udev + alsa? ( media-libs/alsa-lib ) + pulseaudio? ( media-sound/pulseaudio ) + system-libcxx? ( sys-libs/libcxx[libcxxabi] ) + 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/error_report + opt/teamspeak3-client/package_inst + opt/teamspeak3-client/soundbackends/libalsa_linux_*.so + opt/teamspeak3-client/soundbackends/libpulseaudio_linux_*.so + opt/teamspeak3-client/ts3client + opt/teamspeak3-client/update +" + +src_prepare() { + default + + if ! use alsa; then + rm soundbackends/libalsa_linux_*.so || die + fi + + if ! use pulseaudio ; then + rm soundbackends/libpulseaudio_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 "<dev-libs/quazip-1.0"; then + quazip_so="libquazip5.so.1" + fi + local soname_files=( "error_report" "ts3client" ) + if use system-quazip; then + for soname_file in ${soname_files[@]}; do + patchelf --replace-needed libquazip.so "${quazip_so}" "${soname_file}" || die + done + fi + + tc-export CXX +} + +src_install() { + exeinto /opt/teamspeak3-client + doexe error_report package_inst ts3client update + newexe "${FILESDIR}"/ts3client-bin-r2 ts3client-bin + ! use system-libcxx && doexe libc++{,abi}.so.1 + ! use system-quazip && doexe libquazip.so + + exeinto /opt/teamspeak3-client/soundbackends + doexe soundbackends/*.so + + insinto /opt/teamspeak3-client + doins -r gfx html resources sound styles translations + + dosym ../../usr/$(get_libdir)/qt5/libexec/QtWebEngineProcess /opt/teamspeak3-client/QtWebEngineProcess + + dodir /opt/bin + dosym ../teamspeak3-client/ts3client-bin /opt/bin/ts3client + + newicon -s 128 styles/default/logo-128x128.png teamspeak3.png + make_desktop_entry /opt/bin/ts3client "Teamspeak 3 Client" teamspeak3 "Audio;AudioVideo;Network" + + einstalldocs +} |