1 |
commit: 654e3927317a30d3cf4777b1fecb476f99485048 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 26 23:11:11 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 27 12:52:59 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=654e3927 |
7 |
|
8 |
media-sound/teamspeak-client: fix SONAME qa warning |
9 |
|
10 |
Closes: https://bugs.gentoo.org/772335 |
11 |
Package-Manager: Portage-3.0.15, Repoman-3.0.2 |
12 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
13 |
|
14 |
.../teamspeak-client-3.5.6-r4.ebuild | 116 +++++++++++++++++++++ |
15 |
1 file changed, 116 insertions(+) |
16 |
|
17 |
diff --git a/media-sound/teamspeak-client/teamspeak-client-3.5.6-r4.ebuild b/media-sound/teamspeak-client/teamspeak-client-3.5.6-r4.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..151c902c854 |
20 |
--- /dev/null |
21 |
+++ b/media-sound/teamspeak-client/teamspeak-client-3.5.6-r4.ebuild |
22 |
@@ -0,0 +1,116 @@ |
23 |
+# Copyright 1999-2021 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+MY_PV="${PV/_/-}" |
29 |
+inherit desktop toolchain-funcs unpacker xdg-utils |
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 |
+LICENSE="teamspeak3 || ( GPL-2 GPL-3 LGPL-3 )" |
39 |
+SLOT="3" |
40 |
+KEYWORDS="-* amd64 x86" |
41 |
+IUSE="+alsa pulseaudio system-libcxx" |
42 |
+ |
43 |
+REQUIRED_USE="|| ( alsa pulseaudio )" |
44 |
+RESTRICT="bindist mirror" |
45 |
+ |
46 |
+BDEPEND=">=dev-util/patchelf-0.10" |
47 |
+RDEPEND=" |
48 |
+ app-arch/snappy:0/1 |
49 |
+ dev-libs/openssl:0 |
50 |
+ dev-libs/quazip:0= |
51 |
+ dev-qt/qtcore:5 |
52 |
+ dev-qt/qtgui:5[accessibility,dbus,X(-)] |
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/qtwebsockets:5 |
59 |
+ dev-qt/qtwidgets:5 |
60 |
+ net-libs/libsrtp:0 |
61 |
+ sys-libs/zlib:0/1 |
62 |
+ virtual/udev |
63 |
+ alsa? ( media-libs/alsa-lib ) |
64 |
+ pulseaudio? ( media-sound/pulseaudio ) |
65 |
+ system-libcxx? ( sys-libs/libcxx[libcxxabi] ) |
66 |
+" |
67 |
+ |
68 |
+S="${WORKDIR}" |
69 |
+ |
70 |
+QA_PREBUILT=" |
71 |
+ opt/teamspeak3-client/libc++.so.1 |
72 |
+ opt/teamspeak3-client/libc++abi.so.1 |
73 |
+ opt/teamspeak3-client/error_report |
74 |
+ opt/teamspeak3-client/package_inst |
75 |
+ opt/teamspeak3-client/soundbackends/libalsa_linux_*.so |
76 |
+ opt/teamspeak3-client/soundbackends/libpulseaudio_linux_*.so |
77 |
+ opt/teamspeak3-client/ts3client |
78 |
+ opt/teamspeak3-client/update |
79 |
+" |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ default |
83 |
+ |
84 |
+ if ! use alsa; then |
85 |
+ rm soundbackends/libalsa_linux_*.so || die |
86 |
+ fi |
87 |
+ |
88 |
+ if ! use pulseaudio ; then |
89 |
+ rm soundbackends/libpulseaudio_linux_*.so || die |
90 |
+ fi |
91 |
+ |
92 |
+ mv ts3client_linux_* ts3client || die |
93 |
+ |
94 |
+ # Fixes QA Notice: Unresolved soname dependencies. |
95 |
+ # Since this is a binary only package, it must be patched. |
96 |
+ local quazip_so="libquazip1-qt5.so.1.0.0" |
97 |
+ if has_version "<dev-libs/quazip-1.0"; then |
98 |
+ quazip_so="libquazip5.so.1" |
99 |
+ fi |
100 |
+ local soname_files=( "error_report" "ts3client" ) |
101 |
+ for soname_file in ${soname_files[@]}; do |
102 |
+ patchelf --replace-needed libquazip.so "${quazip_so}" "${soname_file}" || die |
103 |
+ done |
104 |
+ |
105 |
+ tc-export CXX |
106 |
+} |
107 |
+ |
108 |
+src_install() { |
109 |
+ exeinto /opt/teamspeak3-client |
110 |
+ doexe error_report package_inst ts3client update |
111 |
+ newexe "${FILESDIR}"/ts3client-bin-r2 ts3client-bin |
112 |
+ ! use system-libcxx && doexe libc++{,abi}.so.1 |
113 |
+ |
114 |
+ exeinto /opt/teamspeak3-client/soundbackends |
115 |
+ doexe soundbackends/*.so |
116 |
+ |
117 |
+ insinto /opt/teamspeak3-client |
118 |
+ doins -r gfx html resources sound styles translations |
119 |
+ |
120 |
+ dosym ../../usr/$(get_libdir)/qt5/libexec/QtWebEngineProcess /opt/teamspeak3-client/QtWebEngineProcess |
121 |
+ |
122 |
+ dodir /opt/bin |
123 |
+ dosym ../teamspeak3-client/ts3client-bin /opt/bin/ts3client |
124 |
+ |
125 |
+ make_desktop_entry /opt/bin/ts3client "Teamspeak 3 Client" /opt/teamspeak3-client/styles/default/logo-128x128.png "Audio;AudioVideo;Network" |
126 |
+ |
127 |
+ einstalldocs |
128 |
+} |
129 |
+ |
130 |
+pkg_postinst() { |
131 |
+ xdg_desktop_database_update |
132 |
+ xdg_mimeinfo_database_update |
133 |
+} |
134 |
+ |
135 |
+pkg_postrm() { |
136 |
+ xdg_desktop_database_update |
137 |
+ xdg_mimeinfo_database_update |
138 |
+} |