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

Contents of /net-im/skype/skype-4.0.0.8-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Aug 11 18:34:28 2012 UTC (2 years, 4 months ago) by swift
Branch: MAIN
Changes since 1.1: +4 -3 lines
Add USE=selinux dependency towards selinux-skype

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-im/skype/skype-4.0.0.8-r1.ebuild,v 1.1 2012/08/06 08:49:43 ssuominen Exp $
4
5 EAPI=4
6 inherit eutils gnome2-utils pax-utils
7
8 DESCRIPTION="An P2P Internet Telephony (VoiceIP) client"
9 HOMEPAGE="http://www.skype.com/"
10 SKYPE_URI="http://download.${PN}.com/linux"
11 SRC_URI="!qt-static? ( ${SKYPE_URI}/${P}.tar.bz2 )
12 qt-static? ( ${SKYPE_URI}/${PN}_static-${PV}.tar.bz2 )"
13
14 LICENSE="${PN}-4.0.0.7-copyright ${PN}-4.0.0.7-third-party_attributions.txt"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="pax_kernel selinux qt-static"
18
19 QA_PREBUILT=opt/bin/${PN}
20 RESTRICT="mirror strip" #299368
21
22 EMUL_X86_VER=20120520
23
24 RDEPEND="virtual/ttf-fonts
25 amd64? (
26 >=app-emulation/emul-linux-x86-baselibs-${EMUL_X86_VER}
27 >=app-emulation/emul-linux-x86-soundlibs-${EMUL_X86_VER}
28 >=app-emulation/emul-linux-x86-xlibs-${EMUL_X86_VER}
29 !qt-static? ( >=app-emulation/emul-linux-x86-qtlibs-${EMUL_X86_VER} )
30 )
31 x86? (
32 media-libs/alsa-lib
33 x11-libs/libX11
34 x11-libs/libXext
35 x11-libs/libXScrnSaver
36 x11-libs/libXv
37 qt-static? (
38 >=dev-libs/glib-2.28
39 media-libs/fontconfig
40 >=media-libs/freetype-2
41 >=media-libs/tiff-3.9.5-r3:3
42 sys-libs/zlib
43 x11-libs/libICE
44 x11-libs/libSM
45 x11-libs/libXrender
46 )
47 !qt-static? (
48 x11-libs/qt-core:4
49 x11-libs/qt-dbus:4
50 x11-libs/qt-gui:4[accessibility,dbus]
51 )
52 )
53 selinux? ( sec-policy/selinux-skype )"
54
55 src_unpack() {
56 unpack ${A}
57 [[ -d ${S} ]] || { mv skype* "${S}" || die; }
58 }
59
60 src_compile() {
61 type -P lrelease >/dev/null && lrelease lang/*.ts
62 rm -f lang/*.ts
63 }
64
65 src_install() {
66 into /opt
67 dobin ${PN}
68 fowners root:audio /opt/bin/${PN}
69
70 insinto /etc/dbus-1/system.d
71 doins ${PN}.conf
72
73 insinto /usr/share/skype
74 doins -r avatars lang sounds
75
76 dodoc README
77
78 local res
79 for res in 16 32 48; do
80 newicon -s ${res} icons/SkypeBlue_${res}x${res}.png ${PN}.png
81 done
82
83 make_desktop_entry ${PN} 'Skype VoIP' ${PN} 'Network;InstantMessaging;Telephony'
84
85 if use pax_kernel; then
86 pax-mark Cm "${ED}"/opt/bin/${PN} || die
87 eqawarn "You have set USE=pax_kernel meaning that you intend to run"
88 eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
89 eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
90 eqawarn "you suspect that ${PN} is being broken by this modification,"
91 eqawarn "please open a bug."
92 fi
93
94 echo PRELINK_PATH_MASK=/opt/bin/${PN} > ${T}/99${PN}
95 doenvd "${T}"/99${PN} #430142
96 }
97
98 pkg_preinst() {
99 gnome2_icon_savelist
100
101 rm -rf "${EROOT}"/usr/share/${PN} #421165
102 }
103
104 pkg_postinst() {
105 gnome2_icon_cache_update
106
107 # http://bugs.gentoo.org/360815
108 elog "For webcam support, see \"LD_PRELOAD\" section of \"README.lib\" document provided by"
109 elog "media-libs/libv4l package and \"README\" document of this package."
110 if use amd64; then
111 elog "You can install app-emulation/emul-linux-x86-medialibs package for the 32bit"
112 elog "libraries from the media-libs/libv4l package."
113 fi
114 }
115
116 pkg_postrm() {
117 gnome2_icon_cache_update
118 }

  ViewVC Help
Powered by ViewVC 1.1.20