summaryrefslogtreecommitdiff
blob: b05f91ca8feb1feab172e880f7d4bdfad8ab6493 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-tv/livestation/livestation-2.7.0.ebuild,v 1.1 2009/04/29 08:19:58 ssuominen Exp $

inherit eutils

DESCRIPTION="Watch live, interactive TV and radio on the Livestation player"
HOMEPAGE="http://www.livestation.com"
SRC_URI="http://updates.${PN}.com/releases/${P/l/L}.run"

LICENSE="Livestation-EULA.txt"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

RDEPEND="amd64? ( app-emulation/emul-linux-x86-baselibs
	app-emulation/emul-linux-x86-xlibs )"
DEPEND=""

MY_PN=${PN/l/L}
QA_TEXTRELS="opt/${MY_PN}/lib/*"
RESTRICT="mirror strip"
PROPERTIES="interactive"

S=${WORKDIR}/i386

pkg_setup() {
	check_license
}

src_unpack() {
	unpack_makeself
}

src_install() {
	local dest=/opt/${MY_PN}

	dodir ${dest}
	cp -dpR *.{bin,conf} plugins "${D}"/${dest} || die "cp failed"
	exeinto ${dest}/lib
	doexe lib/* || die "doexe failed"
	dosym plugins/imageformats ${dest}/imageformats || die "dosym failed"
	dodoc README

	make_wrapper ${PN} ./${MY_PN}.bin ${dest} ${dest}/lib
	make_desktop_entry ${PN} ${MY_PN}
}