summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Bornkessel <hd_brummy@gentoo.org>2007-06-26 17:21:46 +0000
committerJörg Bornkessel <hd_brummy@gentoo.org>2007-06-26 17:21:46 +0000
commit97a563d2edac19c57691a4ca4fa17ee58ee0c765 (patch)
treecc1ae2c885442e4684a3c91e04e99f913fbcbd53 /media-plugins/vdr-live/files
parentalpha stable wrt #183253 (diff)
downloadgentoo-2-97a563d2edac19c57691a4ca4fa17ee58ee0c765.tar.gz
gentoo-2-97a563d2edac19c57691a4ca4fa17ee58ee0c765.tar.bz2
gentoo-2-97a563d2edac19c57691a4ca4fa17ee58ee0c765.zip
patch added, fix for compile probs >= vdr-1.5.3
(Portage version: 2.1.2.7)
Diffstat (limited to 'media-plugins/vdr-live/files')
-rw-r--r--media-plugins/vdr-live/files/0.1.0/vdr-live-0.1.0_vdr-1.5.3-compile.diff32
1 files changed, 32 insertions, 0 deletions
diff --git a/media-plugins/vdr-live/files/0.1.0/vdr-live-0.1.0_vdr-1.5.3-compile.diff b/media-plugins/vdr-live/files/0.1.0/vdr-live-0.1.0_vdr-1.5.3-compile.diff
new file mode 100644
index 000000000000..9196ee9189f5
--- /dev/null
+++ b/media-plugins/vdr-live/files/0.1.0/vdr-live-0.1.0_vdr-1.5.3-compile.diff
@@ -0,0 +1,32 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 92_live-0.1.0-1.5.3.dpatch by Thomas Günther <tom@toms-cafe.de>
+## http://toms-cafe.de/vdr/download/live-0.1.0-1.5.3.diff
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Changes for VDR >= 1.5.3.
+
+@DPATCH@
+--- live-0.1.0/pages/timers.ecpp
++++ live-0.1.0/pages/timers.ecpp
+@@ -59,7 +59,11 @@ using namespace vdrlive;
+ <table class="timers" cellspacing="0" cellpadding="0">
+ <%cpp>
+ for (SortedTimers::iterator timer = timers.begin(); timer != timers.end(); ++timer) {
++#if VDRVERSNUM >= 10503
++ string currentDay = timer->WeekDays() > 0 ? *cTimer::PrintDay(0, timer->WeekDays(), true) : FormatDateTime(tr("%A, %x"), timer->Day());
++#else
+ string currentDay = timer->WeekDays() > 0 ? *cTimer::PrintDay(0, timer->WeekDays()) : FormatDateTime(tr("%A, %x"), timer->Day());
++#endif
+ if (previousDay != currentDay) {
+ if (!previousDay.empty()) {
+ </%cpp>
+@@ -73,7 +77,7 @@ using namespace vdrlive;
+ <tr class="head">
+ <td colspan="10">
+ <div class="boxheader"><div><div>
+- <$ timer->WeekDays() > 0 ? *cTimer::PrintDay(0, timer->WeekDays()) : FormatDateTime(tr("%A, %x"), timer->Day()) $>
++ <$ currentDay $>
+ </div></div></div>
+ </td>
+ </tr>
+