blob: fcfebea0d8928ff2a1b2d4b0d401e4ba8a788c8b (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-1.2.6-r1.ebuild,v 1.7 2007/11/27 11:50:06 zzam Exp $
inherit eutils check-kernel
DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB"
HOMEPAGE="http://www.cadsoft.de/people/kls/vdr"
SRC_URI="ftp://ftp.cadsoft.de/vdr/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc ~amd64"
IUSE="lirc"
DEPEND="sys-libs/ncurses
lirc? ( app-misc/lirc )
media-libs/jpeg
media-tv/linuxtv-dvb-headers"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-gentoo.diff"
epatch "${FILESDIR}/${P}_CAN-2005-0071.patch"
}
src_compile() {
local myconf="VIDEODIR=/etc/vdr"
use lirc && myconf="${myconf} REMOTE=LIRC"
emake ${myconf} || die "make failed"
}
src_install() {
make VIDEODIR=/etc/vdr DESTDIR="${D}" install || die "install failed"
dodoc INSTALL README MANUAL CONTRIBUTORS HISTORY
dohtml PLUGINS.html
dodir /usr/share/doc/${PF}/scripts
insinto /usr/share/doc/${PF}/scripts
doins "${S}"/epg2html.pl "${S}"/runvdr "${S}"/svdrpsend.pl
# install header files
dodir /usr/include/vdr
insinto /usr/include/vdr
doins *.h
}
|