# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-pin/vdr-pin-0.1.9.ebuild,v 1.2 2007/12/03 07:20:22 mr_bones_ Exp $ inherit vdr-plugin DESCRIPTION="VDR plugin: pin PlugIn" HOMEPAGE="http://www.jwendel.de" SRC_URI="http://www.jwendel.de/vdr/${P}.tgz" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND=">=media-video/vdr-1.3.45-r1" pkg_setup() { vdr-plugin_pkg_setup if grep -q fskProtection /usr/include/vdr/timers.h; then elog "Patched vdr found" else echo eerror "Patched VDR needed" echo elog "reemerge VDR with USE=\"child-protection\" or USE=\"bigpatch\"" elog "or in newer VDR versiones use USE=\"pinplugin\"" && die "unpack failed, patched VDR needed" fi } src_unpack() { vdr-plugin_src_unpack epatch ${FILESDIR}/${P}.diff } src_install() { vdr-plugin_src_install dobin fskcheck into /usr/share/vdr/pin dobin ${S}/scripts/*.sh insinto /etc/vdr/reccmds newins ${FILESDIR}/reccmds.pin.conf-0.0.16 reccmds.pin.conf }