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

Contents of /net-im/skype/skype-2.0.0.72.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Apr 14 09:38:40 2009 UTC (5 years, 4 months ago) by armin76
Branch: MAIN
Changes since 1.2: +2 -2 lines
x86 stable wrt #262195
(Portage version: 2.1.6.7/cvs/Linux ia64)

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/skype-2.0.0.72.ebuild,v 1.2 2009/03/25 23:48:03 darkside Exp $
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 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} )"
16
17 LICENSE="skype-eula"
18 SLOT="0"
19 KEYWORDS="amd64 x86"
20 IUSE="qt-static"
21 RESTRICT="mirror strip"
22
23 DEPEND="amd64? ( >=app-emulation/emul-linux-x86-xlibs-1.2
24 >=app-emulation/emul-linux-x86-baselibs-2.1.1
25 >=app-emulation/emul-linux-x86-soundlibs-2.4
26 app-emulation/emul-linux-x86-compat )
27 x86? ( >=sys-libs/glibc-2.4
28 >=media-libs/alsa-lib-1.0.11
29 x11-libs/libXScrnSaver
30 x11-libs/libXv
31 qt-static? ( media-libs/fontconfig
32 media-libs/freetype
33 x11-libs/libICE
34 x11-libs/libSM
35 x11-libs/libXcursor
36 x11-libs/libXext
37 x11-libs/libXfixes
38 x11-libs/libXi
39 x11-libs/libXinerama
40 x11-libs/libXrandr
41 x11-libs/libXrender
42 x11-libs/libX11 )
43 !qt-static? ( x11-libs/qt-core:4
44 x11-libs/qt-gui:4[accessibility,dbus]
45 x11-libs/qt-dbus:4
46 x11-libs/libX11
47 x11-libs/libXau
48 x11-libs/libXdmcp ) )"
49 RDEPEND="${DEPEND}"
50
51 QA_EXECSTACK="opt/skype/skype"
52
53 use qt-static && S="${WORKDIR}/${PN}_static-${PV}"
54
55 src_install() {
56 # remove mprotect() restrictions for PaX usage - see Bug 100507
57 pax-mark m "${S}"/skype
58
59 exeinto /opt/${PN}
60 doexe skype
61 fowners root:audio /opt/skype/skype
62 make_wrapper skype /opt/${PN}/skype /opt/${PN} /opt/${PN} /usr/bin
63
64 insinto /opt/${PN}/sounds
65 doins sounds/*.wav
66
67 if ! use qt-static ; then
68 insinto /etc/dbus-1/system.d
69 newins "${FILESDIR}"/skype.debus.config skype.conf
70 fi
71
72 insinto /opt/${PN}/lang
73 #
74 #There have been some issues were lang is not updated from the .ts files
75 #but if we have qt we can rebuild it
76 #
77 if ! use qt-static ; then
78 lrelease lang/*.ts
79 fi
80
81 doins lang/*.qm
82
83 insinto /opt/${PN}/avatars
84 doins avatars/*.png
85
86 insinto /opt/${PN}
87 for X in 16 32 48
88 do
89 insinto /usr/share/icons/hicolor/${X}x${X}/apps
90 newins "${S}"/icons/SkypeBlue_${X}x${X}.png ${PN}.png
91 done
92
93 dodoc README
94
95 # insinto /usr/share/applications/
96 # doins skype.desktop
97 make_desktop_entry ${PN} "Skype VoIP" ${PN} "Network;InstantMessaging;Telephony"
98
99 #Fix for no sound notifications
100 dosym /opt/${PN} /usr/share/${PN}
101
102 # TODO: Optional configuration of callto:// in KDE, Mozilla and friends
103 # doexe skype-callto-handler
104 }

  ViewVC Help
Powered by ViewVC 1.1.20