You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-plugins/vdr-extrecmenu/vdr-extrecmenu-1.2.2-r2.ebuild

61 lines
1.5 KiB

# Copyright 1999-2014 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.2-r2.ebuild,v 1.2 2014/01/02 17:34:48 hd_brummy Exp $
EAPI=5
inherit vdr-plugin-2
VERSION="936" #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"
RDEPEND="${DEPEND}"
src_prepare() {
cd "${WORKDIR}"
epatch "${FILESDIR}/${DVDARCHIVE%.sh}-configfile.patch"
cd "${S}"
if grep -q fskProtection /usr/include/vdr/timers.h; then
einfo "Enabling parentalrating option"
sed -i "s:#WITHPINPLUGIN:WITHPINPLUGIN:" Makefile
fi
vdr-plugin-2_src_prepare
if has_version ">=media-video/vdr-1.7.28"; then
sed -i "s:SetRecording(recording->FileName(),recording->Title:SetRecording(recording->FileName:" mymenurecordings.c
fi
if has_version ">=media-video/vdr-1.7.32"; then
export EXTRECMENU_USE_VDR_CUTTER=1
einfo "disabled plugin cutter"
einfo "plugin use now the vdr included cutter"
fi
epatch "${FILESDIR}/${P}_vdr-2.1.2.diff"
}
src_install() {
vdr-plugin-2_src_install
cd "${WORKDIR}"
newbin ${DVDARCHIVE} dvdarchive.sh
insinto /etc/vdr
doins "${FILESDIR}"/dvdarchive.conf
}