Line
Link Here
|
0 |
-- net-im/skype/skype-4.0.0.7-r3.ebuild |
0 |
++ net-im/skype/skype-4.0.0.7-r2.ebuild |
Lines 1-113
Link Here
|
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.7-r2.ebuild,v 1.2 2012/06/14 22:11:49 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="${P}-copyright ${P}-third-party_attributions.txt" |
15 |
SLOT="0" |
16 |
KEYWORDS="~amd64 ~x86" |
17 |
IUSE="pax_kernel qt-static" |
18 |
|
19 |
QA_PREBUILT=opt/bin/${PN} |
20 |
RESTRICT="mirror strip" #299368 |
21 |
|
22 |
EMUL_X86_VER=20120127 |
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 |
sys-libs/zlib |
42 |
x11-libs/libICE |
43 |
x11-libs/libSM |
44 |
x11-libs/libXrender |
45 |
) |
46 |
!qt-static? ( |
47 |
x11-libs/qt-core:4 |
48 |
x11-libs/qt-dbus:4 |
49 |
x11-libs/qt-gui:4[accessibility,dbus] |
50 |
) |
51 |
)" |
52 |
|
53 |
src_unpack() { |
54 |
unpack ${A} |
55 |
[[ -d ${S} ]] || { mv skype* "${S}" || die; } |
56 |
} |
57 |
|
58 |
src_compile() { |
59 |
type -P lrelease >/dev/null && lrelease lang/*.ts |
60 |
rm -f lang/*.ts |
61 |
} |
62 |
|
63 |
src_install() { |
64 |
into /opt |
65 |
dobin ${PN} |
66 |
fowners root:audio /opt/bin/${PN} |
67 |
|
68 |
insinto /etc/dbus-1/system.d |
69 |
doins ${PN}.conf |
70 |
|
71 |
insinto /usr/share/skype |
72 |
doins -r avatars lang sounds |
73 |
|
74 |
dodoc README |
75 |
|
76 |
local res |
77 |
for res in 16 32 48; do |
78 |
newicon -s ${res} icons/SkypeBlue_${res}x${res}.png ${PN}.png |
79 |
done |
80 |
|
81 |
make_desktop_entry ${PN} 'Skype VoIP' ${PN} 'Network;InstantMessaging;Telephony' |
82 |
|
83 |
if use pax_kernel; then |
84 |
pax-mark Cm "${ED}"/opt/bin/${PN} || die |
85 |
eqawarn "You have set USE=pax_kernel meaning that you intend to run" |
86 |
eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify" |
87 |
eqawarn "the ${PN} binary itself and this *may* lead to breakage! If" |
88 |
eqawarn "you suspect that ${PN} is being broken by this modification," |
89 |
eqawarn "please open a bug." |
90 |
fi |
91 |
} |
92 |
|
93 |
pkg_preinst() { |
94 |
gnome2_icon_savelist |
95 |
|
96 |
rm -rf "${EROOT}"/usr/share/${PN} #421165 |
97 |
} |
98 |
|
99 |
pkg_postinst() { |
100 |
gnome2_icon_cache_update |
101 |
|
102 |
# http://bugs.gentoo.org/360815 |
103 |
elog "For webcam support, see \"LD_PRELOAD\" section of \"README.lib\" document provided by" |
104 |
elog "media-libs/libv4l package and \"README\" document of this package." |
105 |
if use amd64; then |
106 |
elog "You can install app-emulation/emul-linux-x86-medialibs package for the 32bit" |
107 |
elog "libraries from the media-libs/libv4l package." |
108 |
fi |
109 |
} |
110 |
|
111 |
pkg_postrm() { |
112 |
gnome2_icon_cache_update |
113 |
} |