340
|
1 # Copyright 1999-2012 Gentoo Foundation
|
|
2 # Distributed under the terms of the GNU General Public License v2
|
|
3 # $Header $
|
|
4
|
|
5 EAPI=4
|
|
6 inherit eutils gnome2-utils pax-utils
|
|
7
|
|
8 DESCRIPTION="An P2P Internet Telephony (VoiceIP) client"
|
|
9 HOMEPAGE="http://www.skype.com/"
|
|
10 SKYPE_URI="http://download.${PN}.com/linux"
|
|
11 SRC_URI="${SKYPE_URI}/${P}.tar.bz2"
|
|
12
|
|
13 LICENSE="${P}-copyright ${P}-third-party_attributions.txt"
|
|
14 SLOT="0"
|
|
15 KEYWORDS="~amd64 ~x86"
|
|
16 IUSE="pax_kernel"
|
|
17
|
|
18 QA_PREBUILT=opt/bin/${PN}
|
|
19 RESTRICT="mirror strip" #299368
|
|
20
|
|
21 EMUL_X86_VER=20120520
|
|
22
|
|
23 RDEPEND="virtual/ttf-fonts
|
|
24 amd64? (
|
|
25 >=app-emulation/emul-linux-x86-baselibs-${EMUL_X86_VER}
|
|
26 >=app-emulation/emul-linux-x86-soundlibs-${EMUL_X86_VER}
|
|
27 >=app-emulation/emul-linux-x86-xlibs-${EMUL_X86_VER}
|
|
28 >=app-emulation/emul-linux-x86-qtlibs-${EMUL_X86_VER}
|
|
29 )
|
|
30 x86? (
|
|
31 media-libs/alsa-lib
|
|
32 x11-libs/libX11
|
|
33 x11-libs/libXext
|
|
34 x11-libs/libXScrnSaver
|
|
35 x11-libs/libXv
|
|
36 x11-libs/qt-core:4
|
|
37 x11-libs/qt-dbus:4
|
|
38 x11-libs/qt-gui:4[accessibility,dbus]
|
|
39 )"
|
|
40
|
|
41 src_unpack() {
|
|
42 unpack ${A}
|
|
43 [[ -d ${S} ]] || { mv skype* "${S}" || die; }
|
|
44 }
|
|
45
|
|
46 src_compile() {
|
|
47 type -P lrelease >/dev/null && lrelease lang/*.ts
|
|
48 rm -f lang/*.ts
|
|
49 }
|
|
50
|
|
51 src_install() {
|
|
52 into /opt
|
|
53 dobin ${PN}
|
|
54 fowners root:audio /opt/bin/${PN}
|
|
55
|
|
56 insinto /etc/dbus-1/system.d
|
|
57 doins ${PN}.conf
|
|
58
|
|
59 insinto /usr/share/skype
|
|
60 doins -r avatars lang sounds
|
|
61
|
|
62 dodoc README
|
|
63
|
|
64 local res
|
|
65 for res in 16 32 48; do
|
|
66 newicon -s ${res} icons/SkypeBlue_${res}x${res}.png ${PN}.png
|
|
67 done
|
|
68
|
|
69 make_desktop_entry ${PN} 'Skype VoIP' ${PN} 'Network;InstantMessaging;Telephony'
|
|
70
|
|
71 if use pax_kernel; then
|
|
72 pax-mark Cm "${ED}"/opt/bin/${PN} || die
|
|
73 eqawarn "You have set USE=pax_kernel meaning that you intend to run"
|
|
74 eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
|
|
75 eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
|
|
76 eqawarn "you suspect that ${PN} is being broken by this modification,"
|
|
77 eqawarn "please open a bug."
|
|
78 fi
|
|
79 }
|
|
80
|
|
81 pkg_preinst() {
|
|
82 gnome2_icon_savelist
|
|
83
|
|
84 rm -rf "${EROOT}"/usr/share/${PN} #421165
|
|
85 }
|
|
86
|
|
87 pkg_postinst() {
|
|
88 gnome2_icon_cache_update
|
|
89
|
|
90 # http://bugs.gentoo.org/360815
|
|
91 elog "For webcam support, see \"LD_PRELOAD\" section of \"README.lib\" document provided by"
|
|
92 elog "media-libs/libv4l package and \"README\" document of this package."
|
|
93 if use amd64; then
|
|
94 elog "You can install app-emulation/emul-linux-x86-medialibs package for the 32bit"
|
|
95 elog "libraries from the media-libs/libv4l package."
|
|
96 fi
|
|
97 }
|
|
98
|
|
99 pkg_postrm() {
|
|
100 gnome2_icon_cache_update
|
|
101 }
|