Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/teamspeak-client/
Date: Sun, 19 Jan 2020 23:53:39
Message-Id: 1579477887.2750515c96d18029e4d849e7d413024c23590da2.asturm@gentoo
1 commit: 2750515c96d18029e4d849e7d413024c23590da2
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 15 20:28:21 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 19 23:51:27 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2750515c
7
8 media-sound/teamspeak-client: Prepare for dev-qt/qtgui[xcb -> X]
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 .../teamspeak-client-3.3.2-r1.ebuild | 104 +++++++++++++++++++++
14 1 file changed, 104 insertions(+)
15
16 diff --git a/media-sound/teamspeak-client/teamspeak-client-3.3.2-r1.ebuild b/media-sound/teamspeak-client/teamspeak-client-3.3.2-r1.ebuild
17 new file mode 100644
18 index 00000000000..e80daf5efa2
19 --- /dev/null
20 +++ b/media-sound/teamspeak-client/teamspeak-client-3.3.2-r1.ebuild
21 @@ -0,0 +1,104 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +inherit desktop toolchain-funcs unpacker xdg-utils
28 +
29 +MY_PV="${PV/_/-}"
30 +
31 +DESCRIPTION="A client software for quality voice communication via the internet"
32 +HOMEPAGE="https://www.teamspeak.com/"
33 +SRC_URI="
34 + amd64? ( https://files.teamspeak-services.com/releases/client/${PV}/TeamSpeak3-Client-linux_amd64-${MY_PV}.run )
35 + x86? ( https://files.teamspeak-services.com/releases/client/${PV}/TeamSpeak3-Client-linux_x86-${MY_PV}.run )
36 +"
37 +
38 +KEYWORDS="-* amd64 x86"
39 +LICENSE="teamspeak3 || ( GPL-2 GPL-3 LGPL-3 )"
40 +SLOT="0"
41 +IUSE="alsa pulseaudio"
42 +REQUIRED_USE="|| ( alsa pulseaudio )"
43 +
44 +RDEPEND="
45 + app-arch/snappy:0/1
46 + dev-libs/openssl:0
47 + dev-libs/quazip
48 + dev-qt/qtcore:5
49 + || (
50 + dev-qt/qtgui:5[accessibility,dbus,X(-)]
51 + dev-qt/qtgui:5[accessibility,dbus,xcb(-)]
52 + )
53 + dev-qt/qtnetwork:5
54 + dev-qt/qtsql:5[sqlite]
55 + dev-qt/qtsvg:5
56 + dev-qt/qtwebchannel:5
57 + dev-qt/qtwebengine:5[geolocation(+),widgets]
58 + dev-qt/qtwidgets:5
59 + net-libs/libsrtp:0
60 + sys-libs/libcxx[libcxxabi]
61 + sys-libs/zlib:0/1
62 + virtual/udev
63 + alsa? ( media-libs/alsa-lib )
64 + pulseaudio? ( media-sound/pulseaudio )
65 +"
66 +
67 +RESTRICT="bindist mirror"
68 +
69 +S="${WORKDIR}"
70 +
71 +QA_PREBUILT="
72 + opt/teamspeak3-client/error_report
73 + opt/teamspeak3-client/package_inst
74 + opt/teamspeak3-client/soundbackends/libalsa_linux_*.so
75 + opt/teamspeak3-client/soundbackends/libpulseaudio_linux_*.so
76 + opt/teamspeak3-client/ts3client
77 + opt/teamspeak3-client/update
78 +"
79 +
80 +src_prepare() {
81 + default
82 +
83 + if ! use alsa; then
84 + rm -f soundbackends/libalsa_linux_*.so || die
85 + fi
86 +
87 + if ! use pulseaudio ; then
88 + rm -f soundbackends/libpulseaudio_linux_*.so || die
89 + fi
90 +
91 + mv ts3client_linux_* ts3client || die
92 +
93 + tc-export CXX
94 +}
95 +
96 +src_install() {
97 + exeinto /opt/teamspeak3-client
98 + doexe error_report package_inst ts3client update
99 + newexe "${FILESDIR}"/ts3client-bin-r2 ts3client-bin
100 +
101 + exeinto /opt/teamspeak3-client/soundbackends
102 + doexe soundbackends/*.so
103 +
104 + insinto /opt/teamspeak3-client
105 + doins -r gfx html resources sound styles translations
106 +
107 + dosym ../../usr/$(get_libdir)/qt5/libexec/QtWebEngineProcess /opt/teamspeak3-client/QtWebEngineProcess
108 +
109 + dodir /opt/bin
110 + dosym ../teamspeak3-client/ts3client-bin /opt/bin/ts3client
111 +
112 + make_desktop_entry /opt/bin/ts3client "Teamspeak 3 Client" /opt/teamspeak3-client/styles/default/logo-128x128.png "Audio;AudioVideo;Network"
113 +
114 + einstalldocs
115 +}
116 +
117 +pkg_postinst() {
118 + xdg_desktop_database_update
119 + xdg_mimeinfo_database_update
120 +}
121 +
122 +pkg_postrm() {
123 + xdg_desktop_database_update
124 + xdg_mimeinfo_database_update
125 +}