blob: 4a5cce367f21f5d04226beeafe28fd6124319f8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/skype/skype-4.3.0.37.ebuild,v 1.4 2014/10/01 07:18:56 amynka Exp $
EAPI=5
inherit eutils gnome2-utils pax-utils
DESCRIPTION="P2P Internet Telephony (VoiceIP) client"
HOMEPAGE="http://www.skype.com/"
SRC_URI="http://download.${PN}.com/linux/${P}.tar.bz2"
LICENSE="skype-4.0.0.7-copyright BSD MIT RSA W3C regexp-UofT no-source-code"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="pax_kernel +pulseaudio selinux"
QA_PREBUILT=opt/bin/${PN}
RESTRICT="mirror bindist strip" #299368
EMUL_X86_VER=20120520
RDEPEND="
virtual/ttf-fonts
amd64? (
|| (
(
dev-qt/qtcore:4[abi_x86_32(-)]
dev-qt/qtdbus:4[abi_x86_32(-)]
dev-qt/qtgui:4[accessibility,abi_x86_32(-)]
dev-qt/qtwebkit:4[abi_x86_32(-)]
)
>=app-emulation/emul-linux-x86-qtlibs-${EMUL_X86_VER}
)
|| (
(
media-libs/alsa-lib[abi_x86_32(-)]
pulseaudio? ( media-sound/pulseaudio[abi_x86_32(-)] )
)
>=app-emulation/emul-linux-x86-soundlibs-${EMUL_X86_VER}
)
|| (
(
x11-libs/libX11[abi_x86_32(-)]
x11-libs/libXext[abi_x86_32(-)]
x11-libs/libXScrnSaver[abi_x86_32(-)]
x11-libs/libXv[abi_x86_32(-)]
)
>=app-emulation/emul-linux-x86-xlibs-${EMUL_X86_VER}
)
)
x86? (
media-libs/alsa-lib
x11-libs/libX11
x11-libs/libXext
x11-libs/libXScrnSaver
x11-libs/libXv
dev-qt/qtcore:4
dev-qt/qtdbus:4
dev-qt/qtgui:4[accessibility]
dev-qt/qtwebkit:4
)
pulseaudio? ( media-sound/pulseaudio )
selinux? ( sec-policy/selinux-skype )"
src_prepare() {
epatch "${FILESDIR}/${P}-desktop.patch"
}
src_compile() {
if type -P lrelease >/dev/null; then
lrelease lang/*.ts || die
fi
rm -f lang/*.ts || die
}
src_install() {
into /opt
dobin ${PN}
fowners root:audio /opt/bin/${PN}
insinto /etc/dbus-1/system.d
doins ${PN}.conf
insinto /usr/share/skype
doins -r avatars lang sounds
dodoc README
local res
for res in 16 32 48 64 96 128 256; do
newicon -s ${res} icons/SkypeBlue_${res}x${res}.png ${PN}.png
done
domenu skype.desktop
if use pax_kernel; then
pax-mark Cm "${ED}"/opt/bin/${PN} || die
eqawarn "You have set USE=pax_kernel meaning that you intend to run"
eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
eqawarn "you suspect that ${PN} is being broken by this modification,"
eqawarn "please open a bug."
fi
echo PRELINK_PATH_MASK=/opt/bin/${PN} > ${T}/99${PN}
doenvd "${T}"/99${PN} #430142
}
pkg_preinst() {
gnome2_icon_savelist
rm -rf "${EROOT}"/usr/share/${PN} #421165
}
pkg_postinst() {
gnome2_icon_cache_update
# http://bugs.gentoo.org/360815
elog "For webcam support, see \"LD_PRELOAD\" section of \"README.lib\" document provided by"
elog "media-libs/libv4l package and \"README\" document of this package."
if use amd64; then
elog "You can install app-emulation/emul-linux-x86-medialibs package for the 32bit"
elog "libraries from the media-libs/libv4l package."
fi
if ! use pulseaudio; then
ewarn "ALSA support was removed from Skype"
ewarn "consider installing media-sound/pulseaudio"
ewarn "otherwise sound will not work for you."
fi
}
pkg_postrm() {
gnome2_icon_cache_update
}
|