# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-ffnetdev/vdr-ffnetdev-0.1.0.ebuild,v 1.3 2006/05/16 21:24:39 zzam Exp $

inherit vdr-plugin eutils

DESCRIPTION="Video Disk Recorder ffnetdev PlugIn"
HOMEPAGE="http://ffnetdev.berlios.de"
SRC_URI="http://download.berlios.de/ffnetdev/${P}.tar.bz2"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86 ~amd64"
IUSE=""

# this line is necessary as vdr-plugin.eclass changes S
S=${WORKDIR}/${P}

DEPEND=">=media-video/vdr-1.3.7
		!media-plugins/vdr-ffnetdev-svn"
# dont remove last line, it will fix a depend problem on gentoo.de overlay cvs

src_unpack() {
	vdr-plugin_src_unpack

	if grep -q "virtual cString Active" ${ROOT}/usr/include/vdr/plugin.h; then
	  epatch ${FILESDIR}/${P}-bigpatch-headers.diff
	fi
}