/[gentoo-x86]/media-plugins/vdr-extrecmenu/vdr-extrecmenu-1.2.1.ebuild
Gentoo

Contents of /media-plugins/vdr-extrecmenu/vdr-extrecmenu-1.2.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Tue Jun 5 19:25:56 2012 UTC (2 years, 4 months ago) by hd_brummy
Branch: MAIN
Changes since 1.6: +5 -1 lines
compilefix for >=vdr-1.7.28

(Portage version: 2.1.10.11/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-extrecmenu/vdr-extrecmenu-1.2.1.ebuild,v 1.6 2012/04/07 08:24:58 hd_brummy Exp $
4
5 EAPI="4"
6
7 inherit vdr-plugin eutils
8
9 VERSION="583" #every bump, new version
10
11 DVDARCHIVE="dvdarchive-2.3-beta.sh"
12
13 DESCRIPTION="Video Disk Recorder - Extended recordings menu Plugin"
14 HOMEPAGE="http://projects.vdr-developer.org/projects/show/plg-extrecmenu"
15 SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz
16 mirror://gentoo/${DVDARCHIVE}.gz"
17
18 LICENSE="GPL-2"
19 SLOT="0"
20 KEYWORDS="amd64 x86"
21 IUSE=""
22
23 DEPEND=">=media-video/vdr-1.6.0"
24 RDEPEND="${DEPEND}"
25
26 src_prepare() {
27
28 cd "${WORKDIR}"
29 epatch "${FILESDIR}/${DVDARCHIVE%.sh}-configfile.patch"
30
31 cd "${S}"
32 if grep -q fskProtection /usr/include/vdr/timers.h; then
33 einfo "Enabling parentalrating option"
34 sed -i "s:#WITHPINPLUGIN:WITHPINPLUGIN:" Makefile
35 fi
36
37 vdr-plugin_src_prepare
38
39 if has_version ">=media-video/vdr-1.7.18"; then
40 sed -e "s:Read(f):Read():" -i mymenueditrecording.c
41 fi
42
43 if has_version ">=media-video/vdr-1.7.27"; then
44 epatch "${FILESDIR}/vdr-1.7.27.diff"
45 fi
46
47 if has_version ">=media-video/vdr-1.7.28"; then
48 sed -i "s:SetRecording(recording->FileName(),recording->Title:SetRecording(recording->FileName:" mymenurecordings.c
49 fi
50 }
51
52 src_install() {
53 vdr-plugin_src_install
54
55 cd "${WORKDIR}"
56 newbin ${DVDARCHIVE} dvdarchive.sh
57
58 insinto /etc/vdr
59 doins "${FILESDIR}"/dvdarchive.conf
60 }

  ViewVC Help
Powered by ViewVC 1.1.20