/[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 - (hide annotations) (download)
Tue Jun 5 19:25:56 2012 UTC (2 years, 3 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 hd_brummy 1.5 # Copyright 1999-2012 Gentoo Foundation
2 hd_brummy 1.1 # Distributed under the terms of the GNU General Public License v2
3 hd_brummy 1.7 # $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 hd_brummy 1.1
5 hd_brummy 1.6 EAPI="4"
6 hd_brummy 1.1
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 hd_brummy 1.5 SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz
16 hd_brummy 1.1 mirror://gentoo/${DVDARCHIVE}.gz"
17    
18     LICENSE="GPL-2"
19     SLOT="0"
20 phajdan.jr 1.4 KEYWORDS="amd64 x86"
21 hd_brummy 1.1 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 hd_brummy 1.2
39     if has_version ">=media-video/vdr-1.7.18"; then
40     sed -e "s:Read(f):Read():" -i mymenueditrecording.c
41     fi
42 hd_brummy 1.6
43     if has_version ">=media-video/vdr-1.7.27"; then
44     epatch "${FILESDIR}/vdr-1.7.27.diff"
45     fi
46 hd_brummy 1.7
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 hd_brummy 1.1 }
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