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 $
7 inherit eutils qt4 pax-utils
9 DESCRIPTION="A P2P-VoiceIP client."
10 HOMEPAGE="http://www.skype.com/"
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}"
23 RESTRICT="mirror strip"
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
33 qt-static? ( media-libs/fontconfig
45 !qt-static? ( x11-libs/qt-core:4
46 x11-libs/qt-gui:4[accessibility,dbus]
50 x11-libs/libXdmcp ) )"
53 QA_EXECSTACK="opt/skype/skype"
55 use qt-static && S="${WORKDIR}/${PN}_static-${PV}"
58 # remove mprotect() restrictions for PaX usage - see Bug 100507
59 pax-mark m "${S}"/skype
63 fowners root:audio /opt/skype/skype
64 make_wrapper skype /opt/${PN}/skype /opt/${PN} /opt/${PN} /usr/bin
66 insinto /opt/${PN}/sounds
69 if ! use qt-static ; then
70 insinto /etc/dbus-1/system.d
71 newins "${FILESDIR}"/skype.debus.config skype.conf
74 insinto /opt/${PN}/lang
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
79 if ! use qt-static ; then
85 insinto /opt/${PN}/avatars
91 insinto /usr/share/icons/hicolor/${X}x${X}/apps
92 newins "${S}"/icons/SkypeBlue_${X}x${X}.png ${PN}.png
97 # insinto /usr/share/applications/
99 make_desktop_entry ${PN} "Skype VoIP" ${PN} "Network;InstantMessaging;Telephony"
101 #Fix for no sound notifications
102 dosym /opt/${PN} /usr/share/${PN}
104 # TODO: Optional configuration of callto:// in KDE, Mozilla and friends
105 # doexe skype-callto-handler