/
mythvideo-9999.ebuild
69 lines (59 loc) · 1.71 KB
/
mythvideo-9999.ebuild
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
65
66
67
68
69
# Copyright 1999-2009 Gentoo Foundation
# Copyright 2005 Preston Crow
# Copyright 2009-2010 Marc Tousignant
# Modifications by (Simon at Koala) from mythtv-dev list.
# Modifications by Marc Tousignant
# ( If you make changes, please add a copyright notice above, but
# never remove an existing notice. )
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit myth-git
DESCRIPTION="Video player module for MythTV."
HOMEPAGE="http://www.mythtv.org/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug jamu"
DEPEND=">=sys-apps/sed-4
sys-block/eject
>=media-tv/mythtv-${PV}"
RDEPEND="${DEPEND}
dev-perl/libwww-perl
dev-perl/HTML-Parser
dev-perl/URI
dev-perl/XML-Simple
dev-python/mysql-python
dev-python/imdbpy
dev-python/imaging
dev-python/lxml
|| ( media-video/xine-ui media-video/mplayer )"
setup_pro() {
return 0
}
src_configure() {
return 0
}
src_install() {
myth-git_src_install
# setup JAMU cron jobs
if use jamu; then
exeinto /etc/cron.daily
newexe "${FILESDIR}/mythvideo.daily" mythvideo || die
exeinto /etc/cron.hourly
newexe "${FILESDIR}/mythvideo.hourly" mythvideo || die
exeinto /etc/cron.weekly
newexe "${FILESDIR}/mythvideo.weekly" mythvideo || die
insinto /home/mythtv/.mythtv/
newins mythvideo/mythvideo/scripts/jamu-example.conf jamu.conf || die
fi
}
pkg_postinst() {
elog "MythVideo can use any media player to playback files if you"
elog "are *NOT* using Storage Groups. If you are using Storage"
elog "Groups, you *MUST* use the Internal player."
elog
elog "Otherwise, you can install mplayer, xine or any other video"
elog "player and use that instead by configuring the player to use."
elog "The default is 'Internal'."
}