summaryrefslogtreecommitdiff
blob: e8d7dcd716c73670c0dca2b49f9d08bd35a72a00 (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
# Copyright 2003-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-decruft/vdr-decruft-0.0.4.ebuild,v 1.2 2006/05/02 15:16:24 zzam Exp $

IUSE=""
inherit vdr-plugin eutils

DESCRIPTION="Video Disk Recorder DeCruft Plugin - Clean unwanted entries from channels.conf"
HOMEPAGE="http://www.rst38.org.uk/vdr/decruft/"
SRC_URI="http://www.rst38.org.uk/vdr/decruft/${P}.tgz"
KEYWORDS="~x86"
SLOT="0"
LICENSE="GPL-2"

DEPEND=">=media-video/vdr-1.3.21-r2"

pkg_setup() {
	vdr-plugin_pkg_setup
	if ! grep -q SetGroupSep ${VDR_INCLUDE_DIR}/vdr/channels.h; then
		ewarn "Your vdr has not been patched with the SetGroupSep-Patch."
		die "Unpatched vdr detected!"
	fi
}

src_install() {
	vdr-plugin_src_install
	insinto /etc/vdr/plugins
	doins examples/decruft.conf
}