diff options
author | Jörg Bornkessel <hd_brummy@gentoo.org> | 2012-04-07 08:24:58 +0000 |
---|---|---|
committer | Jörg Bornkessel <hd_brummy@gentoo.org> | 2012-04-07 08:24:58 +0000 |
commit | 7dc2a4668ad93df35d62e050ebde334182db1833 (patch) | |
tree | 94ba0558ff45d43d41761404fad702a2c3f866d3 /media-plugins/vdr-extrecmenu | |
parent | Bump (diff) | |
download | gentoo-2-7dc2a4668ad93df35d62e050ebde334182db1833.tar.gz gentoo-2-7dc2a4668ad93df35d62e050ebde334182db1833.tar.bz2 gentoo-2-7dc2a4668ad93df35d62e050ebde334182db1833.zip |
eapi=4; compilefix >=vdr-1.7.27
(Portage version: 2.1.10.11/cvs/Linux i686)
Diffstat (limited to 'media-plugins/vdr-extrecmenu')
-rw-r--r-- | media-plugins/vdr-extrecmenu/ChangeLog | 6 | ||||
-rw-r--r-- | media-plugins/vdr-extrecmenu/files/vdr-1.7.27.diff | 98 | ||||
-rw-r--r-- | media-plugins/vdr-extrecmenu/vdr-extrecmenu-1.2.1.ebuild | 8 |
3 files changed, 109 insertions, 3 deletions
diff --git a/media-plugins/vdr-extrecmenu/ChangeLog b/media-plugins/vdr-extrecmenu/ChangeLog index 142bef39886d..70fc1878e619 100644 --- a/media-plugins/vdr-extrecmenu/ChangeLog +++ b/media-plugins/vdr-extrecmenu/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-plugins/vdr-extrecmenu # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-extrecmenu/ChangeLog,v 1.33 2012/02/11 18:49:56 hd_brummy Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-extrecmenu/ChangeLog,v 1.34 2012/04/07 08:24:58 hd_brummy Exp $ + + 07 Apr 2012; Joerg Bornkessel <hd_brummy@gentoo.org> + vdr-extrecmenu-1.2.1.ebuild, +files/vdr-1.7.27.diff: + eapi=4; compilefix >=vdr-1.7.27 11 Feb 2012; Joerg Bornkessel <hd_brummy@gentoo.org> +files/dvdarchive-2.3-beta-configfile.patch: diff --git a/media-plugins/vdr-extrecmenu/files/vdr-1.7.27.diff b/media-plugins/vdr-extrecmenu/files/vdr-1.7.27.diff new file mode 100644 index 000000000000..7da091713d57 --- /dev/null +++ b/media-plugins/vdr-extrecmenu/files/vdr-1.7.27.diff @@ -0,0 +1,98 @@ +diff -Naur extrecmenu-1.2.1.orig/mymenueditrecording.c extrecmenu-1.2.1/mymenueditrecording.c +--- extrecmenu-1.2.1.orig/mymenueditrecording.c 2012-04-07 09:48:21.000000000 +0200 ++++ extrecmenu-1.2.1/mymenueditrecording.c 2012-04-07 09:52:03.000000000 +0200 +@@ -500,8 +500,8 @@ + myMenuRecordingDetails::myMenuRecordingDetails(cRecording *Recording):cOsdMenu(tr("Details"),12) + { + recording=Recording; +- priority=recording->priority; +- lifetime=recording->lifetime; ++ priority=recording->Priority(); ++ lifetime=recording->Lifetime(); + + Add(new cMenuEditIntItem(trVDR("Priority"),&priority,0,MAXPRIORITY)); + Add(new cMenuEditIntItem(trVDR("Lifetime"),&lifetime,0,MAXLIFETIME)); +@@ -514,7 +514,10 @@ + { + if(Key==kOk) + { +- if((priority!=recording->priority)||(lifetime!=recording->lifetime)) ++ int old_priority = recording->Priority(); ++ int old_lifetime = recording->Lifetime(); ++ if((priority!=old_priority)||(lifetime!=old_lifetime)) ++// if((priority!=recording->priority)||(lifetime!=recording->lifetime)) + { + #if VDRVERSNUM > 10713 + if(recording->IsPesRecording()) +diff -Naur extrecmenu-1.2.1.orig/tools.c extrecmenu-1.2.1/tools.c +--- extrecmenu-1.2.1.orig/tools.c 2012-04-07 09:48:21.000000000 +0200 ++++ extrecmenu-1.2.1/tools.c 2012-04-07 09:56:33.000000000 +0200 +@@ -456,7 +456,7 @@ + if(!(fromfile=fromfilename->Open()) || !(tofile=tofilename->Open())) + return; + fromfile->SetReadAhead(MEGABYTE(20)); +- index=mark->position; ++ index=mark->Position(); + mark=frommarks.Next(mark); + tomarks.Add(0); + tomarks.Save(); +@@ -542,8 +542,8 @@ + filesize+=length; + if(!lastiframe) + lastiframe=toindex->Last(); +- +- if(mark && index >= mark->position) ++ ++ if(mark && index >= mark->Position()) + { + mark=frommarks.Next(mark); + tomarks.Add(lastiframe); +@@ -552,7 +552,7 @@ + tomarks.Save(); + if(mark) + { +- index=mark->position; ++ index=mark->Position(); + mark=frommarks.Next(mark); + currentfilenumber=0; + cutin=true; +diff -Naur extrecmenu-1.2.1.orig/mymenurecordings.c extrecmenu-1.2.1/mymenurecordings.c +--- extrecmenu-1.2.1.orig/mymenurecordings.c 2012-04-07 10:08:35.000000000 +0200 ++++ extrecmenu-1.2.1/mymenurecordings.c 2012-04-07 10:17:19.000000000 +0200 +@@ -66,7 +66,9 @@ + else + { + stringstream text; +- text << *DateString(recording->start) << ", " << *TimeString(recording->start) << "\n\n"; ++// text << *DateString(recording->start) << ", " << *TimeString(recording->start) << "\n\n"; ++ time_t start = recording->Start(); ++ text << *DateString(start) << ", " << *TimeString(start) << "\n\n"; + + if(recording->Info()->Title()) + { +@@ -95,8 +97,12 @@ + else + text << tr("Size") << ": " << recmb << " MB\n"; + +- text << trVDR("Priority") << ": " << recording->priority << "\n"; +- text << trVDR("Lifetime") << ": " << recording->lifetime << "\n"; ++// text << trVDR("Priority") << ": " << recording->priority << "\n"; ++// text << trVDR("Lifetime") << ": " << recording->lifetime << "\n"; ++ int prio = recording->Priority(); ++ int lft = recording->Lifetime(); ++ text << trVDR("Priority") << ": " << prio << "\n"; ++ text << trVDR("Lifetime") << ": " << lft << "\n"; + + DisplayMenu()->SetText(text.str().c_str(),false); + cStatus::MsgOsdTextItem(text.str().c_str()); +@@ -192,7 +198,9 @@ + + // date and time of recording + struct tm tm_r; +- struct tm *t=localtime_r(&Recording->start,&tm_r); ++// struct tm *t=localtime_r(&Recording->start,&tm_r); ++ time_t start = Recording->Start(); ++ struct tm *t=localtime_r(&start,&tm_r); + + idbuffer << t->tm_mday << t->tm_mon << t->tm_year + << t->tm_hour << t->tm_min; diff --git a/media-plugins/vdr-extrecmenu/vdr-extrecmenu-1.2.1.ebuild b/media-plugins/vdr-extrecmenu/vdr-extrecmenu-1.2.1.ebuild index ce878764d033..961616473b83 100644 --- a/media-plugins/vdr-extrecmenu/vdr-extrecmenu-1.2.1.ebuild +++ b/media-plugins/vdr-extrecmenu/vdr-extrecmenu-1.2.1.ebuild @@ -1,8 +1,8 @@ # 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.5 2012/02/07 14:22:00 hd_brummy Exp $ +# $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 $ -EAPI="3" +EAPI="4" inherit vdr-plugin eutils @@ -39,6 +39,10 @@ src_prepare() { if has_version ">=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 } src_install() { |