remove ipe-7.0.13*
[shuber-gentoo-overlay.git] / net-im / skype / skype-2.0.0.72.ebuild
1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-im/skype/Attic/skype-2.0.0.72.ebuild,v 1.4 2010/02/02 07:25:23 ssuominen dead $
4
5 EAPI=2
6
7 inherit eutils qt4 pax-utils
8
9 DESCRIPTION="A P2P-VoiceIP client."
10 HOMEPAGE="http://www.skype.com/"
11
12 #https://jira.skype.com/secure/attachment/19888/Skype+-+skype_static-2.0.0.72.tar.bz2
13 SFILENAME=${PN}_static-${PV}.tar.bz2
14 DFILENAME=${P}.tar.bz2
15 #SRC_URI="!qt-static? ( http://download.skype.com/linux/${DFILENAME} )
16 # qt-static? ( http://download.skype.com/linux/${SFILENAME} )"
17 SRC_URI="https://jira.skype.com/secure/attachment/19888/Skype+-+${SFILENAME}"
18
19 LICENSE="skype-eula"
20 SLOT="0"
21 KEYWORDS="amd64 ~x86"
22 IUSE="qt-static"
23 RESTRICT="mirror strip"
24
25 DEPEND="amd64? ( >=app-emulation/emul-linux-x86-xlibs-1.2
26 >=app-emulation/emul-linux-x86-baselibs-2.1.1
27 >=app-emulation/emul-linux-x86-soundlibs-2.4
28 app-emulation/emul-linux-x86-compat )
29 x86? ( >=sys-libs/glibc-2.4
30 >=media-libs/alsa-lib-1.0.11
31 x11-libs/libXScrnSaver
32 x11-libs/libXv
33 qt-static? ( media-libs/fontconfig
34 media-libs/freetype
35 x11-libs/libICE
36 x11-libs/libSM
37 x11-libs/libXcursor
38 x11-libs/libXext
39 x11-libs/libXfixes
40 x11-libs/libXi
41 x11-libs/libXinerama
42 x11-libs/libXrandr
43 x11-libs/libXrender
44 x11-libs/libX11 )
45 !qt-static? ( x11-libs/qt-core:4
46 x11-libs/qt-gui:4[accessibility,dbus]
47 x11-libs/qt-dbus:4
48 x11-libs/libX11
49 x11-libs/libXau
50 x11-libs/libXdmcp ) )"
51 RDEPEND="${DEPEND}"
52
53 QA_EXECSTACK="opt/skype/skype"
54
55 use qt-static && S="${WORKDIR}/${PN}_static-${PV}"
56
57 src_install() {
58 # remove mprotect() restrictions for PaX usage - see Bug 100507
59 pax-mark m "${S}"/skype
60
61 exeinto /opt/${PN}
62 doexe skype
63 fowners root:audio /opt/skype/skype
64 make_wrapper skype /opt/${PN}/skype /opt/${PN} /opt/${PN} /usr/bin
65
66 insinto /opt/${PN}/sounds
67 doins sounds/*.wav
68
69 if ! use qt-static ; then
70 insinto /etc/dbus-1/system.d
71 newins "${FILESDIR}"/skype.debus.config skype.conf
72 fi
73
74 insinto /opt/${PN}/lang
75 #
76 #There have been some issues were lang is not updated from the .ts files
77 #but if we have qt we can rebuild it
78 #
79 if ! use qt-static ; then
80 lrelease lang/*.ts
81 fi
82
83 doins lang/*.qm
84
85 insinto /opt/${PN}/avatars
86 doins avatars/*.png
87
88 insinto /opt/${PN}
89 for X in 16 32 48
90 do
91 insinto /usr/share/icons/hicolor/${X}x${X}/apps
92 newins "${S}"/icons/SkypeBlue_${X}x${X}.png ${PN}.png
93 done
94
95 dodoc README
96
97 # insinto /usr/share/applications/
98 # doins skype.desktop
99 make_desktop_entry ${PN} "Skype VoIP" ${PN} "Network;InstantMessaging;Telephony"
100
101 #Fix for no sound notifications
102 dosym /opt/${PN} /usr/share/${PN}
103
104 # TODO: Optional configuration of callto:// in KDE, Mozilla and friends
105 # doexe skype-callto-handler
106 }