1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils pax-utils
9 DESCRIPTION
="A P2P-VoiceIP client."
10 HOMEPAGE
="http://www.skype.com/"
12 SFILENAME
=${PN}_static-
${PV}.
tar.bz2
13 DFILENAME
=${P}.
tar.bz2
14 SRC_URI
="!qt-static? ( http://download.skype.com/linux/${DFILENAME} )
15 qt-static? ( http://download.skype.com/linux/${SFILENAME} )"
19 KEYWORDS
="~amd64 ~x86"
21 RESTRICT
="mirror strip"
24 >=app-emulation/emul-linux-x86-xlibs-1.2
25 >=app-emulation/emul-linux-x86-baselibs-2.1.1
26 >=app-emulation/emul-linux-x86-soundlibs-2.4
27 app-emulation/emul-linux-x86-compat
31 >=media-libs/alsa-lib-1.0.11
32 x11-libs/libXScrnSaver
64 QA_EXECSTACK
="opt/skype/skype"
66 use qt-static
&& S
="${WORKDIR}/${PN}_static-${PV}"
69 if ! use qt-static
; then
70 if has_version
'<=x11-libs/qt-4.4.0_alpha'; then
71 if ! built_with_use
'x11-libs/qt:4' accessibility dbus
; then
72 eerror
"Rebuild qt-4 with USE=\"accessibility dbus\" or set USE=qt-static"
73 die
"USE=\"-qt-static\" only works with qt-4 built with USE=\"accessibility dbus\"."
76 if ! built_with_use
'x11-libs/qt-gui' accessiblity dbus
; then
77 eerror
"Rebuild qt-gui with USE=\"accessibility dbus\" or set USE=qt-static"
78 die
"USE=\"-qt-static\" only works with qt-gui built with USE=\"accessibility dbus\"."
89 # remove mprotect() restrictions for PaX usage - see Bug 100507
90 pax-mark m
"${S}"/skype
94 fowners root
:audio
/opt
/skype
/skype
95 make_wrapper skype
/opt
/${PN}/skype /opt/${PN} /opt/${PN} /usr
/bin
97 insinto
/opt
/${PN}/sounds
100 if ! use qt-static
; then
101 insinto
/etc
/dbus-
1/system.d
102 newins
"${FILESDIR}"/skype.debus.config skype.conf
105 insinto
/opt
/${PN}/lang
107 #There have been some issues were lang is not updated from the .ts files
108 #but if we have qt we can rebuild it
110 if ! use qt-static
; then
116 insinto
/opt
/${PN}/avatars
122 insinto
/usr
/share
/icons
/hicolor
/${X}x
${X}/apps
123 newins
"${S}"/icons/SkypeBlue_${X}x${X}.png ${PN}.png
128 # insinto /usr/share/applications/
129 # doins skype.desktop
130 make_desktop_entry ${PN} "Skype VoIP
" ${PN} "Network
;InstantMessaging
;Telephony
"
132 #Fix for no sound notifications
133 dosym /opt/${PN} /usr/share/${PN}
135 # TODO: Optional configuration of callto:// in KDE, Mozilla and friends
136 # doexe skype-callto-handler
140 elog "If you have sound problems please visit
: "
141 elog "http
://forum.skype.com
/bb
/viewtopic.php?t
=4489"
142 elog "These kernel options are reported to
help"
144 elog "Processor
type and features
--->"
145 elog "-- Preemption Model
(Preemptible Kernel
(Low-Latency Desktop
))"
146 elog "-- Timer frequency
(250 HZ
)"
148 ewarn "This release no longer uses the old wrapper because
${PN} now uses ALSA
"