# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-extrecmenu/vdr-extrecmenu-1.2.1.ebuild,v 1.8 2012/12/03 22:42:27 idl0r Exp $ EAPI="4" inherit vdr-plugin eutils VERSION="583" #every bump, new version DVDARCHIVE="dvdarchive-2.3-beta.sh" DESCRIPTION="Video Disk Recorder - Extended recordings menu Plugin" HOMEPAGE="http://projects.vdr-developer.org/projects/show/plg-extrecmenu" SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz mirror://gentoo/${DVDARCHIVE}.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 x86" IUSE="" DEPEND=">=media-video/vdr-1.6.0 =media-video/vdr-1.7.18"; then sed -e "s:Read(f):Read():" -i mymenueditrecording.c fi if has_version ">=media-video/vdr-1.7.27"; then epatch "${FILESDIR}/vdr-1.7.27.diff" fi if has_version ">=media-video/vdr-1.7.28"; then sed -i "s:SetRecording(recording->FileName(),recording->Title:SetRecording(recording->FileName:" mymenurecordings.c fi } src_install() { vdr-plugin_src_install cd "${WORKDIR}" newbin ${DVDARCHIVE} dvdarchive.sh insinto /etc/vdr doins "${FILESDIR}"/dvdarchive.conf }