blob: d20f510cb7d27291c8497789a39deeb400467120 (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/mythplugins/mythplugins-0.25.1.ebuild,v 1.2 2012/07/09 00:07:23 cardoe Exp $
EAPI=4
PYTHON_DEPEND="2:2.6"
#BACKPORTS=""
MY_P=${P%_p*}
inherit eutils python
DESCRIPTION="Official MythTV plugins"
HOMEPAGE="http://www.mythtv.org"
SRC_URI="ftp://ftp.osuosl.org/pub/mythtv/mythplugins-0.25.1.tar.bz2
${BACKPORTS:+http://dev.gentoo.org/~cardoe/distfiles/${MY_P}-${BACKPORTS}.tar.xz}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
MYTHPLUGINS="mytharchive mythbrowser mythgallery mythgame \
mythmusic mythnetvision mythnews mythweather"
IUSE="${MYTHPLUGINS} cdr exif fftw opengl projectm raw"
DEPEND="!media-plugins/mytharchive
!media-plugins/mythbrowser
!media-plugins/mythgallery
!media-plugins/mythgame
!media-plugins/mythmovies
!media-plugins/mythmusic
!media-plugins/mythnetvision
!media-plugins/mythnews
!media-plugins/mythweather
=media-tv/mythtv-${PV}*[python]
mytharchive? (
app-cdr/dvd+rw-tools
dev-python/imaging
media-video/dvdauthor
media-video/mjpegtools[png]
media-video/transcode
virtual/cdrtools
)
mythgallery? (
media-libs/tiff
exif? ( >media-libs/libexif-0.6.9 )
opengl? ( virtual/opengl )
raw? ( media-gfx/dcraw )
)
mythmusic? (
dev-libs/libcdio
media-gfx/dcraw
>=media-libs/flac-1.1.2
>=media-libs/libmad-0.15.1b
>=media-libs/libvorbis-1.0
>=media-libs/taglib-1.4
cdr? ( virtual/cdrtools )
fftw? ( sci-libs/fftw )
opengl? ( virtual/opengl )
projectm? (
>=media-libs/libsdl-1.2.5[opengl]
=media-libs/libvisual-0.4*
media-plugins/libvisual-projectm
)
)
mythnetvision? (
dev-python/lxml
dev-python/mysql-python
dev-python/oauth
dev-python/pycurl
)
mythweather? (
dev-perl/DateManip
dev-perl/DateTime-Format-ISO8601
dev-perl/ImageSize
dev-perl/SOAP-Lite
dev-perl/XML-Simple
dev-perl/XML-Parser
dev-perl/XML-SAX
dev-perl/XML-XPath
)"
RDEPEND="${DEPEND}"
REQUIRED_USE="
cdr? ( mythmusic )
exif? ( mythgallery )
fftw? ( mythmusic )
mythnews? ( mythbrowser )
opengl? ( || ( mythgallery mythmusic ) )
projectm? ( mythmusic )
raw? ( mythgallery )"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
[[ -n ${BACKPORTS} ]] && \
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
epatch
epatch_user
}
src_configure() {
./configure \
--prefix=/usr \
--python=python2 \
--disable-mythzoneminder \
$(use_enable mytharchive) \
$(use_enable mythbrowser) \
$(use_enable mythgallery) \
$(use_enable mythgame) \
$(use_enable mythmusic) \
$(use_enable mythnetvision) \
$(use_enable mythnews) \
$(use_enable mythweather) \
$(use_enable exif) \
$(use_enable exif new-exif) \
$(use_enable opengl) \
$(use_enable raw dcraw) \
|| die "configure failed"
}
src_install() {
emake INSTALL_ROOT="${D}" install || die "make install failed"
}
|