annotate net-im/skype/skype-4.1.0.20.ebuild @ 356:627e480843ea

add an openshot ebuild
author Dirk Olmes <dirk@xanthippe.ping.de>
date Mon, 16 Jun 2014 06:53:32 +0200
parents 9c4b58c14668
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
340
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 # Copyright 1999-2012 Gentoo Foundation
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3 # $Header $
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5 EAPI=4
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6 inherit eutils gnome2-utils pax-utils
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8 DESCRIPTION="An P2P Internet Telephony (VoiceIP) client"
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9 HOMEPAGE="http://www.skype.com/"
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10 SKYPE_URI="http://download.${PN}.com/linux"
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11 SRC_URI="${SKYPE_URI}/${P}.tar.bz2"
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 LICENSE="${P}-copyright ${P}-third-party_attributions.txt"
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14 SLOT="0"
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15 KEYWORDS="~amd64 ~x86"
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16 IUSE="pax_kernel"
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
18 QA_PREBUILT=opt/bin/${PN}
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19 RESTRICT="mirror strip" #299368
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
20
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
21 EMUL_X86_VER=20120520
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23 RDEPEND="virtual/ttf-fonts
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24 amd64? (
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25 >=app-emulation/emul-linux-x86-baselibs-${EMUL_X86_VER}
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26 >=app-emulation/emul-linux-x86-soundlibs-${EMUL_X86_VER}
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27 >=app-emulation/emul-linux-x86-xlibs-${EMUL_X86_VER}
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
28 >=app-emulation/emul-linux-x86-qtlibs-${EMUL_X86_VER}
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
29 )
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
30 x86? (
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31 media-libs/alsa-lib
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
32 x11-libs/libX11
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
33 x11-libs/libXext
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
34 x11-libs/libXScrnSaver
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
35 x11-libs/libXv
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
36 x11-libs/qt-core:4
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
37 x11-libs/qt-dbus:4
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
38 x11-libs/qt-gui:4[accessibility,dbus]
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
39 )"
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
40
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
41 src_unpack() {
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
42 unpack ${A}
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
43 [[ -d ${S} ]] || { mv skype* "${S}" || die; }
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
44 }
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
45
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
46 src_compile() {
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
47 type -P lrelease >/dev/null && lrelease lang/*.ts
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
48 rm -f lang/*.ts
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
49 }
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
50
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
51 src_install() {
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
52 into /opt
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
53 dobin ${PN}
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
54 fowners root:audio /opt/bin/${PN}
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
55
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
56 insinto /etc/dbus-1/system.d
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
57 doins ${PN}.conf
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
58
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
59 insinto /usr/share/skype
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
60 doins -r avatars lang sounds
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
61
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
62 dodoc README
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
63
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
64 local res
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
65 for res in 16 32 48; do
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
66 newicon -s ${res} icons/SkypeBlue_${res}x${res}.png ${PN}.png
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
67 done
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
68
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
69 make_desktop_entry ${PN} 'Skype VoIP' ${PN} 'Network;InstantMessaging;Telephony'
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
70
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
71 if use pax_kernel; then
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
72 pax-mark Cm "${ED}"/opt/bin/${PN} || die
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
73 eqawarn "You have set USE=pax_kernel meaning that you intend to run"
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
74 eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
75 eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
76 eqawarn "you suspect that ${PN} is being broken by this modification,"
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
77 eqawarn "please open a bug."
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
78 fi
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
79 }
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
80
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
81 pkg_preinst() {
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
82 gnome2_icon_savelist
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
83
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
84 rm -rf "${EROOT}"/usr/share/${PN} #421165
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
85 }
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
86
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
87 pkg_postinst() {
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
88 gnome2_icon_cache_update
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
89
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
90 # http://bugs.gentoo.org/360815
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
91 elog "For webcam support, see \"LD_PRELOAD\" section of \"README.lib\" document provided by"
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
92 elog "media-libs/libv4l package and \"README\" document of this package."
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
93 if use amd64; then
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
94 elog "You can install app-emulation/emul-linux-x86-medialibs package for the 32bit"
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
95 elog "libraries from the media-libs/libv4l package."
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
96 fi
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
97 }
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
98
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
99 pkg_postrm() {
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
100 gnome2_icon_cache_update
9c4b58c14668 ebuild for Skype 4.1.0.20
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
101 }