/[gentoo-x86]/net-im/skype/skype-2.2.0.35-r99.ebuild
Gentoo

Contents of /net-im/skype/skype-2.2.0.35-r99.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Sep 24 00:47:04 2012 UTC (23 months, 3 weeks ago) by vapier
Branch: MAIN
Changes since 1.6: +2 -2 lines
QA_DT_HASH (old/deprecated) -> QA_FLAGS_IGNORED (new hotness).

(Portage version: 2.2.0_alpha131/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-im/skype/skype-2.2.0.35-r99.ebuild,v 1.6 2012/08/11 18:34:28 swift Exp $
4
5 EAPI=4
6 inherit eutils gnome2-utils qt4-r2 pax-utils
7
8 SVERSION=2.2.0.99
9 SFILENAME=${PN}_static-${SVERSION}.tar.bz2
10 DVERSION=${PV}
11 DFILENAME=${PN}-${DVERSION}.tar.bz2
12
13 DESCRIPTION="An P2P Internet Telephony (VoiceIP) client"
14 HOMEPAGE="http://www.skype.com/"
15 SRC_URI="qt-static? ( http://download.skype.com/linux/${SFILENAME} )
16 !qt-static? ( http://download.skype.com/linux/${DFILENAME} )"
17
18 LICENSE="skype-eula"
19 SLOT="0"
20 KEYWORDS="~amd64 ~x86"
21 IUSE="pax_kernel selinux qt-static"
22
23 RESTRICT="mirror strip" #299368
24 EMUL_VER=20120520
25
26 RDEPEND="
27 amd64? (
28 >=app-emulation/emul-linux-x86-baselibs-${EMUL_VER}
29 >=app-emulation/emul-linux-x86-soundlibs-${EMUL_VER}
30 >=app-emulation/emul-linux-x86-xlibs-${EMUL_VER}
31 !qt-static? ( >=app-emulation/emul-linux-x86-qtlibs-${EMUL_VER} )
32 )
33 x86? (
34 >=media-libs/alsa-lib-1.0.24.1
35 x11-libs/libX11
36 x11-libs/libXext
37 x11-libs/libXScrnSaver
38 x11-libs/libXv
39 qt-static? (
40 =dev-libs/glib-2*
41 media-libs/fontconfig
42 >=media-libs/freetype-2
43 >=media-libs/tiff-3.9.5-r3:3
44 sys-libs/zlib
45 x11-libs/libICE
46 x11-libs/libSM
47 x11-libs/libXrender
48 )
49 !qt-static? (
50 x11-libs/qt-core:4
51 x11-libs/qt-dbus:4
52 x11-libs/qt-gui:4[accessibility,dbus]
53 )
54 )
55 virtual/ttf-fonts
56 selinux? ( sec-policy/selinux-skype )"
57
58 # Required to get `lrelease` command for src_install()
59 DEPEND="!qt-static? ( x11-libs/qt-core:4 )
60 selinux? ( sec-policy/selinux-skype )"
61
62 QA_EXECSTACK="opt/skype/skype"
63 QA_WX_LOAD="opt/skype/skype"
64 QA_FLAGS_IGNORED="opt/skype/skype"
65
66 pkg_setup() { :; }
67
68 src_unpack() {
69 unpack ${A}
70 [[ -d ${S} ]] || { mv skype* "${S}" || die; }
71 }
72
73 src_install() {
74 exeinto /opt/skype
75 doexe skype
76 fowners root:audio /opt/skype/skype
77 make_wrapper skype ./skype /opt/skype /opt/skype
78
79 insinto /opt/skype/sounds
80 doins sounds/*.wav
81
82 if ! use qt-static; then
83 insinto /etc/dbus-1/system.d
84 doins skype.conf
85 fi
86
87 if ! use qt-static; then
88 lrelease lang/*.ts
89 fi
90
91 insinto /opt/skype/lang
92 doins lang/*.qm
93
94 insinto /opt/skype/avatars
95 doins avatars/*.png
96
97 local res
98 for res in 16 32 48; do
99 insinto /usr/share/icons/hicolor/${res}x${res}/apps
100 newins icons/SkypeBlue_${res}x${res}.png skype.png
101 done
102
103 dodoc README
104
105 make_desktop_entry skype "Skype VoIP" skype "Network;InstantMessaging;Telephony"
106
107 dosym /opt/skype /usr/share/skype # Fix for disabled sound notification
108
109 if use pax_kernel; then
110 pax-mark Cm "${ED}"/opt/skype/skype || die
111 eqawarn "You have set USE=pax_kernel meaning that you intend to run"
112 eqawarn "skype under a PaX enabled kernel. To do so, we must modify"
113 eqawarn "the skype binary itself and this *may* lead to breakage! If"
114 eqawarn "you suspect that skype is being broken by this modification,"
115 eqawarn "please open a bug."
116 fi
117 }
118
119 pkg_preinst() { gnome2_icon_savelist; }
120 pkg_postinst() { gnome2_icon_cache_update; }
121 pkg_postrm() { gnome2_icon_cache_update; }

  ViewVC Help
Powered by ViewVC 1.1.20