/[gentoo-x86]/media-sound/teamspeak-client-bin/teamspeak-client-bin-3.0.16-r1.ebuild
Gentoo

Contents of /media-sound/teamspeak-client-bin/teamspeak-client-bin-3.0.16-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed May 13 15:09:35 2015 UTC (5 years, 6 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Unbundle libquazip, bug #548048. https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/116 by karolherbst.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/teamspeak-client-bin/teamspeak-client-bin-3.0.16.ebuild,v 1.2 2015/03/21 18:41:22 jlec Exp $
4
5 EAPI="5"
6
7 inherit eutils unpacker
8
9 DESCRIPTION="TeamSpeak Client - Voice Communication Software"
10 HOMEPAGE="http://www.teamspeak.com/"
11 SRC_URI="
12 amd64? ( http://ftp.4players.de/pub/hosted/ts3/releases/${PV}/TeamSpeak3-Client-linux_amd64-${PV/_/-}.run )
13 x86? ( http://ftp.4players.de/pub/hosted/ts3/releases/${PV}/TeamSpeak3-Client-linux_x86-${PV/_/-}.run )"
14
15 LICENSE="teamspeak3"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="alsa pulseaudio"
19
20 REQUIRED_USE="|| ( alsa pulseaudio )"
21
22 RDEPEND="
23 dev-libs/quazip:0/0[qt5]
24 dev-qt/qtcore:5
25 dev-qt/qtgui:5[accessibility]
26 dev-qt/qtnetwork:5
27 dev-qt/qtsql:5[sqlite]
28 dev-qt/qtwidgets:5
29 sys-libs/glibc
30 sys-libs/zlib
31 alsa? ( media-libs/alsa-lib )
32 pulseaudio? ( media-sound/pulseaudio )"
33
34 RESTRICT="fetch mirror strip"
35
36 S="${WORKDIR}"
37
38 pkg_nofetch() {
39 elog "Please download ${A}"
40 elog "from ${HOMEPAGE}?page=downloads and place this"
41 elog "file in ${DISTDIR}"
42 }
43
44 src_prepare() {
45 # Remove the qt-libraries as they just cause trouble with the system's Qt, see bug #328807.
46 rm libQt* || die "Couldn't remove bundled Qt libraries."
47 rm -r accessible platforms sqldrivers qt.conf || die "Couldn't remove bundle Qt files."
48
49 # Remove unwanted soundbackends.
50 if ! use alsa ; then
51 rm soundbackends/libalsa* || die
52 fi
53
54 if ! use pulseaudio ; then
55 rm soundbackends/libpulseaudio* || die
56 fi
57
58 # Remove quazip
59 rm libquazip.so.1 || die
60
61 # Rename the tsclient to its shorter version, required by the teamspeak3 script we install.
62 mv ts3client_linux_* ts3client || die "Couldn't rename ts3client to its shorter version."
63 }
64
65 src_install() {
66 insinto /opt/teamspeak3-client
67 doins -r *
68
69 fperms +x /opt/teamspeak3-client/ts3client
70
71 dobin "${FILESDIR}/teamspeak3"
72
73 make_desktop_entry teamspeak3 TeamSpeak3 \
74 "/opt/teamspeak3-client/pluginsdk/docs/client_html/images/logo.png" \
75 Network
76 }

  ViewVC Help
Powered by ViewVC 1.1.20