blob: d716d3674bddb7d347e844267e89aace3ca9ea9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
DESCRIPTION="live TV via Internet"
HOMEPAGE="http://zattoo.com/"
SRC_URI="http://download.zattoo.com/${PN/-bin}-${PV}-i386.tgz"
LICENSE="Zattoo"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RDEPEND="app-crypt/mit-krb5
dev-libs/nspr
dev-libs/openssl
gnome-base/libgnome
gnome-base/libgnomeui
media-libs/alsa-lib
net-dns/libidn
net-libs/libgssglue
<net-libs/xulrunner-1.9
net-misc/curl
www-plugins/adobe-flash
>=sys-libs/glibc-2.4
x11-libs/gtkglext"
RESTRICT="fetch"
S=${WORKDIR}/dist
QA_EXECSTACK="opt/zattoo/bin/zattood
opt/zattoo/bin/zattoo_player"
pkg_nofetch() {
einfo "Due to license reasons download manually ${SRC_URI} to ${DISTDIR}"
}
src_install() {
echo "LD_LIBRARY_PATH=\"/opt/zattoo/lib\" /opt/zattoo/bin/zattoo_player">zattoo
dobin zattoo || die
into /opt/zattoo
dobin usr/bin/zattoo{d,_player,-uri-handler} || die
newlib.so usr/lib/zattoo/libfaad.so.0.0.0 libfaad.so.0 || die
sed -i "s:/usr/bin/zattoo_player:/usr/bin/zattoo:g" usr/share/applications/zattoo_player.desktop
domenu usr/share/applications/zattoo_player.desktop
insinto /usr/share/
doins -r usr/share/{locale,zattoo_player}
dosym ../../../usr/lib/xulrunner/libgtkembedmoz.so /opt/zattoo/lib/libgtkembedmoz.so.0d
dosym ../../../usr/lib/xulrunner/libmozjs.so /opt/zattoo/lib/libmozjs.so.0d
dosym ../../../usr/lib/nspr/libnspr4.so /opt/zattoo/lib/libnspr4.so.0d
dosym ../../../usr/lib/nspr/libplc4.so /opt/zattoo/lib/libplc4.so.0d
dosym ../../../usr/lib/nspr/libplds4.so /opt/zattoo/lib/libplds4.so.0d
dosym ../../../usr/lib/xulrunner/libxpcom.so /opt/zattoo/lib/libxpcom.so.0d
dosym ../../../usr/lib/xulrunner/libxul.so /opt/zattoo/lib/libxul.so.0d
dosym ../../../usr/lib/libcurl.so /opt/zattoo/lib/libcurl.so.3
elog " "
elog "just enter zattoo to run the player"
elog " "
}
|