blob: 1a4ef1c900a7b122f2a3c346dc06ce0fa14d90fa (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils versionator gnome2
DESCRIPTION="Me TV Gnome DVB Program"
HOMEPAGE="http://me-tv.sourceforge.net/"
SRC_URI="http://launchpad.net/${PN}/stable/$(get_version_component_range 1-2)/+download/${P}.tar.gz"
RESTRICT="mirror"
EAPI="2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="debug doc mplayer xine vlc gstreamer nls static"
RDEPEND=">=dev-cpp/libgnomemm-2.20.0
>=dev-cpp/libgnomecanvasmm-2.20.0
>=dev-cpp/libgnomeuimm-2.20.0
>=dev-cpp/gconfmm-2.20.0
=dev-db/sqlite-3*
>=net-libs/gnet-2.0.0
>=x11-libs/libXtst-1.0.0
mplayer? ( media-video/mplayer[dvb] )
xine? ( >=media-libs/xine-lib-1.1.7 media-video/xine-ui )
vlc? ( >=media-video/vlc-0.9[dvb] )
gstreamer? ( >=media-libs/gst-plugins-bad-0.10 )"
# XML::Parser, pkgconfig >= 0.9.0
DEPEND="${RDEPEND}
doc? ( >=dev-util/gtk-doc-1.0 )"
#S="${WORKDIR}/${PN}-0.8.0"
src_compile() {
econf \
$(use_enable static) \
$(use_enable nls) \
$(use_enable debug) \
$(use_enable doc gtk-doc) \
$(use_enable mplayer mplayer-engine) \
$(use_enable xine xine-engine) \
$(use_enable xine xine-lib-engine) \
$(use_enable vlc libvlc-engine) \
$(use_enable gstreamer libgstreamer-engine) \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
}
pkg_postinst() {
einfo 'Please note that xine is the only engine supported by upstream'
if ! use xine
then
ewarn 'Warning: You choose to not install the xine engine'
ewarn 'which is the only one supported by upstream.'
fi
}
|