summaryrefslogtreecommitdiff
path: root/media-tv/tv-maxe/tv-maxe-0.11-r4.ebuild
blob: c86d395df2e263e66b89ca08d0926348e8b784bf (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

inherit eutils

DESCRIPTION="Program to view free channels"
HOMEPAGE="http://code.google.com/p/tv-maxe"
SRC_URI="https://launchpad.net/~venerix/+archive/ubuntu/pkg/+files/${PN}_${PV}-0ubuntu2~trusty.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+sqlite +vlc"

DEPEND="dev-lang/python:2.7[sqlite]"
RDEPEND="${DEPEND}
	vlc? ( media-video/vlc )
	dev-python/pillow
	dev-python/python-virtkey
	dev-python/pygtk
	media-tv/sopcast
	media-video/rtmpdump
	virtual/ffmpeg"

S="${WORKDIR}/${PN}-${PV}"

src_prepare() {
	epatch ${FILESDIR}/${PN}_disable_locale.patch
	sed -i "s/python/python2/g" ${PN}/${PN}
}

src_install() {
	dodir usr/bin
	exeinto usr/bin
	doexe ${PN}/${PN}

	dodir usr/share/${PN}
	insinto usr/share/${PN}
	doins -r ${PN}/*

	newicon ${PN}/tvmaxe_mini.png tv-maxe.png
	make_desktop_entry tv-maxe TV-maxe \
		"tv-maxe" \
		AudioVideo
}