Gentoo Archives: gentoo-commits

From: Amy Winston <amynka@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/skype/
Date: Tue, 02 Feb 2016 22:43:10
Message-Id: 1454452902.08c27e4668323f40f037392913b18f2b98f71d68.amynka@gentoo
1 commit: 08c27e4668323f40f037392913b18f2b98f71d68
2 Author: Amy Winston <amynka <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 2 22:41:42 2016 +0000
4 Commit: Amy Winston <amynka <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 2 22:41:42 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08c27e46
7
8 net-im/skype: Add old revision bug #546746.
9
10 Package-Manager: portage-2.2.26
11
12 net-im/skype/skype-4.3.0.37-r5.ebuild | 121 ++++++++++++++++++++++++++++++++++
13 1 file changed, 121 insertions(+)
14
15 diff --git a/net-im/skype/skype-4.3.0.37-r5.ebuild b/net-im/skype/skype-4.3.0.37-r5.ebuild
16 new file mode 100644
17 index 0000000..80afaf7
18 --- /dev/null
19 +++ b/net-im/skype/skype-4.3.0.37-r5.ebuild
20 @@ -0,0 +1,121 @@
21 +# Copyright 1999-2016 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=5
26 +
27 +inherit eutils gnome2-utils pax-utils
28 +
29 +DESCRIPTION="P2P Internet Telephony (VoiceIP) client"
30 +HOMEPAGE="http://www.skype.com/"
31 +SRC_URI="http://download.${PN}.com/linux/${P}.tar.bz2"
32 +
33 +LICENSE="skype-4.0.0.7-copyright BSD MIT RSA W3C regexp-UofT no-source-code"
34 +SLOT="0"
35 +KEYWORDS="~amd64 ~x86"
36 +IUSE="apulse pax_kernel plasma +pulseaudio selinux"
37 +REQUIRED_USE="apulse? ( !pulseaudio )"
38 +
39 +QA_PREBUILT=opt/bin/${PN}
40 +RESTRICT="mirror bindist strip" #299368
41 +
42 +RDEPEND="
43 + virtual/ttf-fonts
44 + dev-qt/qtcore:4[abi_x86_32(-)]
45 + dev-qt/qtdbus:4[abi_x86_32(-)]
46 + dev-qt/qtgui:4[accessibility,abi_x86_32(-)]
47 + dev-qt/qtwebkit:4[abi_x86_32(-)]
48 + media-libs/alsa-lib[abi_x86_32(-)]
49 + x11-libs/libX11[abi_x86_32(-)]
50 + x11-libs/libXext[abi_x86_32(-)]
51 + x11-libs/libXScrnSaver[abi_x86_32(-)]
52 + x11-libs/libXv[abi_x86_32(-)]
53 + apulse? ( media-sound/apulse[abi_x86_32(-)] )
54 + plasma? ( dev-libs/sni-qt[abi_x86_32(-)] )
55 + pulseaudio? ( media-sound/pulseaudio[abi_x86_32(-)] )
56 + selinux? ( sec-policy/selinux-skype )"
57 +
58 +src_prepare() {
59 + epatch "${FILESDIR}/${P}-desktop.patch"
60 +}
61 +
62 +src_compile() {
63 + if type -P lrelease >/dev/null; then
64 + lrelease lang/*.ts || die
65 + fi
66 + rm -f lang/*.ts || die
67 +}
68 +
69 +src_install() {
70 +
71 + if use apulse; then
72 + into /opt
73 + newbin ${PN} ${PN}-bin
74 + dobin "${FILESDIR}/${PN}"
75 + fowners root:audio /opt/bin/${PN} /opt/bin/${PN}-bin
76 + else
77 + into /opt
78 + dobin ${PN}
79 + fowners root:audio /opt/bin/${PN}
80 + fi
81 +
82 + insinto /etc/dbus-1/system.d
83 + doins ${PN}.conf
84 +
85 + insinto /usr/share/skype
86 + doins -r avatars lang sounds
87 +
88 + dodoc README
89 +
90 + local res
91 + for res in 16 32 48 64 96 128 256; do
92 + newicon -s ${res} icons/SkypeBlue_${res}x${res}.png ${PN}.png
93 + done
94 +
95 + domenu skype.desktop
96 +
97 + if use pax_kernel; then
98 + if use apulse; then
99 + pax-mark Cm "${ED}"/opt/bin/${PN}-bin || die
100 + else
101 + pax-mark Cm "${ED}"/opt/bin/${PN} || die
102 + fi
103 + eqawarn "You have set USE=pax_kernel meaning that you intend to run"
104 + eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
105 + eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
106 + eqawarn "you suspect that ${PN} is being broken by this modification,"
107 + eqawarn "please open a bug."
108 + fi
109 +
110 + echo PRELINK_PATH_MASK=/opt/bin/${PN} > ${T}/99${PN}
111 + doenvd "${T}"/99${PN} #430142
112 +}
113 +
114 +pkg_preinst() {
115 + gnome2_icon_savelist
116 +
117 + rm -rf "${EROOT}"/usr/share/${PN} #421165
118 +}
119 +
120 +pkg_postinst() {
121 + gnome2_icon_cache_update
122 +
123 + # https://bugs.gentoo.org/360815
124 + elog "For webcam support, see \"LD_PRELOAD\" section of \"README.lib\" document provided by"
125 + elog "media-libs/libv4l package and \"README\" document of this package."
126 +
127 + if ! use pulseaudio && ! use apulse; then
128 + ewarn "ALSA support was removed from Skype"
129 + ewarn "consider installing media-sound/pulseaudio"
130 + ewarn "or media-sound/apulse for pulseaudio emulation"
131 + ewarn "otherwise sound will not work for you."
132 + ewarn "These packages can be pulled in by setting"
133 + ewarn "appropriate USE flags for net-im/skype."
134 + fi
135 + elog "If skype is segfaulting for you with gcc-5+ please consider "
136 + elog "instalation of dev-qt/qtwebkit[-exceptions]"
137 +}
138 +
139 +pkg_postrm() {
140 + gnome2_icon_cache_update
141 +}