# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-tv/w_scan/w_scan-20060903.ebuild,v 1.2 2006/09/19 11:03:27 zzam Exp $

inherit eutils

DESCRIPTION="Scan for DVB-C/DVB-T channels without prior knowledge of frequencies and modulations - can also create a file in vdr-format"
HOMEPAGE="http://free.pages.at/wirbel4vdr/w_scan/index2.html"
SRC_URI="http://free.pages.at/wirbel4vdr/w_scan/${P}.tar.bz2"

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

DEPEND="media-tv/linuxtv-dvb-headers"
RDEPEND=""

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch "${FILESDIR}/${P}-paths.patch"
	emake clean || die "emake clean failed"
}

src_install() {
	emake install DESTDIR=${D} || die "emake install failed"
	dodoc README
}