annotate net-im/skype/skype-2.1.0.47.ebuild @ 186:0696f0fa8ee4

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